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 ago --- Quote Start --- Why do you have "cudaMemcpy" in an OpenCL code??!! How do you even compile this code? --- Quote End --- Because the original code was written in CUDA and runs on CPU/GPU, and I want to port the code to OpenCL one part at a time. So this code is running on CPU/GPU and emulator(also CPU). I compile the way the Altera design examples do, Visual Studio(include cuda headers) for the host program and the aoc for the kernel and execute in command prompt. The CUDA part shouldn't be a problem since the output frames are fine.