Update hipStreamNonBlocking to use cuda define on NV path

Change-Id: I74ea09db99d602ba1c5f192b36ff7f2781176e6a


[ROCm/hip commit: 4817131cdc]
This commit is contained in:
pensun
2016-11-01 20:30:56 -05:00
orang tua 42130918bb
melakukan 959880e318
@@ -84,8 +84,8 @@ typedef CUfunction hipFunction_t;
typedef CUdeviceptr hipDeviceptr_t;
// Flags that can be used with hipStreamCreateWithFlags
#define hipStreamDefault 0x00 ///< Default stream creation flags
#define hipStreamNonBlocking 0x01 ///< Stream does not implicitly synchronize with null stream
#define hipStreamDefault cudaStreamDefault
#define hipStreamNonBlocking cudaStreamNonBlocking
//typedef cudaChannelFormatDesc hipChannelFormatDesc;
#define hipChannelFormatDesc cudaChannelFormatDesc
@@ -644,13 +644,13 @@ inline static hipError_t hipMemcpyPeerAsync ( void* dst, int dstDevice, const v
}
// Profile APIs:
inline hipError_t hipProfilerStart()
{
inline hipError_t hipProfilerStart()
{
return hipCUDAErrorTohipError(cudaProfileStart());
}
inline hipError_t hipProfilerStop()
{
inline hipError_t hipProfilerStop()
{
return hipCUDAErrorTohipError(cudaProfileStop());
}