From e25a1e50b379f0ff29eac8d321f71fcb88de6afd Mon Sep 17 00:00:00 2001 From: Aditya Atluri Date: Thu, 13 Oct 2016 10:47:40 -0500 Subject: [PATCH] added constant memory property to 16KB Change-Id: If067b4057c2e3fc0c26cf4604a1d4fac7f139b12 --- hipamd/src/hip_hcc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hipamd/src/hip_hcc.cpp b/hipamd/src/hip_hcc.cpp index ab5ff28c4f..f6d3024b69 100644 --- a/hipamd/src/hip_hcc.cpp +++ b/hipamd/src/hip_hcc.cpp @@ -645,7 +645,6 @@ hipError_t ihipDevice_t::initProperties(hipDeviceProp_t* prop) // Set some defaults in case we don't find the appropriate regions: prop->totalGlobalMem = 0; prop->totalConstMem = 0; - prop->sharedMemPerBlock = 0; prop-> maxThreadsPerMultiProcessor = 0; prop->regsPerBlock = 0; @@ -796,6 +795,7 @@ hipError_t ihipDevice_t::initProperties(hipDeviceProp_t* prop) prop->concurrentKernels = 1; // All ROCm hardware supports executing multiple kernels concurrently prop->canMapHostMemory = 1; // All ROCm devices can map host memory + prop->totalConstMem = 16384; #if 0 // TODO - code broken below since it always returns 1. // Are the flags part of the context or part of the device?