I use AMD E350 APU to develop an opencl program, however, I found the max global memory size is only 192MB. In my opinion, the GPU core and CPU core in APU have a shared physical memory,and the max global memory of GPU core should be equal to whole physical memory. Is the 192MB a hard line? or the size of global memory can be tuned?
Solved! Go to Solution.
Even that it is same memory they are still separated. Size of GPU memory is setted with BIOS so you can try find it in BIOS settings.
Even that it is same memory they are still separated. Size of GPU memory is setted with BIOS so you can try find it in BIOS settings.
thanks,nou. you are right. there is an option in my efi bios to enable to adjust the size of gpu memory. and i found if the graphic memory is 1gb, global memory will be half (512mb). whatever, it works.
you can experiment with enviroment variable GPU_MAX_HEAP_SIZE you can set it 0-100. it set percentage of GPU memory what can be allocated.
Perfect, It's works, I can use whole GPU memory now! Thank you!