Skip to content

Commit

Permalink
Forgot to update an enum name for CUDA
Browse files Browse the repository at this point in the history
  • Loading branch information
khuck committed Mar 22, 2024
1 parent 9f3e810 commit cd5913f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/apex/cupti_trace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1504,7 +1504,7 @@ bool getBytesIfMalloc(CUpti_CallbackId id, const void* params, std::string conte
hostTotalAllocated.fetch_add(bytes, std::memory_order_relaxed);
value = (double)(hostTotalAllocated);
store_sync_counter_data("GPU: Total Bytes Occupied on Host", context, value, false, false);
apex::recordAlloc(bytes, ptr, apex::GPU_DEVICE_MALLOC);
apex::recordAlloc(bytes, ptr, APEX_GPU_DEVICE_MALLOC);
return true;
} else {
if (managed) {
Expand All @@ -1518,7 +1518,7 @@ bool getBytesIfMalloc(CUpti_CallbackId id, const void* params, std::string conte
totalAllocated.fetch_add(bytes, std::memory_order_relaxed);
value = (double)(totalAllocated);
store_sync_counter_data("GPU: Total Bytes Occupied on Device", context, value, false, false);
apex::recordAlloc(bytes, ptr, apex::GPU_DEVICE_MALLOC, false);
apex::recordAlloc(bytes, ptr, APEX_GPU_DEVICE_MALLOC, false);
}
}
return true;
Expand Down

0 comments on commit cd5913f

Please sign in to comment.