From bd9f9ad01e7e2d1da2dba852d4810a2a420693fa Mon Sep 17 00:00:00 2001 From: isVoid Date: Thu, 19 Dec 2024 06:00:43 -0800 Subject: [PATCH] use .load to avoid compile warnings --- numba_cuda/numba/cuda/runtime/memsys.cu | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/numba_cuda/numba/cuda/runtime/memsys.cu b/numba_cuda/numba/cuda/runtime/memsys.cu index a0e9c93..a59671a 100644 --- a/numba_cuda/numba/cuda/runtime/memsys.cu +++ b/numba_cuda/numba/cuda/runtime/memsys.cu @@ -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"); }