LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-13-2014, 01:25 PM   #1
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware
Posts: 1,269
Blog Entries: 11

Rep: Reputation: 750Reputation: 750Reputation: 750Reputation: 750Reputation: 750Reputation: 750Reputation: 750
Question Nividia-driver Slackbuild CUDA initializaton error/glitch RFC


I sent this to the SBo mailing list, but figured that I would get a bit better coverage here.
----------------------------
I just realized a fix for a glitch with the new nvidia-driver and CUDA initialization. Since the slackbuild is already in "approved" and its not fatal unless you run CUDA/OpenCL programs, I'll fix this up on the next update. This issue popped up somewhere in the 331.xx drivers.

For those of you, as I do, who run BOINC, or another CUDA program, you may have wondered about "no usable GPUs found" message in the BOINC log. Turns out, some weird process in the way Nvidia does things now, since the introduction of nvidia-uvm.ko, prevents the creation of a required device node unless you first run your CUDA program as "root." This then creates the device node and all is then well as a regular user. You should see this in order to run CUDA:

Code:
$ ls -l /dev/nvidia-uvm 
crw-rw-rw- 1 root root 248, 0 Jul 13 01:45 /dev/nvidia-uvm
A quick test program, as well as possible fixes, are in the References below. The question now is, how best to handle this in the slackbuild?

1. put this in doinst.sh
Code:
mknod -m 666 /dev/nvidia-uvm c 249 0
chgrp video /dev/nvidia-uvm
(or maybe 660?)

2. udev rule?
Code:
KERNEL=="nvidia_uvm", RUN+="/usr/bin/bash -c '/usr/bin/mknod -m 666 /dev/nvidia-uvm c $(grep nvidia-uvm /proc/devices | cut -d \ -f 1) 0; /usr/bin/chgrp video /dev/nvidia-uvm'"
3. Compile nvidia-modprobe by default (optional now) so that X userland can make the node, or invoke via doinst.sh if not.

Any comments and advice is appreciated.

References:
  1. https://devtalk.nvidia.com/default/t...-cuinit-cuda-/
  2. http://us.download.nvidia.com/XFree8...EADME/faq.html
 
Old 07-13-2014, 06:09 PM   #2
irgunII
Member
 
Registered: Jan 2012
Location: Directly above the center of the earth
Distribution: Slackware. There's something else?
Posts: 383

Rep: Reputation: 72
I hope you get this set up, as I've been running seti@home (BOINC) since 2000. I'd sure like to be able to really kick the RAC's up by using gpu's as they're a billion times faster (exagerating, but you know what I mean, heh).

Are you saying though that I *can* use the gpu(s) if I start my BOINC as root first, then close it and restart it as user?
 
Old 07-13-2014, 08:08 PM   #3
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware
Posts: 1,269

Original Poster
Blog Entries: 11

Rep: Reputation: 750Reputation: 750Reputation: 750Reputation: 750Reputation: 750Reputation: 750Reputation: 750
Yes, running any CUDA program as root first will create the needed device nodes. Alternatively, run
Code:
OPTAPPS=yes ./nvidia-driver.SlackBuild
to build the optional software. Than, as root (or root terminal) run
Code:
nvidia-modprobe -c 0 -u
Alternatively, just run the "mknod" example above. You will need to do one of those after every reboot until I can figure out how make it automagical (and I have no clue how to properly write udev rules...).
 
Old 07-16-2014, 01:52 PM   #4
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware
Posts: 1,269

Original Poster
Blog Entries: 11

Rep: Reputation: 750Reputation: 750Reputation: 750Reputation: 750Reputation: 750Reputation: 750Reputation: 750
Just an update for those that reguire CUDA/OpenCL to work for the new nvidia-340.24 scripts at Slackbuilds.org. Thanks to willysr for pushing it through his SBo branch.

Soon, the updated nvidia-driver SlackBuild script will post to compile and install the previously "optional applications." Please refer to the README to correctly set up 'nvidia-modprobe' in your 'rc.local'. This will make sure that /dev/nvidia-uvm is created after every reboot. This seems a bit cleaner than using udev rules and 'mknod'.

Enjoy.
 
  


Reply

Tags
cuda, nvidia drivers


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
possible (minor) glitch in fontconfig SlackBuild (14.1) sanjioh Slackware 5 02-05-2014 04:09 PM
Trying to install Nividia driver JosephS Debian 6 11-02-2007 12:52 PM
new nividia driver installation cykoburn Linux - Newbie 4 11-30-2004 10:32 PM
nividia driver compatibility SLaCk_KiD Linux - General 3 07-25-2003 06:35 PM
Nividia Driver Problems subservant Linux - Hardware 21 02-21-2003 05:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration