From 84d64ef382170df50d966395fa07db03ed7a7bb9 Mon Sep 17 00:00:00 2001 From: Aditya Atluri Date: Tue, 25 Oct 2016 11:03:35 -0500 Subject: [PATCH] reverted change for cache size query Change-Id: I44a1f43818cd287a2a3b6265f43d183f9bd5b71c [ROCm/hip commit: e1c1b4c009be6cd1af2f185fe83053937b162747] --- projects/hip/src/hip_hcc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/hip/src/hip_hcc.cpp b/projects/hip/src/hip_hcc.cpp index 0ef9a45ca6..7fa25334bc 100644 --- a/projects/hip/src/hip_hcc.cpp +++ b/projects/hip/src/hip_hcc.cpp @@ -769,7 +769,7 @@ hipError_t ihipDevice_t::initProperties(hipDeviceProp_t* prop) uint32_t cache_size[4]; err = hsa_agent_get_info(_hsaAgent, HSA_AGENT_INFO_CACHE_SIZE, cache_size); DeviceErrorCheck(err); - prop->l2CacheSize = cache_size[0]; + prop->l2CacheSize = cache_size[1]; /* Computemode for HSA Devices is always : cudaComputeModeDefault */ prop->computeMode = 0;