This matches the way NVCC does it. Doing module cleanup at global
destructor phase used to work, but is, apparently, too late for
the CUDA runtime in CUDA-9.2, which ends up crashing with double-free.
Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 19735 Build 19735: arc lint + arc unit
Event Timeline
Comment Actions
Make destructor registration conditional -- we generate no destructor with -fcuda-rdc.
Updated the test to reflect changes in destructor registration.