Hello,
My Radeon 7970 has 3gb of memory. The global memory size only shows 3gb when I query the device. I have set the environment variable GPU_MAX_HEAP_SIZE to 100. The OS I am running is 32-bit debian sid. I have several other cards which all show the correct memory when that environment variable is set to 100.
Thanks,
Scrape
Solved! Go to Solution.
what is the command u used to query the device?
Using "clinfo", can you get the correct info about the card?
clinfo gives me more memory than I thought was on the card:
Global memory size: 375809638 |
When I call clGetDeviceInfo for the property CL_DEVICE_GLOBAL_MEM_SIZE I get: 2147483648
per yurteson's suggestion once I set GPU_MAX_ALLOC_PERCENT=100 in the environment, clGetDeviceInfo gives me: 3102736384
I am now more confused than before
from release notes AMD APP SDK
On Linux for non-Southern_Islands platforms, the OpenCL runtime currently exposes less than the total amount of memory
physically available on the card. In Windows and on Linux or Southern-Islands-based platforms, the OpenCL runtime reports the total amount of physical memory for boards with up to 2 GB.
Did you try the undocumented/unsupported:
GPU_MAX_ALLOC_PERCENT=100
That worked, thanks, really weird stuff.