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.
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.
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.
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.
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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With