intel / llvm

Intel staging area for llvm.org contribution. Home for Intel LLVM-based projects.
Other
1.21k stars 724 forks source link

Device-Side Malloc #10646

Open jinz2014 opened 1 year ago

jinz2014 commented 1 year ago

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.

0x12CC commented 1 month ago

This request is similar to https://github.com/intel/llvm/issues/910 and https://github.com/intel/llvm/issues/7623.