Intel® oneAPI Data Analytics Library
Learn from community members on how to build compute-intensive applications that run efficiently on Intel® architecture.

Steps to run onedaal C++ examples

3 Replies
JaideepK_Intel
Employee
1,402 Views

Hi,

 

Thank you for posting in Intel communities.

 

I will try to explain as simple as possible. There are some dependencies required to build OneDAL samples, so the best way is to download the base toolkit and build the samples.

 

Please follow the below commands.

 

Download Basetoolkit with the following command (for Linux):

wget https://registrationcenter-download.intel.com/akdlm/IRC_NAS/7deeaac4-f605-4bcf-a81b-ea7531577c61/l_BaseKit_p_2023.1.0.46401_offline.sh

To install Basetoolkit run the below command.

sudo sh ./l_BaseKit_p_2023.0.0.25537_offline.sh

 

Note: Please run the below commands as root/sudo user (i.e sudo su)

sudo su

Set the environment variables with the below command.

source /opt/intel/oneapi/setvars.sh

 

Since you are trying to build cpp samples go to the below path.

cd /opt/intel/oneapi/dal/latest/examples/oneapi/cpp

 

>>Building samples:

Create a build directory and run the below commands.

mkdir build && cd build

generate a Makefile with the below command.

cmake ..

JaideepK_Intel_0-1683132660891.png

make -j 4

After running the above command, we can build all the OneDAL C++ samples. I am attaching a screenshot for reference.

JaideepK_Intel_1-1683132693263.png

This is the path to the samples directory.

/opt/intel/oneapi/dal/latest/examples/oneapi/cpp/_cmake_results/intel_intel64_so/

JaideepK_Intel_2-1683132764932.png

 

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

 

Regards,

Jaideep

 

0 Kudos
JaideepK_Intel
Employee
1,346 Views

Hi,


I hope you are doing well.


If the above workaround resolves your issue, make sure to accept this as a solution. This would help others with similar issue.


Thanks,

Jaideep


0 Kudos
JaideepK_Intel
Employee
1,285 Views

Hi,


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


Thanks,

Jaideep


0 Kudos
Reply