Hi All,
I’m running two geforce 9600s on fedora core 9. I have the display in twinview. I have the monitors hooked up to the geforce (device 0) on bus slot 6, see xorg.conf below.
Problem: I do cudSetDevice(1) and program runs normally on device 1. I do cuda-gdb ./program and set break points, and then when I run progrma I get:
(cuda-gdb) run
Starting program: /home/rdemb/cudaprograms/device1_gdb
[Thread debugging using libthread_db enabled]
[New process 3466]
[New Thread 3585360 (LWP 3466)]
Warning: 1 GPUs were made unavailable to the application because they are used by X. This may change the application behaviour!
we are on device 0
CUDA-GDB: Cannot debug on this GPU as it is running a window system.
As you can see, cuda-gdb seems to force execution on device 0 - even though I’m setting the device to 1
When I step past the line containing cudaSetDevice, I get the above message:
(cuda-gdb) step
23 cudaSetDevice(set_dev);
(cuda-gdb) step
Warning: 1 GPUs were made unavailable to the application because they are used by X. This may change the application behaviour!
I’ve re-installed the drivers twice with the x-server off (in runmode 3). Run nvidia-xconfig -twinview, but I always get forced onto device 0 when I try to use cuda-gdb.
If I take out the BusID in the xorg.conf file, I get an error at boot up time with xorg.conf, and the X -server does not come up.
If I run fedora core 9 at runlevel 3 and execute the programs from the command line, no cuda-enabled cards are recognized, i.e., if I run deviceQuery, I get a message that no cuda cards were detected, and it runs the program in emulation mode.
I’m really wrapped around the axle on this one, any help really appreciated. Thanks,
robullelk
xorg.conf below:
nvidia-xconfig: X configuration file generated by nvidia-xconfig
nvidia-xconfig: version 1.0 (buildmeister@builder62) Thu Apr 30 16:21:56 PD
T 2009
Xorg configuration created by pyxf86config
Section “ServerLayout”
Identifier “Default Layout”
Screen 0 “Screen0” 0 0
Screen 1 “Screen1” RightOf “Screen0”
InputDevice “Mouse0” “CorePointer”
InputDevice “Keyboard0” “CoreKeyboard”
EndSection
Section “InputDevice”
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section “InputDevice”
keyboard added by rhpxl
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection
Section “Monitor”
Identifier “Monitor0”
VendorName “Unknown”
ModelName “Unknown”
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
Option “DPMS”
EndSection
Section “Monitor”
Identifier “Monitor1”
VendorName “Unknown”
ModelName “Unknown”
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
Option “DPMS”
EndSection
Section “Device”
Identifier “Videocard0”
Driver “nvidia”
BusID “PCI:6:0:0”
Screen 0
EndSection
Section “Device”
Identifier “Videocard1”
Driver “nvidia”
BusID “PCI:6:0:0”
Screen 1
EndSection
Section “Screen”
Identifier “Screen0”
Device “Videocard0”
Monitor “Monitor0”
DefaultDepth 24
Option “TwinView” “True”
Option “MetaModes” “nvidia-auto-select, nvidia-auto-select”
SubSection “Display”
Viewport 0 0
Depth 24
EndSubSection
EndSection
Section “Screen”
Identifier “Screen1”
Device “Videocard1”
Monitor “Monitor1”
DefaultDepth 24
Option “TwinView” “True”
Option “MetaModes” “nvidia-auto-select, nvidia-auto-select”
SubSection “Display”
Viewport 0 0
Depth 24
EndSubSection
EndSection