Altera_Forum
Honored Contributor
12 years agoAny OpenCL Debugging Tools?
I have one OpenCL code which runs well on CPU/GPU, but fail to run through on FPGA.
Are there any OpenCL Debugging Tools available to read out the inner status over JTAG? The code: (with initialized global_offset[0] = 0, and global size is 128) __kernel void global_atomic_sequential_write(__global int *global_offset, int num_elem) { const unsigned int global_id = get_global_id(0); bool DoWork = false; while (!DoWork) { DoWork = atomic_cmpxchg(&global_offset[0], 0, 1) == 0; } global_offset[0] = 0; }