fix hipProfiler* apis on NV path
Change-Id: I6adca6151fef3a9b35348163eb6bd13f5c414172
This commit is contained in:
@@ -24,6 +24,7 @@ THE SOFTWARE.
|
|||||||
|
|
||||||
#include <cuda_runtime_api.h>
|
#include <cuda_runtime_api.h>
|
||||||
#include <cuda.h>
|
#include <cuda.h>
|
||||||
|
#include <cuda_profiler_api.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@@ -645,12 +646,12 @@ inline static hipError_t hipMemcpyPeerAsync ( void* dst, int dstDevice, const v
|
|||||||
// Profile APIs:
|
// Profile APIs:
|
||||||
inline hipError_t hipProfilerStart()
|
inline hipError_t hipProfilerStart()
|
||||||
{
|
{
|
||||||
return hipCUDAErrorTohipError(cudaProfileStart());
|
return hipCUDAErrorTohipError(cudaProfilerStart());
|
||||||
}
|
}
|
||||||
|
|
||||||
inline hipError_t hipProfilerStop()
|
inline hipError_t hipProfilerStop()
|
||||||
{
|
{
|
||||||
return hipCUDAErrorTohipError(cudaProfileStop());
|
return hipCUDAErrorTohipError(cudaProfilerStop());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Referens i nytt ärende
Block a user