Forum Discussion
QPham9
New Contributor
6 years agoHi,
I tried to duplicate the error by adding that attribute to one kernel in vector add example above. When I ran the aoc compile, I got this error message:
C:\_qp\inc_compile\exm_opencl_vector_add_x64_windows\vector_add\device>aoc -report -v -incremental vector_add.cl
aoc: Environment checks are completed successfully.
aoc: Cached files in C:\Users\Q\AppData\Local\aocl may be used to reduce compilation time
You are now compiling the full flow!!
aoc: Selected default target board a10gx_hostpipe_net
aoc: Running OpenCL parser....
In file included from c:/_qp/inc_compile/exm_opencl_vector_add_x64_windows/vector_add/device/vector_add.cl:26:
c:/_qp/inc_compile/exm_opencl_vector_add_x64_windows/vector_add/device/vector_div.cl:3:16: warning: unknown attribute 'task' ignored
__attribute__((task))
^
1 warning generated.
aoc: OpenCL parser completed successfully.
aoc: Linking Object files....
aoc: Found existing directory c:/_qp/inc_compile/exm_opencl_vector_add_x64_windows/vector_add/device/vector_add, basing incremental compile off this directory.
Error: Can't copy Board template files: Can't open c:/_qp/inc_compile/exm_opencl_vector_add_x64_windows/vector_add/device/vector_add/ip/ethernet/ethernet_mm_clock_crossing_bridge_0/altera_avalon_mm_clock_crossing_bridge_191/synth/ethernet_mm_clock_crossing_bridge_0_altera_avalon_mm_clock_crossing_bridge_191_pbdlwri.v for write: No such file or directoryI checked the current installed BSP at that path. The file exists. Somehow during the compilation, the file wasn't copied to the vector_add project.
I did switch BSP at some point. Not sure if that caused the issue.