Forum Discussion
aoc error for emulation
- 7 years ago
Vinay,
Please, check that you set the environment variable CL_CONTEXT_EMULATOR_DEVICE_INTELFPGA=<number_of_devices>.
For more information about emulating OpenCL Kernels read here.
Best regards,
Sergey
Hi Sergey,
I work in Vinay's team. I was trying out the Sobel Filter Design Example. While compiling the host code I got this error
host/src/display.cpp:23:10: fatal error: SDL2/SDL.h: No such file or directory
#include <SDL2/SDL.h>
^~~~~~~~~~~~
compilation terminated.
../common/src/AOCLUtils/opencl.cpp: In function ‘_cl_program* aocl_utils::createProgramFromBinary(cl_context, const char*, _cl_device_id* const*, unsigned int)’:
../common/src/AOCLUtils/opencl.cpp:388:22: warning: ignoring attributes on template argument ‘cl_int {aka int}’ [-Wignored-attributes]
scoped_array<cl_int> binary_status(num_devices);
^
Makefile:74: recipe for target 'bin/host' failed
make: *** [bin/host] Error 1
Please help me to solve this.
Thanks and regards,
Hamsika.
Use this library in ur path.It will work
cheers,
Prithvi (ISRO)