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

Cannot choose gpu device more than 0 #72

Open
spl0i7 opened this issue Oct 6, 2018 · 9 comments
Open

Cannot choose gpu device more than 0 #72

spl0i7 opened this issue Oct 6, 2018 · 9 comments

Comments

@spl0i7
Copy link

spl0i7 commented Oct 6, 2018

I build the coriander on arch linux. While I had no problems in installation, the source sample I am unable to run the cuda sample program or any other cuda program whatsoever because as soon I execute the program I get

$  ./sample 
Cannot choose gpu device more than 0
terminate called after throwing an instance of 'std::runtime_error'
  what():  gpu device ordinal beyond range of number of gpus
fish: “./sample” terminated by signal SIGABRT (Abort)

what can I do to fix this?

@mowagih96
Copy link

I'm facing the same problem now
I think it is because your integrated GPU is selected by default (my case was intel) I'm trying to figure out now how to make AMD is the default one I'll update you if I found anything :D

@mowagih96
Copy link

I figured out that it is an opencl issue try to update yours the error is gone but now I've another one xD
"Segmentation fault (core dumped)"

@mowagih96
Copy link

@hughperkins what do you think about this error? We're both stuck at this step and I tried almost everything

@spl0i7
Copy link
Author

spl0i7 commented Oct 9, 2018

I think there's some problem with program being unable to find opencl device. I tried clinfo and it pretty much returned Number of platforms 0. I think we need to install correct hardware runtime.

@mowagih96
Copy link

What do you mean by "install correct hardware runtime"? You mean the GPU drivers?

@spl0i7
Copy link
Author

spl0i7 commented Oct 9, 2018 via email

@mowagih96
Copy link

I tried mesa and it didn't work xD
Did u try any of them and worked for you?

@spl0i7
Copy link
Author

spl0i7 commented Oct 9, 2018 via email

@chancecardona
Copy link

I resolved this on Ubuntu 22.04 for AMD by adding sudo apt install pocl-opencl-icd as those weren't installed. After that this issue went away.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants