Support malloc/free for hip-clang

This commit is contained in:
Yaxun Sam Liu
2018-07-24 18:12:32 -04:00
orang tua 17f612def1
melakukan d17dc21c9c
8 mengubah file dengan 317 tambahan dan 82 penghapusan
+1 -1
Melihat 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);