Skip to content
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

CUDA version simultaneously needs and cannot have OpenCL #1559

Closed
tomdeakin opened this issue Apr 21, 2020 · 4 comments
Closed

CUDA version simultaneously needs and cannot have OpenCL #1559

tomdeakin opened this issue Apr 21, 2020 · 4 comments
Assignees
Labels
cuda CUDA back-end

Comments

@tomdeakin
Copy link

The CUDA version still requires the OpenCL ICD to build and run against (an issue in it's own right). If there is then a valid OpenCL platform available at runtime, a runtime error is thrown on device selection.

One unacceptable workaround is this, but it means we then can't run any OpenCL code on that system.

sudo mkdir /etc/OpenCL/vendors/disable
sudo mv /etc/OpenCL/vendors/nvidia.icd /etc/OpenCL/vendors/disable/

We're running CentOS 7.6, CUDA 10.1, and building with GCC 8.3.0.

@bader bader added the cuda CUDA back-end label Apr 21, 2020
@Ruyk
Copy link
Contributor

Ruyk commented Apr 21, 2020

#1543 should fix the accidental selection of the NVIDIA OpenCL platform.

@Ruyk
Copy link
Contributor

Ruyk commented Jun 8, 2020

I think #1689 solves the problem, am I correct?

@tomdeakin
Copy link
Author

I think it does, at least for device selection. Thanks!

I think the way the compiler builds now means it's not as tricky to match up with OpenCL. I will try to build this again when I get a chance.

@bader
Copy link
Contributor

bader commented Jun 29, 2020

@tomdeakin, can we close this issue?

bader pushed a commit to bader/llvm that referenced this issue Jul 11, 2024
The changes fix the warning: `warning: unused template argument:
BinInst_ii:node`. It is generated while building the pisa repo.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cuda CUDA back-end
Projects
None yet
Development

No branches or pull requests

3 participants