Commit caf1558
authored
Avoid Using Device Compute Capability for Linker Class (#429)
When debugging with @gmarkall, we discovered that the linker class is
using the current device's compute capability for cuda source
compilation. Because `compile_ptx` can be used
to compile target code for a different architecture from current device.
This PR pass through the CC used to construct the linker class to the
cuda source compilation. This avoids
CC inconsistencies between compile and linking.
---------
Co-authored-by: Michael Wang <[email protected]>1 parent 6b49be0 commit caf1558
File tree
2 files changed
+20
-9
lines changed- numba_cuda/numba/cuda
- cudadrv
- tests/cudadrv
2 files changed
+20
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2836 | 2836 | | |
2837 | 2837 | | |
2838 | 2838 | | |
2839 | | - | |
2840 | | - | |
2841 | | - | |
2842 | | - | |
| 2839 | + | |
2843 | 2840 | | |
2844 | 2841 | | |
2845 | 2842 | | |
| |||
3003 | 3000 | | |
3004 | 3001 | | |
3005 | 3002 | | |
3006 | | - | |
3007 | | - | |
3008 | | - | |
3009 | | - | |
| 3003 | + | |
3010 | 3004 | | |
3011 | 3005 | | |
3012 | 3006 | | |
| |||
3117 | 3111 | | |
3118 | 3112 | | |
3119 | 3113 | | |
| 3114 | + | |
3120 | 3115 | | |
3121 | 3116 | | |
3122 | 3117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
9 | 13 | | |
10 | 14 | | |
11 | 15 | | |
| |||
329 | 333 | | |
330 | 334 | | |
331 | 335 | | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
332 | 348 | | |
333 | 349 | | |
334 | 350 | | |
0 commit comments