Forum Discussion
Altera_Forum
Honored Contributor
9 years agoMemory leak using emulator
Hi I'm working on transforming a CUDA program to OpenCL and run on FPGA, right now I'm using the emulator since I don't have the device yet. I wrote a OpenCL kernel that do some simple comput...
Altera_Forum
Honored Contributor
9 years agoThe goal is to port everything to OpenCL/FPGA. The whole program is not trivial so I'm trying to port one kernel at a time.
Thank you for the suggestion, I would try to run OpenCL on GPU as well. Do you mean CL_MEM_COPY_HOST_PTR is the proper way? I did try it but the result was the same. The problem I'm facing is whenever I launch a kernel thread on the emulator it would take more memory space, and it doesn't release them after it's done. ----------------------------- Well I guess I found the problem:p