Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
126 Views

DPCT error: dpct exited with error code -5

Jump to solution

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

Accepted Solutions
Highlighted
Moderator
89 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
Highlighted
Moderator
90 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

Highlighted
Moderator
63 Views

Thanks for accepting the solution.


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


0 Kudos