Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kein CUDA Support mehr mit aktuellen nvidia Treibern?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
3PO
Veteran
Veteran


Joined: 26 Nov 2006
Posts: 1110
Location: Schwabenländle

PostPosted: Sun Sep 30, 2018 5:51 pm    Post subject: Kein CUDA Support mehr mit aktuellen nvidia Treibern? Reply with quote

Hallo Zusammen,

funktioniert denn bei Euch CUDA mit dem aktuellen Treiber von nvidia?

Ich habe in Netz nur das gefunden:

https://lists.gt.net/gentoo/user/338427?page=last


Last edited by 3PO on Sun Sep 30, 2018 7:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4553
Location: Germany

PostPosted: Sun Sep 30, 2018 7:26 pm    Post subject: Reply with quote

Hallo 3PO,

ja funktioniert fein.
Für die >=nvidia-drivers-396.*[uvm] Treiber braucht es nun NUMA Support im Kernel,
schau dazu zb auch im https://devtalk.nvidia.com/default/topic/1037521/linux/cuda-broken-in-396-24-02-and-396-24-10-vulkan-beta-drivers-on-linux/post/5274062/#5274062

Ich hab dafür im Kernel
CONFIG_NUMA=y
und
CONFIG_ACPI_NUMA=y
aktiviert, und damit dann das nvidia-drivers Paket neu gebaut - damit sollte CUDA dann wieder fein funktionieren.

Aber hey ja, ich hab da auch einige Stunden nach gesucht, bevor ich fündig wurde … :)
(PS, magst bitte den Typo im Titel noch korrigieren?! :))
Back to top
View user's profile Send private message
3PO
Veteran
Veteran


Joined: 26 Nov 2006
Posts: 1110
Location: Schwabenländle

PostPosted: Sun Sep 30, 2018 7:49 pm    Post subject: Reply with quote

Danke, werde ich mal testen und dann berichten.

Den Typo habe ich auch gefixt. ;)
Back to top
View user's profile Send private message
3PO
Veteran
Veteran


Joined: 26 Nov 2006
Posts: 1110
Location: Schwabenländle

PostPosted: Sun Sep 30, 2018 8:11 pm    Post subject: Reply with quote

Habe mal den Kernel und den nvidia Treiber nei gebaut,

Code:
vdr01_64 linux-4.18.10-gentoo # grep NUMA .config
CONFIG_ARCH_SUPPORTS_NUMA_BALANCING=y
# CONFIG_NUMA_BALANCING is not set
CONFIG_NUMA=y
CONFIG_AMD_NUMA=y
CONFIG_X86_64_ACPI_NUMA=y
CONFIG_NUMA_EMU=y
CONFIG_USE_PERCPU_NUMA_NODE_ID=y
CONFIG_ACPI_NUMA=y
vdr01_64 linux-4.18.10-gentoo #


aber CUDA geht immer noch nicht. :(

Das Modul "nvidia_uvm" wird immer noch nicht geladen:

Code:
vdr01_64 ~ # lsmod |grep nv
nvidia_drm             36864  2
nvidia_modeset        995328  4 nvidia_drm
nvidia              16273408  200 nvidia_modeset
drm_kms_helper        131072  2 udl,nvidia_drm
drm                   339968  6 udl,drm_kms_helper,nvidia_drm
vdr01_64 ~ #
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4553
Location: Germany

PostPosted: Sun Sep 30, 2018 8:16 pm    Post subject: Reply with quote

Hm, fehlt eventuell noch CONFIG_CPUSETS=y im Kernel?
Back to top
View user's profile Send private message
3PO
Veteran
Veteran


Joined: 26 Nov 2006
Posts: 1110
Location: Schwabenländle

PostPosted: Sun Sep 30, 2018 8:26 pm    Post subject: Reply with quote

Das ist aktiviert:

Code:
vdr01_64 linux-4.18.10-gentoo # grep CONFIG_CPUSETS .config
CONFIG_CPUSETS=y
vdr01_64 linux-4.18.10-gentoo #
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4553
Location: Germany

PostPosted: Sun Sep 30, 2018 8:41 pm    Post subject: Reply with quote

Hm, sollte dann eigentlich funktionieren. Bist du dir sicher den neu gebauten Kernel gebootet zu haben? (hast eventuell vergessen den Bootloader für dem neuen Kernel zu konfigurieren (grub-mkconfig))?

Beachte dass das nvidia_uvm Modul normal erst dann automatisch geladen wird, wenn es benötigt wird (zb wenn man mpv mit cuda aufruft).
Back to top
View user's profile Send private message
3PO
Veteran
Veteran


Joined: 26 Nov 2006
Posts: 1110
Location: Schwabenländle

PostPosted: Sun Sep 30, 2018 8:48 pm    Post subject: Reply with quote

Josef.95 wrote:
[...] Beachte dass das nvidia_uvm Modul normal erst dann automatisch geladen wird, wenn es benötigt wird (zb wenn man mpv mit cuda aufruft).


Das wars!! :wink:

Dann wird das Modul geladen und funktioniert nun auch.

Code:
vdr01_64 ~ lsmod |grep nv
nvidia_uvm            815104  0
nvidia_drm             36864  2
nvidia_modeset        995328  4 nvidia_drm
nvidia              16273408  192 nvidia_uvm,nvidia_modeset
drm_kms_helper        131072  2 udl,nvidia_drm
drm                   339968  6 udl,drm_kms_helper,nvidia_drm
vdr01_64 ~ #


Vielen Dank!! :wink:
Back to top
View user's profile Send private message
Yamakuzure
Advocate
Advocate


Joined: 21 Jun 2006
Posts: 2284
Location: Adendorf, Germany

PostPosted: Mon Oct 01, 2018 3:32 pm    Post subject: Reply with quote

Alternativ kann man, so mache ich das per Bumblebee, generell nvidia_uvm laden. nvidia_drm, nvidia_modeset und nvidia werden dann eh automatisch mitgeladen.

@Josef.95 : Danke für den NUMA Tipp! da wäre ich so schnell nicht von selbst drauf gekommen! :-)
_________________
Important German:
  1. "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
  2. "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum