Re: [Mesa-dev] OpenCL max VRAM setting

2016-04-26 Thread Bas Nieuwenhuizen
Hi Bo, I am not aware of any environment variables that do that. However you can change the limit in the source code. You can change the single allocation size limit in src/gallium/drivers/radeon/r600_pipe_common.c where max_mem_alloc_size is set to 256MiB. You can change that, and then the total

[Mesa-dev] OpenCL max VRAM setting

2016-04-26 Thread Bo Gao
Hi all, First time poster here. Is there any way I can change global memory size and max allocable memory size for an OpenCL program? My card has 4GB or VRAM, but seems like I can only use a quarter of it for OCL, and I can only use a quarter of the quarter for a single block of allocation. Is the