Forum Discussion
Altera_Forum
Honored Contributor
11 years agoHi Smith,
Thank you for your reply. I could not find the libOpenCL.so, which is what I'd usually expect to be provided by the Altera BSPs or the Altera OpenCL SDK environment. I say that from experience using the AMD and nVidia OpenCL platforms. They would usually have libOpenCL.so and then the Installable Client Driver loader would check for the vendor-specific .icd file to load the right libOpenCL.so. In the Altera OpenCL environment instead, I see that the Altera OpenCL SDK links using the following libraries in my environment:>> aocl ldlibs
-lalteracl -ldl -lacl_emulator_kernel_rt -lalterahalmmd -laltera_apb_14_0_mmd -lelf -lrt -lstdc++ I compile OpenCL host code perfectly fine when it is written in C++, but I run into problems as stated in my first post when I use C code. Surely the case cannot be that Altera's OpenCL environment does not support host code written in C? I have never run into this problem compiling host code on AMD or nVidia's OpenCL development environments. I am using a Terasic DE5-Net board. the libaltera_apb_14_0_mmd.so is provided from Terasic's BSP, and the rest from the s5_ref Stratix V BSP from Altera, if I understand correctly. Kind regards, Victor