Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I alloc memory bigger than CL_DEVICE_MAX_MEM_ALLOC_SIZE?

Tags:

opencl

Can I alloc bigger memory than CL_DEVICE_MAX_MEM_ALLOC_SIZE?

I'm using NVIDIA GeForce GTX 960 (with nvidia driver 352.39 + CUDA 7.5)

GTX960 has 2GB memory, so CL_DEVICE_MAX_MEM_ALLOC_SIZE=512MB (1/4 of full memory as default).

But my kernel needs more memory than 512MB.

Is there some solution to allocate memory bigger than CL_DEVICE_MAX_MEM_ALLOC_SIZE?

like image 616
soongk Avatar asked Sep 18 '25 06:09

soongk


1 Answers

You can allocate bigger memory region than CL_DEVICE_MAX_MEM_ALLOC_SIZE, but beware, it should be slow.

Also, read this thread for more info

like image 167
Citrus Avatar answered Sep 23 '25 10:09

Citrus