Support malloc/free for hip-clang

This commit is contained in:
Yaxun Sam Liu
2018-07-24 18:12:32 -04:00
parent 1a09b9d4d4
commit 02d0e93601
8 changed files with 317 additions and 82 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ hipError_t hipDeviceGetLimit(size_t* pValue, hipLimit_t limit) {
return ihipLogStatus(hipErrorInvalidValue);
}
if (limit == hipLimitMallocHeapSize) {
*pValue = (size_t)SIZE_OF_HEAP;
*pValue = (size_t)__HIP_SIZE_OF_HEAP;
return ihipLogStatus(hipSuccess);
} else {
return ihipLogStatus(hipErrorUnsupportedLimit);