fix hipProfiler* apis on NV path

Change-Id: I6adca6151fef3a9b35348163eb6bd13f5c414172
Этот коммит содержится в:
pensun
2016-11-09 15:44:01 -06:00
родитель 76c3c20da6
Коммит 57cd3c8244
+3 -2
Просмотреть файл
@@ -24,6 +24,7 @@ THE SOFTWARE.
#include <cuda_runtime_api.h>
#include <cuda.h>
#include <cuda_profiler_api.h>
#ifdef __cplusplus
extern "C" {
@@ -645,12 +646,12 @@ inline static hipError_t hipMemcpyPeerAsync ( void* dst, int dstDevice, const v
// Profile APIs:
inline hipError_t hipProfilerStart()
{
return hipCUDAErrorTohipError(cudaProfileStart());
return hipCUDAErrorTohipError(cudaProfilerStart());
}
inline hipError_t hipProfilerStop()
{
return hipCUDAErrorTohipError(cudaProfileStop());
return hipCUDAErrorTohipError(cudaProfilerStop());
}