hipMemsetD8 support for HIP/NVCC path

Change-Id: I48eee8266afd7b45a12d5ce2c4849b687a006c0f
This commit is contained in:
Rahul Garg
2017-03-14 23:49:21 +05:30
parent 1aba3c4375
commit 913867fe6a
2 changed files with 8 additions and 3 deletions
@@ -397,6 +397,11 @@ inline static hipError_t hipMemsetAsync(void* devPtr,int value, size_t count, hi
return hipCUDAErrorTohipError(cudaMemsetAsync(devPtr, value, count, stream));
}
inline static hipError_t hipMemsetD8(hipDeviceptr_t dest, unsigned char value, size_t sizeBytes )
{
return hipCUResultTohipError(cuMemsetD8(dest, value, sizeBytes));
}
inline static hipError_t hipGetDeviceProperties(hipDeviceProp_t *p_prop, int device)
{
cudaDeviceProp cdprop;