Forum Discussion
Altera_Forum
Honored Contributor
7 years agoThe code looks like it should work.
I'm wondering if the FC_weight_buf[0] isn't getting released somehow. Could you try moving the the clCreateBuffer and clReleaseMemObject outside the for loop and see if you get the same error? Doing an clEnqueueWriteBuffer should still work as expected but it'll just overwrite the data from the previous loop which isn't being used anymore.