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_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());
} }