Intel® oneAPI Data Parallel C++
Support for Intel® oneAPI DPC++ Compiler, Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and GDB*
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

DPCT error: dpct exited with error code -5

Siddhanta_Shroff
426 Views

Hello,

I am trying to follow the steps given on https://software.intel.com/content/www/us/en/develop/documentation/get-started-with-intel-dpcpp-comp... 

Upon compilation, I get an error saying the path for CUDA header files is invalid. I am trying to use the compatibility tool on the devcloud server.

Now, to include the CUDA path I need to first install the CUDA toolkit but I cannot install it without sudo access. Could you please help me understand what is it that I can do to get it running on the server?

Siddhanta_Shroff_0-1602870869135.png

Thanks & regards,

Siddhanta

0 Kudos
1 Solution
RahulV_intel
Moderator
389 Views

Hi,

 

You need to install CUDA toolkit in your home directory (Home directory installation doesn't require sudo. You may find the instructions for the same on the Nvidia official webpage). Once you have installed the toolkit, use the below command to perform migration for a single source file:

 

dpct --cuda-include-path=/path/to/cuda/include vec_add.cu

 

This command will save the migrated files to the dpct_output directory by default.

 

Kindly refer to the DPCT user guide for more information:

https://software.intel.com/content/www/us/en/develop/documentation/intel-dpcpp-compatibility-tool-us...

 

For more than one source files, please note that you will have to generate a compile_commands.json file using your source application's Makefile (intercept-build make command) and perform the migration with the help of the generated json file. (Refer to the user guide for more info)

 

Please refer to the below link for supported CUDA versions and hardware/software requirements:

https://software.intel.com/content/www/us/en/develop/articles/intel-dpc-compatibility-tool-system-re...

 

Thanks,

Rahul

View solution in original post

2 Replies
RahulV_intel
Moderator
390 Views

Hi,

 

You need to install CUDA toolkit in your home directory (Home directory installation doesn't require sudo. You may find the instructions for the same on the Nvidia official webpage). Once you have installed the toolkit, use the below command to perform migration for a single source file:

 

dpct --cuda-include-path=/path/to/cuda/include vec_add.cu

 

This command will save the migrated files to the dpct_output directory by default.

 

Kindly refer to the DPCT user guide for more information:

https://software.intel.com/content/www/us/en/develop/documentation/intel-dpcpp-compatibility-tool-us...

 

For more than one source files, please note that you will have to generate a compile_commands.json file using your source application's Makefile (intercept-build make command) and perform the migration with the help of the generated json file. (Refer to the user guide for more info)

 

Please refer to the below link for supported CUDA versions and hardware/software requirements:

https://software.intel.com/content/www/us/en/develop/articles/intel-dpc-compatibility-tool-system-re...

 

Thanks,

Rahul

View solution in original post

RahulV_intel
Moderator
363 Views

Thanks for accepting the solution.


Intel will no longer monitor this thread. However, this thread will remain open for community discussion.


Reply