Device-Side Malloc
HIP-Clang now supports device-side malloc and free. This implementation does not require the use of hipDeviceSetLimit(hipLimitMallocHeapSize,value) nor respects any setting. The heap is fully dynamic and can grow until the available free memory on the device is consumed.
The test codes in the link (ROCm-Developer-Tools/HIP) show how to implement application using malloc and free functions in device kernels.
Device-Side Malloc HIP-Clang now supports device-side malloc and free. This implementation does not require the use of hipDeviceSetLimit(hipLimitMallocHeapSize,value) nor respects any setting. The heap is fully dynamic and can grow until the available free memory on the device is consumed.
The test codes in the link (ROCm-Developer-Tools/HIP) show how to implement application using malloc and free functions in device kernels.