ROCm on APUs
Hello,
The ROCm packages for Debian are built such that they can run on AMD
APUs, however, there is a major limitation. Integrated GPUs are often
configured with a relatively small amount of initial memory dedicated to
the GPU. The APU expects that the memory reserved for the GPU will be
adjusted dynamically. Unfortunately, HIP applications will not
automatically request more memory to be assigned to the GPU and are
therefore stuck with the default allocation.
Carlos Segura has an interesting workaround [1]. Using LD_PRELOAD, they
replace hipMalloc / hipFree with hipHostMalloc / hipHostFree to force
all device memory allocations to use pinned host memory instead.
Sincerely,
Cory Bloor
[1]: https://github.com/segurac/force-host-alloction-APU
Reply to: