Commit 6c436c9
authored
Pass -gpu= at link time for the Thrust extension (#17)
The device-link step is where the final SASS is generated, so an arch passed
only at compile time is discarded and the extension silently gets nvc++'s own
default target instead of what was requested.
Measured on NVHPC 26.1 (aarch64), compile with -gpu=cc90:
.so linked without -gpu= -> sm_100 (the host default, not cc90)
.so linked with -gpu= -> sm_90
_core_gpu_omp_offload already passes -gpu= at link, which is why only the Thrust
backend was affected.1 parent 9283f40 commit 6c436c9
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
400 | | - | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
401 | 406 | | |
402 | 407 | | |
403 | 408 | | |
| |||
0 commit comments