raise iMX8M Plus memory size for OpenCL Global memory

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

raise iMX8M Plus memory size for OpenCL Global memory

217 Views
Benjamin_Hu
Contributor I

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

 

Labels (1)
0 Kudos
Reply
1 Reply

199 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @Benjamin_Hu 

The gpu_reservedmemory 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
};
0 Kudos
Reply