Skip to content

Commit

Permalink
use .load to avoid compile warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
isVoid committed Dec 19, 2024
1 parent 685eb64 commit bd9f9ad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions numba_cuda/numba/cuda/runtime/memsys.cu
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ extern "C" __global__ void NRT_MemSys_print(void)
if (TheMSys != nullptr)
{
printf("TheMSys->stats.enabled %d\n", TheMSys->stats.enabled);
printf("TheMSys->stats.alloc %d\n", TheMSys->stats.alloc);
printf("TheMSys->stats.free %d\n", TheMSys->stats.free);
printf("TheMSys->stats.mi_alloc %d\n", TheMSys->stats.mi_alloc);
printf("TheMSys->stats.mi_free %d\n", TheMSys->stats.mi_free);
printf("TheMSys->stats.alloc %d\n", TheMSys->stats.alloc.load());
printf("TheMSys->stats.free %d\n", TheMSys->stats.free.load());
printf("TheMSys->stats.mi_alloc %d\n", TheMSys->stats.mi_alloc.load());
printf("TheMSys->stats.mi_free %d\n", TheMSys->stats.mi_free.load());
} else {
printf("TheMsys is null.\n");
}
Expand Down

0 comments on commit bd9f9ad

Please sign in to comment.