[PATCH] D49763: [CUDA] Call atexit() for CUDA destructor early on.

Joerg Sonnenberger via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 24 16:24:18 PDT 2018


joerg added a comment.

Depends a bit on the platform, __cxa_atexit on most modern ELF systems, fallback to atexit. If the global dtor is run too late, it smells like a missing library dependency. They are executed in topological order after all.


https://reviews.llvm.org/D49763





More information about the cfe-commits mailing list