Support malloc/free for hip-clang

[ROCm/hip commit: 02d0e93601]
This commit is contained in:
Yaxun Sam Liu
2018-07-24 18:12:32 -04:00
والد a192dbba39
کامیت 289bfe5f95
8فایلهای تغییر یافته به همراه317 افزوده شده و 82 حذف شده
@@ -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);