Hi ,
It is Linux 5.15 on iMX8M Plus. clinfo returns that OpenCL global memory is 256MB by default.
~# clinfo|grep 'Global memory'
Global memory size 268435456 (256MiB)
Global memory size 268435456 (256MiB)
I would like to raise it to e.g. 512MB. After adding 'galcore.contiguousSize=536870912', the contiguousSize is changed from 268435456 (256MB) to 536870912 (512MB). However, clinfo still returns 256MB for global memory. Is anything also that I should change? Thanks.
~# cat /sys/module/galcore/parameters/contiguousSize
536870912
Hi @Benjamin_Hu
The gpu_reserved
memory region is 256 MB in imx8mp.dtsi.
gpu_reserved: gpu_reserved@100000000 {
no-map;
reg = <0x1 0x00000000 0 0x10000000>;
};
To use 512MB, you can try below config
gpu_reserved: gpu_reserved@100000000 {
no-map;
reg = <0x1 0x00000000 0 0x20000000>; // 512 MiB
};