GTX960 and Blender

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
tylerecouture

GTX960 and Blender

Post by tylerecouture »

Hi!

I installed and am using Linux for the first time today, so please go easy on me =)

I was able to get my graphics card drivers installed (geforce gtx 960). Here's what appears in the driver manager:

nvidia-349
nvidia-346 (checked)
xserver-xorg-video-nouveau

however at the top it also says" This device is using an alternate driver"
and at the bottom is says "No proprietary drivers are in use".

Also if I open "NVIDIA X Server Settings" it shows: NVIDIA 346.47

My problem is that the GPU is not appearing as an option for me in Blender.

I tried blacklisting nouveau as that is what appears to be recommended everywhere (I followed the instructions here http://forums.linuxmint.com/viewtopic.p ... au#p976009) but that didn't appear to do anything.

Any help would be appreciated. Please remember I am 1 day old to Linux =P

17.1 Rebecca
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: GTX960 and Blender

Post by roblm »

Driver Manager should say “1 proprietary driver in use”, but sometimes that message doesn't appear.

To check if the Nvidia driver installed correctly, use this command in the Terminal and post the output:

Code: Select all

cat /var/log/Xorg.0.log | egrep -i "nvidia|nouveau"
I've never used Blender but I installed it on my extra Mint installation for testing. I see the exact same screen as you do. Is GPU or the name of the GPU supposed to be in that
list along with CPU?
tylerecouture

Re: GTX960 and Blender

Post by tylerecouture »

Thanks!

I pasted the results below. Blender should display a GPU option in that list if it detects the graphics card. In two Windows machines I have access to, one with a GTX 780 and one with dual GTX 980s, both have a GPU option, and when GPU is selected, instead of compute device = "none", it lists the graphic card model (and you then have the option to render on the GPU...which is the goal).

Code: Select all

[     4.761] (II) Module glx: vendor="NVIDIA Corporation"
[     4.761] (II) NVIDIA GLX Module  346.47  Thu Feb 19 18:09:07 PST 2015
[     4.761] (==) Matched nvidia as autoconfigured driver 0
[     4.761] (==) Matched nouveau as autoconfigured driver 1
[     4.761] (==) Matched nvidia as autoconfigured driver 2
[     4.761] (==) Matched nouveau as autoconfigured driver 3
[     4.761] (II) LoadModule: "nvidia"
[     4.761] (II) Loading /usr/lib/x86_64-linux-gnu/xorg/extra-modules/nvidia_drv.so
[     4.761] (II) Module nvidia: vendor="NVIDIA Corporation"
[     4.761] (II) LoadModule: "nouveau"
[     4.761] (II) Loading /usr/lib/xorg/modules/drivers/nouveau_drv.so
[     4.762] (II) Module nouveau: vendor="X.Org Foundation"
[     4.763] (II) NVIDIA dlloader X Driver  346.47  Thu Feb 19 17:47:18 PST 2015
[     4.763] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[     4.763] (II) NOUVEAU driver Date:   Thu Nov 7 14:56:48 2013 +1000
[     4.763] (II) NOUVEAU driver for NVIDIA chipset families :
[     4.780] (II) NVIDIA(0): Creating default Display subsection in Screen section
[     4.780] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[     4.780] (==) NVIDIA(0): RGB weight 888
[     4.780] (==) NVIDIA(0): Default visual is TrueColor
[     4.780] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[     4.780] (**) NVIDIA(0): Enabling 2D acceleration
[     5.443] (II) NVIDIA(GPU-0): Found DRM driver nvidia-drm (20150116)
[     5.445] (II) NVIDIA(0): NVIDIA GPU GeForce GTX 960 (GM206-A) at PCI:1:0:0 (GPU-0)
[     5.445] (--) NVIDIA(0): Memory: 2097152 kBytes
[     5.445] (--) NVIDIA(0): VideoBIOS: 84.06.0d.00.31
[     5.445] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[     5.462] (--) NVIDIA(0): Valid display device(s) on GeForce GTX 960 at PCI:1:0:0
[     5.462] (--) NVIDIA(0):     CRT-0
[     5.462] (--) NVIDIA(0):     Acer G215HV (DFP-0) (boot, connected)
[     5.462] (--) NVIDIA(0):     DFP-1
[     5.462] (--) NVIDIA(0):     DFP-2
[     5.462] (--) NVIDIA(0):     DFP-3
[     5.462] (--) NVIDIA(0):     DFP-4
[     5.462] (--) NVIDIA(0):     DFP-5
[     5.462] (--) NVIDIA(0):     DFP-6
[     5.462] (--) NVIDIA(0):     DFP-7
[     5.462] (--) NVIDIA(0):     DFP-8
[     5.462] (--) NVIDIA(GPU-0): CRT-0: 400.0 MHz maximum pixel clock
[     5.462] (--) NVIDIA(0): Acer G215HV (DFP-0): Internal TMDS
[     5.462] (--) NVIDIA(GPU-0): Acer G215HV (DFP-0): 330.0 MHz maximum pixel clock
[     5.462] (--) NVIDIA(0): DFP-1: Internal TMDS
[     5.462] (--) NVIDIA(GPU-0): DFP-1: 330.0 MHz maximum pixel clock
[     5.462] (--) NVIDIA(0): DFP-2: Internal DisplayPort
[     5.462] (--) NVIDIA(GPU-0): DFP-2: 960.0 MHz maximum pixel clock
[     5.462] (--) NVIDIA(0): DFP-3: Internal TMDS
[     5.462] (--) NVIDIA(GPU-0): DFP-3: 330.0 MHz maximum pixel clock
[     5.462] (--) NVIDIA(0): DFP-4: Internal DisplayPort
[     5.462] (--) NVIDIA(GPU-0): DFP-4: 960.0 MHz maximum pixel clock
[     5.462] (--) NVIDIA(0): DFP-5: Internal TMDS
[     5.462] (--) NVIDIA(GPU-0): DFP-5: 330.0 MHz maximum pixel clock
[     5.462] (--) NVIDIA(0): DFP-6: Internal DisplayPort
[     5.462] (--) NVIDIA(GPU-0): DFP-6: 960.0 MHz maximum pixel clock
[     5.462] (--) NVIDIA(0): DFP-7: Internal TMDS
[     5.462] (--) NVIDIA(GPU-0): DFP-7: 330.0 MHz maximum pixel clock
[     5.462] (--) NVIDIA(0): DFP-8: External LVDS
[     5.462] (--) NVIDIA(GPU-0): DFP-8: 165.0 MHz maximum pixel clock
[     5.462] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[     5.462] (**) NVIDIA(0):     device Acer G215HV (DFP-0) (Using EDID frequencies has
[     5.462] (**) NVIDIA(0):     been enabled on all display devices.)
[     5.463] (==) NVIDIA(0): 
[     5.463] (==) NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select"
[     5.463] (==) NVIDIA(0):     will be used as the requested mode.
[     5.463] (==) NVIDIA(0): 
[     5.463] (II) NVIDIA(0): Validated MetaModes:
[     5.463] (II) NVIDIA(0):     "DFP-0:nvidia-auto-select"
[     5.463] (II) NVIDIA(0): Virtual screen size determined to be 1920 x 1080
[     5.493] (--) NVIDIA(0): DPI set to (101, 101); computed from "UseEdidDpi" X config
[     5.493] (--) NVIDIA(0):     option
[     5.493] (II) UnloadModule: "nouveau"
[     5.493] (II) Unloading nouveau
[     5.493] (II) NVIDIA: Using 3072.00 MB of virtual memory for indirect memory
[     5.493] (II) NVIDIA:     access.
[     5.511] (II) NVIDIA(0): Setting mode "DFP-0:nvidia-auto-select"
[     5.568] (==) NVIDIA(0): Disabling shared memory pixmaps
[     5.568] (==) NVIDIA(0): Backing store enabled
[     5.568] (==) NVIDIA(0): Silken mouse enabled
[     5.568] (==) NVIDIA(0): DPMS enabled
[     5.569] (II) NVIDIA(0): [DRI2] Setup complete
[     5.569] (II) NVIDIA(0): [DRI2]   VDPAU driver: nvidia
[     5.583] (II) config/udev: Adding input device HDA NVidia HDMI (/dev/input/event10)
[     5.583] (II) config/udev: Adding input device HDA NVidia HDMI (/dev/input/event9)
[     6.383] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[     6.383] (**) NVIDIA(0):     device Acer G215HV (DFP-0) (Using EDID frequencies has
[     6.383] (**) NVIDIA(0):     been enabled on all display devices.)
[     6.822] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[     6.822] (**) NVIDIA(0):     device Acer G215HV (DFP-0) (Using EDID frequencies has
[     6.822] (**) NVIDIA(0):     been enabled on all display devices.)
[     6.883] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[     6.883] (**) NVIDIA(0):     device Acer G215HV (DFP-0) (Using EDID frequencies has
[     6.883] (**) NVIDIA(0):     been enabled on all display devices.)
[    26.829] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[    26.829] (**) NVIDIA(0):     device Acer G215HV (DFP-0) (Using EDID frequencies has
[    26.829] (**) NVIDIA(0):     been enabled on all display devices.)
[  1221.191] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[  1221.191] (**) NVIDIA(0):     device Acer G215HV (DFP-0) (Using EDID frequencies has
[  1221.191] (**) NVIDIA(0):     been enabled on all display devices.)
[  5089.784] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[  5089.784] (**) NVIDIA(0):     device Acer G215HV (DFP-0) (Using EDID frequencies has
[  5089.784] (**) NVIDIA(0):     been enabled on all display devices.)
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: GTX960 and Blender

Post by roblm »

Looking at the information you posted from the Xorg.0.log file clearly shows that the Nvidia 346.47 driver is the enabled graphics driver.

You're right about the GPU option; after checking Blender's online manual by clicking Help → User Preferences → Compute Device, I see the info in the picture below, which says that a
CUDA enabled graphics card would be listed as on option, along with CPU. Both your GPU and mine are supposed to have CUDA support:
blender program.png
The Mint forum search engine is not the best, so to search it for CUDA related topics, use this line in a Google search window:
site:forums.linuxmint.com
followed by the words you're searching for, such as:
site:forums.linuxmint.com cuda

I remember user Trapperjohn used to answer CUDA related questions in the past. In this topic he mentions a CUDA guide that he wrote in 2013 and gives a link to it, but it may be not be
the easiest to follow for a new Mint user and is it totally relevant to Mint 17:
http://forums.linuxmint.com/viewtopic.php?f=47&t=144049

It appears that the CUDA driver from this Nvidia web site is needed, and the easiest route is downloading the “RUN” file, which has everything needed, which is “cuda_7.0.28_linux.run”:
http://forums.linuxmint.com/viewtopic.php?f=47&t=152979

Click "Linux x86" in the following link:
https://developer.nvidia.com/cuda-downloads

You would choose the Runfile Installer package next to Ubuntu 14.04. This is a 1.1 GB file! To avoid that, the Network Installer could be used:
blender-cuda-2.png
I'm going to try to install that CUDA driver as I find some time and I'll report back.
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: GTX960 and Blender

Post by roblm »

Here is an update of my last post. These are the steps I used to get CUDA working.

1. Remove the nvidia-346 driver in Driver Manager, by selecting xserver-xorg-video-nouveau.
2. Download the “cuda_7.0.28_linux.run” package from the web site I listed in my previous post.
3. Follow the steps to install a downloaded Nvidia driver in my Updated Installation Instructions in this post on 4-13-2014:
http://forums.linuxmint.com/viewtopic.p ... 20#p847465

However, you can eliminate the step about installing the package “libc6-dev”, because it will have already been installed from the nvidia-346 driver installation.
4. After rebooting and typing the command to start the installation, there will be a delay for over a minute. Then you will need to scroll down a very long listing of information using the
Enter key. After the installation started, I saw a message saying “You are attempting to install on an unsupported configuration”. I'm not sure what that meant but the installation
did complete. The picture below shows the CUDA option now available in User Preferences → System.
cuda-3.png
Last edited by roblm on Sat Apr 04, 2015 12:05 pm, edited 1 time in total.
tylerecouture

Re: GTX960 and Blender

Post by tylerecouture »

Woot! It worked!

You are my hero. :mrgreen:
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: GTX960 and Blender

Post by roblm »

Here is some important additional information. I just downloaded this CUDA guide from the same web site that has the Runfile Installer package, which I didn't notice before:

NVIDIA CUDA GETTING STARTED GUIDE FOR LINUX

Or you can use this link:
http://developer.download.nvidia.com/co ... _Linux.pdf

Be sure to check Chapter 6. POST-INSTALLATION ACTIONS
There is a post-installation step that is required, which involves changing the environment variables by using these commands in the Terminal (omit the $ character):

Code: Select all

To change the environment variables for 64-bit operating systems:
$ export PATH=/usr/local/cuda-7.0/bin:$PATH
$ export LD_LIBRARY_PATH=/usr/local/cuda-7.0/lib64:$LD_LIBRARY_PATH

To change the environment variables for 32-bit operating systems:
$ export PATH=/usr/local/cuda-7.0/bin:$PATH
$ export LD_LIBRARY_PATH=/usr/local/cuda-7.0/lib:$LD_LIBRARY_PATH
Also, in case you need to uninstall CUDA, the location of the uninstallation script is given.
Locked

Return to “Graphics Cards & Monitors”