Intel® DevCloud
Help for those needing help starting or connecting to the Intel® DevCloud
1626 Discussions

Jupyter error with some libraries

AndreaPorri
Beginner
616 Views

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:
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <oneapi/dpl/algorithm.h>
#include <oneapi/dpl/execution.h>
#include <oneapi/dpl/iterator.h>
#include <oneapi/dpl/numeric.h>
#include <oneapi/dpl/range.h>

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?

0 Kudos
3 Replies
RemyaP_Intel
Moderator
592 Views

Hi,

 

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. 

 

#include <stdio.h>

#include <stdlib.h>

#include <sys/time.h>

#include </opt/intel/oneapi/dpl/latest/linux/include/oneapi/dpl/algorithm>

#include </opt/intel/oneapi/dpl/latest/linux/include/oneapi/dpl/execution>

#include </opt/intel/oneapi/dpl/latest/linux/include/oneapi/dpl/iterator>

#include </opt/intel/oneapi/dpl/latest/linux/include/oneapi/dpl/numeric>

#include </opt/intel/oneapi/dpl/latest/linux/include/oneapi/dpl/ranges>

 

 

If this resolves your issue, make sure to accept this as a solution. This would help others with similar issue. Thank you!

 

 

Regards,

Remya Premdas

 

 

 

 

0 Kudos
RemyaP_Intel
Moderator
539 Views

Hi,


We haven't received any response from your end. Is our issue resolved?


Regards,

Remya Premdas


0 Kudos
RemyaP_Intel
Moderator
477 Views

Hi,


We assume that your issue is resolved. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.


Regards,

Remya Premdas


0 Kudos
Reply