Forum Discussion
Altera_Forum
Honored Contributor
8 years agoCalling EnqueuTask multiple times is not working.
I am running one program on my server with 32GB RAM. We have requirement to do matrix multiplication of 64x64x256 image with filter of the same size (64x64x256). Problem is that we have 2614600 such ...
Altera_Forum
Honored Contributor
8 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.