coriander
coriander copied to clipboard
Cannot choose gpu device more than 0
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?
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
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)"
@hughperkins what do you think about this error? We're both stuck at this step and I tried almost everything
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.
What do you mean by "install correct hardware runtime"? You mean the GPU drivers?
https://wiki.archlinux.org/index.php/GPGPU
On Tue, Oct 9, 2018, 8:01 PM Mohamed Wagih [email protected] wrote:
What do you mean by "install correct hardware runtime"? You mean the GPU drivers?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hughperkins/coriander/issues/72#issuecomment-428215425, or mute the thread https://github.com/notifications/unsubscribe-auth/AGjrBnDvOozJudhvGPWH6JTFOpLImPteks5ujLM9gaJpZM4XLOvJ .
I tried mesa and it didn't work xD Did u try any of them and worked for you?
Did not work, I'll try it on Debian
On Tue, Oct 9, 2018, 8:29 PM Mohamed Wagih [email protected] wrote:
I tried mesa and it didn't work xD Did u try any of them and worked for you?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hughperkins/coriander/issues/72#issuecomment-428226927, or mute the thread https://github.com/notifications/unsubscribe-auth/AGjrBoIW3jMkyb35bhDFSMPckMICE1oYks5ujLnlgaJpZM4XLOvJ .
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.