-
Notifications
You must be signed in to change notification settings - Fork 758
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error compiling DPC++ #14375
Error compiling DPC++ #14375
Comments
I managed to solve the previous error but now this happens
|
Depending on the host setup, there are various issues on recent nvidia docker images related to interactions with the host, whereby nvidia devices are not visible. There are also particular issues with wsl2. The following may help you.
|
I followed some of the advice but the same issue is persistent. The trouble comes when trying to compile DPC++ with --cuda capabilities in the docker provided in this repository. Was someone able to install this compiler so SYCL code can be executed in a NVIDIA GPU? The steps I am using can be seen in more detail in the following. |
@JackAKirk, to be honest, I expected docker container environment to be enough for building SYCL compiler even w/o access to GPU. It looks like I was wrong and CMake requires access to NVIDIA GPU to configure CUDA properly. CMake successfully configured paths to most of the libraries and includes on my machine (w/o NVIDIA GPU), but I hit the same problem with building PI plug-in.
Relevant parts of CMakeCache.txt.
and
I see that we pass |
So you wat we need to pass
Because if I try that I can't even create the docker container, this error is reported:
|
Yeah I remember getting past this but then still The situation with Nvidia docker is continuously changing from what I can tell. They seem to recommend using https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/index.html now; and since they have switched to this there seems to be quite a lot of bug reports. I don't fully understand how the CI is working for 11.7 and 12.1 versions. |
I was relying on the docker provided in this repository because I wasn't able to install DPC++ with cuda backend. I tryied it on Windows, WSL 2 and in an Ubuntu Laptop. |
In that case I would avoid using docker and concentrate on ensuring you are building correctly. Please consult the getStartedGuide for building dpc++ from source with cuda support: https://github.com/intel/llvm/blob/sycl/sycl/doc/GetStartedGuide.md#build-dpc-toolchain-with-support-for-nvidia-cuda Make sure you are following the windows specific instructions in this section: Some details given on the codeplay plugin documentation regarding compiling with the cuda backend are also relevant to the open source build and may also be helpful to you: However these instructions are aimed at linux support, since the codeplay plugins don't support windows yet, but the opensource does, so please focus your attention on the open source documentation linked above. |
In the WSL I am getting this error, does someone know how to solve it?
and the cuda version I am using is this one:
|
@intel/bindless-images-reviewers Do you think you have made changes recently that break support for cuda 11.5? |
I see the issue. I'll fix this. I should have caught it in my review of the cubemaps PR. |
Could you please let me know when is fixed? |
This is fixed by oneapi-src/unified-runtime#1822 It will take a little while for this to be pulled down to intel/llvm.
|
Describe the bug
I am trying to compile DPC++ wittch cuda capabilities using the docker provided in this repository but I am encountering this error at the end of the building process. Does anyone know how to solve it?
To reproduce
The commands I am using to do so are the following ones:
Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: