Skip to content

Commit

Permalink
Fixing label for host-allocated memory in Cuda
Browse files Browse the repository at this point in the history
  • Loading branch information
khuck committed Sep 1, 2020
1 parent 7c80b79 commit 55bacb3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/apex/activity_trace_async.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,11 @@ bool getBytesIfMalloc(CUpti_CallbackId id, const void* params, std::string conte
}
case CUPTI_RUNTIME_TRACE_CBID_cudaMallocHost_v3020: {
bytes = ((cudaMallocHost_v3020_params_st*)(params))->size;
// we have a special case - handle it differently...
double value = (double)(bytes);
store_counter_data("Host: Page-locked Bytes Allocated", context,
apex::profiler::get_time_ns(), value);
return true;
break;
}
case CUPTI_RUNTIME_TRACE_CBID_cudaMalloc3D_v3020: {
Expand Down

0 comments on commit 55bacb3

Please sign in to comment.