Hi! I'm new to intel one api, and i'm trying to get an excutable file on jupyter: https://jupyter.oneapi.devcloud.intel.com.
My file needs to perform a two matrix multiplication and has the following libraries:
The problem is that if I go to execute one of the following terminal commands:
- icpx -fsycl <file_name>.cpp -o <whatever you want to call the executable>
- icpx -fsycl -odpl <file_name>.cpp -o <how do you want to call the executable>
- icpx -fsycl -qdpl <file_name>.cpp -o <how do you want to call the executable>
I have errors starting with #include <oneapi/dpl/algorithm.h>.
The error is: fatal error: 'oneapi/dpl/algorithm.h' file not found
Can anyone give me help on which terminal command I need to run to get the executable?
Thank you for posting in Intel communities.
Before the execution, please source the vars.sh file as below.
@login-2:~$ cd /opt/intel/oneapi/dpl/latest/env @login-2:/opt/intel/oneapi/dpl/latest/env$ ls vars.sh @login-2:/opt/intel/oneapi/dpl/latest/env$ source vars.sh @login-2:/opt/intel/oneapi/dpl/latest/env$
Also, please provide the absolute path(as below) in the header and try running your script.
If this resolves your issue, make sure to accept this as a solution. This would help others with similar issue. Thank you!