Puppet Class: profile::statistics::gpu

Defined in:
modules/profile/manifests/statistics/gpu.pp

Overview

Class profile::statistics::gpu

Parameters:

  • hosts_with_gpu (Any) (defaults to: lookup('profile::statistics::gpu::hosts_with_gpu'))


3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'modules/profile/manifests/statistics/gpu.pp', line 3

class profile::statistics::gpu (
    $hosts_with_gpu = lookup('profile::statistics::gpu::hosts_with_gpu')
) {

    if $::hostname in $hosts_with_gpu {

        # Testing new version - T247082
        if $::hostname == 'stat1008' {
            $rocm_version = '33'
            $rocm_smi_path = '/opt/rocm-3.3.0/bin/rocm-smi'
        } else {
            $rocm_version = '271'
            $rocm_smi_path = '/opt/rocm/bin/rocm-smi'
        }

        class { 'amd_rocm':
            version => $rocm_version,
        }

        class { 'prometheus::node_amd_rocm':
            rocm_smi_path => $rocm_smi_path,
        }
    }
}