raise iMX8M Plus memory size for OpenCL Global memory

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

raise iMX8M Plus memory size for OpenCL Global memory

773件の閲覧回数
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

 

ラベル(1)
0 件の賞賛
返信
1 返信

755件の閲覧回数
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 件の賞賛
返信