An alternative to implementing nv_weak attribute (D47201).
The patch should make runtime sub functions to have .weak attribute in PTX and that should avoid GPU-side linking errors.
Differential D47804
[CUDA] Replace 'nv_weak' attributes in CUDA headers with 'weak'. tra on Jun 5 2018, 4:51 PM. Authored by
Details An alternative to implementing nv_weak attribute (D47201). The patch should make runtime sub functions to have .weak attribute in PTX and that should avoid GPU-side linking errors.
Diff Detail
Event TimelineComment Actions I'll wait to see if that fixes @Hahnfeld's problem. AFAICT, nv_weak is not used for anything interesting other than the device-side runtime stubs that return errors (apparently, until they are linked with the proper device runtime which would have strong version of the symbols. I've tested with 8.0, 9.0 and 9.2 with -fcuda-rdc and all appear to produce .weak variants of those stubs in PTX. |