soongk
soongk

Reputation: 279

Can I alloc memory bigger than CL_DEVICE_MAX_MEM_ALLOC_SIZE?

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?

Upvotes: 4

Views: 2680

Answers (1)

Citrus
Citrus

Reputation: 1160

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

Upvotes: 2

Related Questions