From 4817131cdcd3fdc0aeedb374dac78ca8b21d6af7 Mon Sep 17 00:00:00 2001 From: pensun Date: Tue, 1 Nov 2016 20:30:56 -0500 Subject: [PATCH] Update hipStreamNonBlocking to use cuda define on NV path Change-Id: I74ea09db99d602ba1c5f192b36ff7f2781176e6a --- include/hip/nvcc_detail/hip_runtime_api.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/hip/nvcc_detail/hip_runtime_api.h b/include/hip/nvcc_detail/hip_runtime_api.h index f4a9fd8e1b..cb4a3f8676 100644 --- a/include/hip/nvcc_detail/hip_runtime_api.h +++ b/include/hip/nvcc_detail/hip_runtime_api.h @@ -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()); }