Intel® oneAPI Data Parallel C++
Support for Intel® oneAPI DPC++ Compiler, Intel® oneAPI DPC++ Library, Intel ICX Compiler , Intel® DPC++ Compatibility Tool, and GDB*
582 Discussions

DPCT error: dpct exited with error code -5

Siddhanta_Shroff
1,182 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-compatibility-tool/top.html 

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
1,145 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-user-guide/top/usage-workflow-overview.html

 

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-requirements.html

 

Thanks,

Rahul

View solution in original post

2 Replies
RahulV_intel
Moderator
1,146 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-user-guide/top/usage-workflow-overview.html

 

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-requirements.html

 

Thanks,

Rahul

RahulV_intel
Moderator
1,119 Views

Thanks for accepting the solution.


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


0 Kudos
Reply