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

dpct not able to find CUDA header files

Jump to solution

I have upgraded to oneAPI Beta 8. When I run dpct, I see a different behavior:

$dpct -p compile_commands.json

The directory "dpct_output" is used as "out-root"
dpct exited with code: -5 (Error: Path for CUDA header files is invalid or not available. Specify with --cuda-include-path)

 

CUDA header files are available through $PATH, $CUDADIR, $CUDA_INCLUDE_PATH and $CUDA_PATH.  

 

When explicitly specifying the path to include files, I see the same behavior:

 

$ dpct --cuda-include-path=/usr/local/cuda/include -p compile_commands.json
The directory "dpct_output" is used as "out-root"
dpct exited with code: -5 (Error: Path for CUDA header files is invalid or not available. Specify with --cuda-include-path)

 

I used to use CUDA 11.0.228 with Beta07. I understand Beta07 supported CUDA 10.1 but since Beta07 worked with CUDA 11, I did not bother to downgrade. I wonder if above error message is due to CUDA version dpct sees or something different?

Labels (2)
0 Kudos

Accepted Solutions
Highlighted
72 Views

Hello,

 

I downloaded CUDA 10.2 and installed it side by side with existing 11.0 without downgrading drivers, installed binaries, etc. DPCT seem to be happy now and not generating the cryptic error message. thanks.

View solution in original post

0 Kudos
7 Replies
Highlighted
Moderator
108 Views

Hi,

 

As per the latest oneAPI beta08 DPCT requirements, the only supported CUDA versions are: 8.0, 9.x, 10.1, 10.2.

 

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

 

Since the requirements are not met, DPCT will throw an error if you try to migrate.

 

DPCT only needs CUDA headers from the supported versions. So, if you could manage to get headers from these supported versions (given above) and provide its path to the --cuda-include-path flag, there are pretty high chances that it could work, without having to downgrade your current CUDA version.

 

Let me know if it helps.

 

Regards,

Rahul

 

0 Kudos
Highlighted
101 Views
I am suspicious but willing to give it a try. Is there any way I can grab the header files quickly without downloading the entire package? I hope this would be a quick exercise.
0 Kudos
Highlighted
Moderator
93 Views

Hi,


You can give it a try on their Github pages. The other option would be to copy the headers from a machine that has one of the supported CUDA versions installed, on to your machine.


--Rahul


0 Kudos
Highlighted
73 Views

Hello,

 

I downloaded CUDA 10.2 and installed it side by side with existing 11.0 without downgrading drivers, installed binaries, etc. DPCT seem to be happy now and not generating the cryptic error message. thanks.

View solution in original post

0 Kudos
Highlighted
Moderator
67 Views

Hi,


Good to know that it works.


Let me know if I can close the thread from my end?



Thanks,

Rahul


0 Kudos
Highlighted
55 Views

Please close.

Thanks

Farshad.

0 Kudos
Highlighted
Moderator
40 Views

Thanks for the confirmation.


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


0 Kudos