Skip to content

Commit

Permalink
Merge pull request #373 from etiennedub/nvidia-open
Browse files Browse the repository at this point in the history
Set Nvidia driver stream to proprietary version
  • Loading branch information
cmd-ntrf authored Aug 21, 2024
2 parents 8042246 + e5f4f57 commit a692837
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
1 change: 0 additions & 1 deletion data/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,6 @@ profile::jupyterhub::hub::register_url: "https://mokey.%{lookup('terraform.data.
profile::jupyterhub::hub::reset_pw_url: "https://mokey.%{lookup('terraform.data.domain_name')}/auth/forgotpw"

profile::gpu::install::passthrough::packages:
- kmod-nvidia-latest-dkms # require to be first package, otherwise kmod-nivida is installed
- nvidia-driver-cuda-libs
- nvidia-driver
- nvidia-driver-devel
Expand Down
12 changes: 12 additions & 0 deletions site/profile/manifests/gpu.pp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@

class profile::gpu::install::passthrough (
Array[String] $packages,
String $nvidia_driver_stream = '555-dkms'
) {
$os = "rhel${::facts['os']['release']['major']}"
$arch = $::facts['os']['architecture']
Expand All @@ -92,6 +93,16 @@
path => ['/usr/bin'],
}

package { 'nvidia-stream':
ensure => present,
name => "nvidia-driver:${nvidia_driver_stream}",
provider => dnfmodule,
enable_only => true,
require => [
Exec['cuda-repo'],
]
}

$mig_profile = lookup("terraform.instances.${facts['networking']['hostname']}.specs.mig", Variant[Undef, Hash[String, Integer]], undef, {})
class { 'profile::gpu::config::mig':
mig_profile => $mig_profile,
Expand All @@ -101,6 +112,7 @@
package { $packages:
ensure => 'installed',
require => [
Package['nvidia-stream'],
Package['kernel-devel'],
Exec['cuda-repo'],
Yumrepo['epel'],
Expand Down

0 comments on commit a692837

Please sign in to comment.