Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I set one NVIDIA graphics card for display and other for computing(in Linux)? [closed]

Tags:

linux

cuda

I have install NVIDIA display driver and CUDA tookit on my machine with one NVIDIA GT520 card (used for both display and computation) but it is giving me error "the launch timed out and was terminated", for some program. I searched for this error they are saying this error is due to OS watchdog(CentOS 6) and my kernel is taking too much of time. I find one solution that I can insert two cards and I can use one for display and other for computation on this link. How can I set particular one card for display and other for computation. I have CentOS 6.5 with kernel 2.6.32-431.3.1.el6.x86_64.

like image 429
krishna Avatar asked Feb 20 '14 15:02

krishna


People also ask

How do I enable Nvidia graphics card in Linux?

You can install Nvidia drivers either using GUI or CLI method. Open “Software and Updates” app to install install Nvidia driver using GUI. OR type “ sudo apt install nvidia-driver-515 nvidia-dkms-515 ” at the CLI. Reboot the computer/laptop to load the drivers.

How do I setup dual monitors Nvidia?

From the NVIDIA Control Panel navigation tree pane, under Display, click Set up multiple displays to open the page. The box under Step 1 lists all the displays that are connected to your system, and shows to which GPU they are connected. Check or clear the check boxes to select the displays that you want to use.

How do I access my graphics card in Linux?

On a GNOME desktop, open the “Settings” dialog, and then click “Details” in the sidebar. In the “About” panel, look for a “Graphics” entry. This tells you what kind of graphics card is in the computer, or, more specifically, the graphics card that's currently in use. Your machine might have more than one GPU.


1 Answers

A general description of how to do this is given here. You want to use the option 1 which is excerpted below:

Option 1: Use Two GPUs (RECOMMENDED)

If two GPUs can be made available in the system, then X processing can be handled on one GPU while CUDA tasks are executed on the other. This allows full interactivity and no disturbance of X while simultaneously allowing unhindered CUDA execution.

In order to accomplish this:

•The X display should be forced onto a single GPU using the BusID parameter in the relevant "Device" section of the xorg.conf file. In addition, any other "Device" sections should be deleted. For example:

    BusID "PCI:34:0:0"

The PCI IDs of the GPUs may be determined from the lspci command or from the nvidia-smi -a command.

•CUDA processing should be forced onto the other GPU, for example by using the CUDA_VISIBLE_DEVICES environment variable before any CUDA applications are launched. For example:

    export CUDA_VISIBLE_DEVICES="1" 

(Choose the numerical parameter to select the GPU that is not the X GPU)

like image 147
Robert Crovella Avatar answered Nov 15 '22 09:11

Robert Crovella