diff --git a/onnxruntime/core/framework/provider_bridge_ort.cc b/onnxruntime/core/framework/provider_bridge_ort.cc index 1bec9536a4..4b1c93891c 100644 --- a/onnxruntime/core/framework/provider_bridge_ort.cc +++ b/onnxruntime/core/framework/provider_bridge_ort.cc @@ -1103,7 +1103,7 @@ CUptiResult CUPTIAPI cuptiActivityGetNextRecord(uint8_t* buffer, size_t validBuf CUptiResult CUPTIAPI cuptiActivityRegisterCallbacks(CUpti_BuffersCallbackRequestFunc funcBufferRequested, CUpti_BuffersCallbackCompleteFunc funcBufferCompleted) { auto* info = onnxruntime::GetProviderInfo_CUDA(); if (info) - return CUptiResult(info->cuptiActivityRegisterCallbacks(funcBufferRequested, funcBufferCompleted)); + return CUptiResult(info->cuptiActivityRegisterCallbacks(reinterpret_cast(funcBufferRequested), reinterpret_cast(funcBufferCompleted))); return CUPTI_ERROR_NOT_SUPPORTED; }