UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Explorer
Explorer
877 Views
Registered: ‎05-23-2017

xcl2.hpp cannpt be found

Jump to solution

There are three files in my folder.

main.cpp

kernel.cpp

params.h

 

The main file includs the params.h file.

In the params.h file it includes

"#include "xcl2.hpp"
#include <CL/cl.h>
#include <CL/opencl.h>
"

When compiling it says

params.h:6:10: fatal error: 'xcl2.hpp' file not found
#include "xcl2.hpp"

But from the out put of the make I can see the -I includes the "

../../../libs/xcl2

", where is the xcl2.hpp located.

 

/opt/Xilinx/SDx/2018.2.EA2236721/bin/xcpp -Wall -O0 -g -std=c++14 -I ./include -I ../../../libs/xcl2/ -I../../../libs/xcl2 -I/opt/Xilinx/SDx/2018.2.EA2236721/runtime/include/1_2 -O0 -g -Wall -fmessage-length=0 -fopenmp  ./src/main.cpp src/k_nn.cpp src/pca_index.cpp  src/common.cpp src/csv_parser.cpp ../../../libs/xcl2/xcl2.cpp -o pcaf_host -lOpenCL -lpthread -lrt -lstdc++ -lflann -lgsl -L/opt/Xilinx/SDx/2018.2.EA2236721/runtime/lib/x86_64 -L./lib -L/opt/Xilinx/SDx/2018.2.EA2236721/runtime/lib/x86_64 -L/opt/Xilinx/SDx/2018.2.EA2236721/lib/lnx64.o -lOpenCL -pthread 

Why?

Please help.

 

 

 

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Xilinx Employee
Xilinx Employee
840 Views
Registered: ‎06-17-2008

Re: xcl2.hpp cannpt be found

Jump to solution

Could you try using absolute path in -I and see if it works?

0 Kudos
2 Replies
Highlighted
Xilinx Employee
Xilinx Employee
841 Views
Registered: ‎06-17-2008

Re: xcl2.hpp cannpt be found

Jump to solution

Could you try using absolute path in -I and see if it works?

0 Kudos
Moderator
Moderator
694 Views
Registered: ‎11-04-2010

Re: xcl2.hpp cannpt be found

Jump to solution

Hi, @mathmaxsean ,

Does the absolute path method suggested by yunl work for you?

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos