Wiki‎ > ‎

Enable CUDA in VMD-1.8.7

posted Jan 27, 2011, 5:05 PM by Dong Xu   [ updated Feb 5, 2011, 3:48 PM ]
Add everyone to the video group locally in /etc/group, works!

If you get an error message ""No CUDA accelerator devices available", then do this:

you can change the permissions on the /dev/nvidiactl and /dev/nvidia*, but rather than doing this, go into /dev and type:
ls -l | grep nvidia
Look at the file's group, if it's "root", than just change the permissions, but if it's something else like say "video" (what mine is), then instead of changing the permission, just open up /etc/group and find the line that starts with the group name (in my case, video) and at the very end (After the last ":" on that line) add your username.. eg. video:x:12:tom
You'll now be part of the video group, and can use it without allowing just anybody access to your video card.

chgrp root /dev/nvidia*
chmod o+rw /dev/nvidia*  This does NOT work! the permission of nv* files will be reset!