Commit 607e9eb
authored
[Java] Make
In #1273 we addressed a signature change in CUDA 13 by binding different symbols based on a environment variable, `RAPIDS_CUDA_MAJOR`. That works, but forces users of cuvs-java with CUDA 12 to define this environment variable.
This PR improves on it by making the symbol lookup dynamic, looking for the CUDA 13 symbol name, and falling back to the CUDA 12 exported name if we fail to locate the first.
Authors:
- Lorenzo Dematté (https://github.com/ldematte)
Approvers:
- MithunR (https://github.com/mythrocks)
URL: #1323cudaGetDeviceProperties compatible with CUDA 12 and 13 based on symbol presence (#1323)1 parent 792730c commit 607e9eb
File tree
1 file changed
+2
-6
lines changed- java/cuvs-java/src/main/java22/com/nvidia/cuvs/internal/common
1 file changed
+2
-6
lines changedLines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | 68 | | |
74 | 69 | | |
75 | 70 | | |
76 | | - | |
| 71 | + | |
| 72 | + | |
77 | 73 | | |
78 | 74 | | |
79 | 75 | | |
| |||
0 commit comments