cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

usachovandrii
Journeyman III

Problem with Memory in args

Hello! I have a few questions.
1. what limitations on memory for buffers when programming on GPU?

2. does exist any problems with printf in OpenCL 1.1. Why some errors (in building prigram) only appear if you add the output to the screen in the kernel.

3. what problems can be with kernel args if types of data in kernel and outside of kernel are identical

0 Likes
2 Replies
nou
Exemplar

1. only size. you can't allocate bigger buffer than device allow. also sum of size all used buffers can't exceed global memory size of device.

3. you mean not identical? you get gibberish data and also you can end up read/write beyond size of buffer which can lead to many cases of undefined behavior. that mean you program crash, OS can crash or it will cause that your milk sour.

0 Likes
himanshu_gautam
Grandmaster

OpenCL 1.1? Can you give your system details: GPU, Driver, SDK, OS.

0 Likes