Fuxianjun

How to create buffer on device memory?

Discussion created by Fuxianjun on Sep 8, 2010
Latest reply on Sep 10, 2010 by Raistmer

I create several arrays on cpu and want to operate them on gpu, I got that since operation is on gpu, to access gpu memory is faster than host memory. So, how to create buffers of these arrays on gpu memory? can I use just only clCreateBuffer() function ? If so, how to choose flag? Thanks !

Outcomes