GithubHelp home page GithubHelp logo

Comments (43)

wanderine avatar wanderine commented on August 17, 2024

You don't need to install clBLAS, you just need to set the environment
variable LD_LIBRARY_PATH

e.g.

export
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/andek/BROCCOLI/code/BROCCOLI_LIB/clBLASLinux

2015-08-15 3:14 GMT+02:00 ImmanuelSamuel [email protected]:

https://launchpad.net/ubuntu/+source/clblas

I tried the .deb file but it said dependency not satisfied in synaptics
package manager. I am not very familiar with ubuntu so I would rather no go
through the cmake route. Just seems too much. Something like apt-get would
be great for me.
Thank you


Reply to this email directly or view it on GitHub
#19.

Anders Eklund, PhD

from broccoli.

ImmanuelSamuel avatar ImmanuelSamuel commented on August 17, 2024

Thanks that worked. But the GetOpenCLInfo still doesnt recognize my NVIDIA card. I did install libcuda1-355, nvidia-355, nvidia-opencl-icd-355 but still its not showing up.

from broccoli.

wanderine avatar wanderine commented on August 17, 2024

Try

Sudo nvidia-xconfig

And then reboot
Den 15 aug 2015 20:12 skrev "ImmanuelSamuel" [email protected]:

Thanks that worked. But the GetOpenCLInfo still doesnt recognize my NVIDIA
card. I did install libcuda1-355, nvidia-355, nvidia-opencl-icd-355 but
still its not showing up.


Reply to this email directly or view it on GitHub
#19 (comment).

from broccoli.

ImmanuelSamuel avatar ImmanuelSamuel commented on August 17, 2024

Did that it said writing to new conf file in X11 folder or something but still it doesn't show up

from broccoli.

wanderine avatar wanderine commented on August 17, 2024

Try

sudo apt-get purge nvidia*

sudo apt-get install nvidia-current
Den 15 aug 2015 20:33 skrev "ImmanuelSamuel" [email protected]:

Did that it said writing to new conf file in X11 folder or something but
still it doesn't show up


Reply to this email directly or view it on GitHub
#19 (comment).

from broccoli.

ImmanuelSamuel avatar ImmanuelSamuel commented on August 17, 2024

Did that and ran getopenclinfo nothing.
Ran sudo nvidia-xconfig restarted now I am in a login loop

from broccoli.

wanderine avatar wanderine commented on August 17, 2024

Yeah I had that too

open a terminal using ctrl-alt-f1

rm .Xauthority

sudo shutdown -r now

2015-08-15 20:44 GMT+02:00 ImmanuelSamuel [email protected]:

Did that and ran getopenclinfo nothing.
Ran sudo nvidia-xconfig restarted now I am in a login loop


Reply to this email directly or view it on GitHub
#19 (comment).

Anders Eklund, PhD

from broccoli.

ImmanuelSamuel avatar ImmanuelSamuel commented on August 17, 2024

Still same problem. I must say that I had installed linux-generic before I got you reply. I was reading some forums

from broccoli.

wanderine avatar wanderine commented on August 17, 2024

OK this is my last tip

sudo rm .xsession-errors*

Otherwise

sudo apt-get purge nvidia*

sudo apt-get update

sudo apt-get dist-upgrade

sudo apt-get install nvidia-current

2015-08-15 20:59 GMT+02:00 ImmanuelSamuel [email protected]:

Still same problem. I must say that I had installed linux-generic before I
got you reply. I was reading some forums


Reply to this email directly or view it on GitHub
#19 (comment).

Anders Eklund, PhD

from broccoli.

ImmanuelSamuel avatar ImmanuelSamuel commented on August 17, 2024

Thanks for the help. Reinstalling nvidia-346 got my desktop back again ... nvidia-current installs 304 version hence the problem. Running GetOpenCLInfo still doesn't recognize my card which is a gtx 980 ti. I guess I will try googling it. Thanks again.

from broccoli.

wanderine avatar wanderine commented on August 17, 2024

Tomorrow I will try to fix the CPU problem(s), so you can use that at least.

2015-08-15 21:41 GMT+02:00 ImmanuelSamuel [email protected]:

Thanks for the help. Reinstalling nvidia-346 got my desktop back again ...
nvidia-current installs 304 version hence the problem. Running
GetOpenCLInfo still doesn't recognize my card which is a gtx 980 ti. I
guess I will try googling it. Thanks again.


Reply to this email directly or view it on GitHub
#19 (comment).

Anders Eklund, PhD

from broccoli.

ImmanuelSamuel avatar ImmanuelSamuel commented on August 17, 2024

The CPU is running fine for me ... or atleast I think. I tried first level analysis it ran for some time before I quit seeing it was not using my GPU.

from broccoli.

wanderine avatar wanderine commented on August 17, 2024

Confused you with another user, sorry.

Can you check if this file exists?

/etc/OpenCL/vendors/nvidia.icd

2015-08-15 21:47 GMT+02:00 ImmanuelSamuel [email protected]:

The CPU is running fine for me.


Reply to this email directly or view it on GitHub
#19 (comment).

Anders Eklund, PhD

from broccoli.

ImmanuelSamuel avatar ImmanuelSamuel commented on August 17, 2024

Yes it does along with amdocl32.ocd and amdocl64.icd

from broccoli.

wanderine avatar wanderine commented on August 17, 2024

Found this

Here is a list of all of the packages you will need to get OpenCL working
on Ubuntu 14.10 with NVIDIA drivers:

sudo apt-get install nvidia-331 nvidia-331-uvm nvidia-opencl-dev nvidia-modprobe

EDIT: In case anyone encounters a similar problem on Ubuntu 15.04 and the
NVIDIA 346.59 drivers, the command to fix the issue is nearly identical:

sudo apt-get install nvidia-346 nvidia-346-uvm nvidia-opencl-dev nvidia-modprobe

http://askubuntu.com/questions/541114/how-to-make-opencl-work-on-14-10-nvidia-331-89-drivers

2015-08-15 21:51 GMT+02:00 Anders Eklund [email protected]:

Confused you with another user, sorry.

Can you check if this file exists?

/etc/OpenCL/vendors/nvidia.icd

2015-08-15 21:47 GMT+02:00 ImmanuelSamuel [email protected]:

The CPU is running fine for me.


Reply to this email directly or view it on GitHub
#19 (comment).

Anders Eklund, PhD

Anders Eklund, PhD

from broccoli.

ImmanuelSamuel avatar ImmanuelSamuel commented on August 17, 2024

Both didnt work for me. sudo clinfo didnt show the nvidia card.

The following will work if you use gtx 980 ti
sudo apt-get install nvidia-352 nvidia-352-uvm nvidia-opencl-dev nvidia-modprobe

Now clInfo recognised my nvidia card but GetOpenCLInfo didnt yet work.

from broccoli.

wanderine avatar wanderine commented on August 17, 2024

OK can you just make a reboot to make sure everything is loaded from start.

2015-08-15 22:05 GMT+02:00 ImmanuelSamuel [email protected]:

Both didnt work for me. sudo clinfo didnt show the nvidia card.

The following will work if you use gtx 980 ti
sudo apt-get install nvidia-352 nvidia-352-uvm nvidia-opencl-dev
nvidia-modprobe

Now clInfo recognised my nvidia card but GetOpenCLInfo didnt yet work.


Reply to this email directly or view it on GitHub
#19 (comment).

Anders Eklund, PhD

from broccoli.

ImmanuelSamuel avatar ImmanuelSamuel commented on August 17, 2024

Lol now after restart even clInfo doesn't recognize the video card.

from broccoli.

wanderine avatar wanderine commented on August 17, 2024

Hmm, can you do

sudo clinfo

and then

clinfo

and

sudo GetOpenCLInfo

and then

GetOpenCLInfo

2015-08-15 22:12 GMT+02:00 ImmanuelSamuel [email protected]:

Lol now after restart even clInfo doesn't recognize the video card.


Reply to this email directly or view it on GitHub
#19 (comment).

Anders Eklund, PhD

from broccoli.

ImmanuelSamuel avatar ImmanuelSamuel commented on August 17, 2024

sudo doesnt recognize the LD_LIBRARY_PATH

from broccoli.

wanderine avatar wanderine commented on August 17, 2024

Try

sudo export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/andek/BROCCOLI/
code/BROCCOLI_LIB/clBLASLinux

Also see end of this page, suppose you need to change 331 to 352

I finally added the next lines in my /etc/rc.local file:

begin opencl config

modprobe nvidia-331-uvm
mknod -m 666 /dev/nvidia-uvm c 249 0
clinfo

end opencl config

http://askubuntu.com/questions/576338/why-opencl-is-not-default-14-04-nvidia-331

2015-08-15 22:16 GMT+02:00 ImmanuelSamuel [email protected]:

sudo doesnt recognize the LD_LIBRARY_PATH


Reply to this email directly or view it on GitHub
#19 (comment).

Anders Eklund, PhD

from broccoli.

ImmanuelSamuel avatar ImmanuelSamuel commented on August 17, 2024

says sudo export command not found

from broccoli.

ImmanuelSamuel avatar ImmanuelSamuel commented on August 17, 2024

$ modprobe nvidia-352-uvm
modprobe: ERROR: could not insert 'nvidia_352_uvm': Operation not permitted

from broccoli.

wanderine avatar wanderine commented on August 17, 2024

try with sudo

$ sudo modprobe nvidia-352-uvm
$ sudo mknod -m 666 /dev/nvidia-uvm c 249 0

sudo clinfo

Then try clinfo and GetOpenCLInfo without sudo

2015-08-15 22:36 GMT+02:00 ImmanuelSamuel [email protected]:

$ modprobe nvidia-352-uvm
modprobe: ERROR: could not insert 'nvidia_352_uvm': Operation not permitted


Reply to this email directly or view it on GitHub
#19 (comment).

Anders Eklund, PhD

from broccoli.

ImmanuelSamuel avatar ImmanuelSamuel commented on August 17, 2024

$ sudo modprobe nvidia-352-uvm
$ sudo mknod -m 666 /dev/nvidia-uvm c 249 0
$ sudo clinfo

The above worked but without sudo nope

from broccoli.

wanderine avatar wanderine commented on August 17, 2024

Can you now see the device in GetOpenCLInfo?

If you want to make the change permanent, open /etc/rc.local with a text
editor,

e.g.

gedit /etc/rc.local

or

sudo gedit /etc/rc.local

add

begin opencl config

modprobe nvidia-331-uvm
mknod -m 666 /dev/nvidia-uvm c 249 0
clinfo

end OpenCL config

then save the file

2015-08-15 22:44 GMT+02:00 ImmanuelSamuel [email protected]:

$ sudo modprobe nvidia-352-uvm
$ sudo mknod -m 666 /dev/nvidia-uvm c 249 0
$ sudo clinfo

The above worked but without sudo nope


Reply to this email directly or view it on GitHub
#19 (comment).

Anders Eklund, PhD

from broccoli.

ImmanuelSamuel avatar ImmanuelSamuel commented on August 17, 2024

Ok so both clinfo and GetOpenCLInfo works (without sudo) if I put it in the .bashrc in my home directory i.e. recognises the video card. But it doesnt work in a terminal. I added your previous message in /etc/rc.local but that also didnt do anything (yes I changed the version 331 to 352). Going to do a reset and see if anything changed.

from broccoli.

ImmanuelSamuel avatar ImmanuelSamuel commented on August 17, 2024

Nothing changed.

from broccoli.

wanderine avatar wanderine commented on August 17, 2024

Hmm, but GetOpenCLInfo now prints the 980 card? Can you try to for example
run RegisterTwoVolumes?

You need sudo if you write the commands in a terminal, but not if you put
them in a text file.

2015-08-15 23:02 GMT+02:00 ImmanuelSamuel [email protected]:

Nothing changed.


Reply to this email directly or view it on GitHub
#19 (comment).

Anders Eklund, PhD

from broccoli.

ImmanuelSamuel avatar ImmanuelSamuel commented on August 17, 2024

If I enter the following in a terminal

GetOpenCLInfo or
sudo GetOpenCLInfo

It doesnt recognize the card.

But if I put GetOpenCLInfo in the .bashrc file in my home directory then it shows the nvidia card when it runs as soon as I open a terminal.

from broccoli.

wanderine avatar wanderine commented on August 17, 2024

First run this in a terminal

$ sudo modprobe nvidia-352-uvm
$ sudo mknod -m 666 /dev/nvidia-uvm c 249 0
$ sudo clinfo

then run GetOpenCLInfo in a terminal (without sudo)

2015-08-15 23:08 GMT+02:00 ImmanuelSamuel [email protected]:

If I do

GetOpenCLInfo or
sudo GetOpenCLInfo

It doesnt recognize the card.

But if I put GetOpenCLInfo in the .bashrc file in my home directory then
it shows the nvidia card.


Reply to this email directly or view it on GitHub
#19 (comment).

Anders Eklund, PhD

from broccoli.

ImmanuelSamuel avatar ImmanuelSamuel commented on August 17, 2024

Yes I entered that still it doesn't recognize it.

from broccoli.

wanderine avatar wanderine commented on August 17, 2024

OK can you also do

sudo apt-get install nvidia-opencl-icd-352

2015-08-15 23:14 GMT+02:00 ImmanuelSamuel [email protected]:

Yes I entered that still it doesn't recognize it.


Reply to this email directly or view it on GitHub
#19 (comment).

Anders Eklund, PhD

from broccoli.

ImmanuelSamuel avatar ImmanuelSamuel commented on August 17, 2024

It was already installed

from broccoli.

wanderine avatar wanderine commented on August 17, 2024

OK do

sudo ldconfig

2015-08-15 23:16 GMT+02:00 ImmanuelSamuel [email protected]:

It was already installed


Reply to this email directly or view it on GitHub
#19 (comment).

Anders Eklund, PhD

from broccoli.

ImmanuelSamuel avatar ImmanuelSamuel commented on August 17, 2024

did that and then ran clinfo - didnt recognize it

from broccoli.

ImmanuelSamuel avatar ImmanuelSamuel commented on August 17, 2024

Found this just now

http://stackoverflow.com/questions/10730044/install-openclamd-sdk-kit-on-linux-without-root-privilege/20962333#20962333

Will update after I try it

from broccoli.

ImmanuelSamuel avatar ImmanuelSamuel commented on August 17, 2024

Finally GetOpenCLInfo is working with that

from broccoli.

ImmanuelSamuel avatar ImmanuelSamuel commented on August 17, 2024

Thanks wanderine!!!!!

from broccoli.

wanderine avatar wanderine commented on August 17, 2024

Nice, I will try to add this to the documentation.

2015-08-15 23:32 GMT+02:00 ImmanuelSamuel [email protected]:

Thanks wanderine!!!!!


Reply to this email directly or view it on GitHub
#19 (comment).

Anders Eklund, PhD

from broccoli.

ImmanuelSamuel avatar ImmanuelSamuel commented on August 17, 2024

Please do! It worked! So happy lol

from broccoli.

ImmanuelSamuel avatar ImmanuelSamuel commented on August 17, 2024

First level analysis is also working

from broccoli.

ImmanuelSamuel avatar ImmanuelSamuel commented on August 17, 2024

Well sort of

Performing registration between fMRI and T1
Segmentation fault (core dumped)

but that is for another day and another issue

from broccoli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.