Skip to content

Commit

Permalink
Fix cuda atexit being called before ours. (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerilk authored Jul 30, 2024
1 parent 6148024 commit 9e3fbff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cuda/tracer_cuda_helpers.include.c
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ static void _load_tracer(void) {

_do_cleanup = 1;
#ifndef THAPI_USE_DESTRUCTORS
CU_INIT_PTR(0);
atexit(_lib_cleanup);
#endif
}
Expand Down

0 comments on commit 9e3fbff

Please sign in to comment.