Quantcast
Channel: Altera Forums
Viewing all articles
Browse latest Browse all 19390

Compiling OpenCL kernel in Fedora 28

$
0
0
Hi,

I have installed OpenCL SDK in my Fedora 28. But while trying to compile the kernel I am getting the following linking error,

Quote:

[sumanish@black vector_add]$ aoc -march=emulator -v -board=a10gx device/vector_add.cl -o bin/vector_add.aocx
aoc: Environment checks are completed successfully.
aoc: Cached files in /var/tmp/aocl/sumanish may be used to reduce compilation time
You are now compiling the full flow!!
aoc: Selected target board a10gx
aoc: Running OpenCL parser....
/home/sumanish/Intel_FPGA_OpenCL_SDK/Examples/exm_opencl_vector_add_x64_linux/vector_add/device/vector_add.cl:23:48: warning: declaring kernel argument with no 'restrict' may lead to low kernel performance
__kernel void vector_add(__global const float *x,
^
/home/sumanish/Intel_FPGA_OpenCL_SDK/Examples/exm_opencl_vector_add_x64_linux/vector_add/device/vector_add.cl:24:48: warning: declaring kernel argument with no 'restrict' may lead to low kernel performance
__global const float *y,
^
2 warnings generated.
aoc: OpenCL parser completed successfully.
aoc: Linking Object files....
aoc: Compiling for Emulation ....
/usr/bin/ld: cannot find crtbeginS.o: No such file or directory
/usr/bin/ld: cannot find -lgcc
/usr/bin/ld: cannot find -lgcc_s
aocl-clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error: Optimizer FAILED.
Refer to vector_add/vector_add.log for details.


[sumanish@black vector_add]$
Which thing I am missing ? Please help.

Regards,
Sumanish

Viewing all articles
Browse latest Browse all 19390

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>