From a8d30da64842dca0cb5292b13d7a7fe8fd5a2832 Mon Sep 17 00:00:00 2001 From: Aditya Atluri Date: Sat, 5 Mar 2016 13:08:57 -0600 Subject: [PATCH] Revert "Added canMapHostMemory feature" This reverts commit 8c3777d3172681f65e2cf3ba33fe6562620f3ca5. --- hipamd/include/nvcc_detail/hip_runtime_api.h | 1 - hipamd/tests/src/hipHostAlloc.cpp | 20 -------------------- 2 files changed, 21 deletions(-) delete mode 100644 hipamd/tests/src/hipHostAlloc.cpp diff --git a/hipamd/include/nvcc_detail/hip_runtime_api.h b/hipamd/include/nvcc_detail/hip_runtime_api.h index 1413d735f6..a8408211b2 100644 --- a/hipamd/include/nvcc_detail/hip_runtime_api.h +++ b/hipamd/include/nvcc_detail/hip_runtime_api.h @@ -177,7 +177,6 @@ inline static hipError_t hipDeviceGetProperties(hipDeviceProp_t *p_prop, int dev p_prop->l2CacheSize = cdprop.l2CacheSize ; p_prop->maxThreadsPerMultiProcessor = cdprop.maxThreadsPerMultiProcessor ; p_prop->computeMode = cdprop.computeMode ; - p_prop->canMapHostMemory = cdprop.canMapHostMemory; // Same as clock-rate: p_prop->clockInstructionRate = cdprop.clockRate; diff --git a/hipamd/tests/src/hipHostAlloc.cpp b/hipamd/tests/src/hipHostAlloc.cpp deleted file mode 100644 index b8acdeb0b3..0000000000 --- a/hipamd/tests/src/hipHostAlloc.cpp +++ /dev/null @@ -1,20 +0,0 @@ -#include -#include"test_common.h" - -__global__ void Add(hipLaunchParm lp, float *Ad, float *Bd, float *Cd){ -int tx = hipThreadIdx_x + hipBlockIdx_x * hipBlockDim_x; -Cd[tx] = Ad[tx] + Bd[tx]; -} - -int main(){ -float *A, *B, *C; -float *Ad, *Bd, *Cd; - -hipDeviceProp_t prop; -int device; -hipGetDevice(&device); -hipDeviceGetProperties(&prop, device); -if(prop.canMapHostMemory != 1){ -std::cout<<"Exiting.."<