class env::big::configure_amd_gpu () { case $::lsbdistcodename { 'buster' : { apt::source { 'repo.radeon.com': comment => 'Repo for AMD ROCM packages', location => 'https://repo.radeon.com/rocm/apt/debian/', release => 'xenial', repos => 'main', architecture => 'amd64', key => { 'id' => '1A693C5C', 'source' => 'https://repo.radeon.com/rocm/rocm.gpg.key', }, include => { 'deb' => true, 'src' => false }, notify => Exec['apt_update'], } package { [ 'rock-dkms', 'hip-base', 'rocminfo', 'rocm-smi-lib', 'hip-rocclr', 'rocm-device-libs', 'libtinfo5' ]: ensure => installed, install_options => ['--no-install-recommends'], require => [Apt::Source['repo.radeon.com'], Exec['apt_update']]; } file_line { 'rocm_etc_profile_path': path => '/etc/profile', line => 'export PATH=$PATH:/opt/rocm-4.2.0/bin'; } file { '/usr/local/bin/rocm-smi': ensure => link, target => '/opt/rocm-4.2.0/bin/rocm-smi', require => Package['rocm-smi-lib']; '/etc/udev/rules.d/70-amdgpu.rules': ensure => present, owner => root, group => root, mode => '0644', source => 'puppet:///modules/env/big/amd_gpu/70-amdgpu.rules', require => Package['rock-dkms']; } } 'bullseye' : { # TODO Build du module amdgpu (Rocm 4.2) en erreur avec le kernel 5.10 - Bug #13159 } } }