Skip to content

Commit

Permalink
Change to kernel_module
Browse files Browse the repository at this point in the history
  • Loading branch information
hgreebe committed Jan 16, 2024
1 parent a29b7a0 commit f30281e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
cwd '/tmp'
code <<-NVIDIA
set -e
#{compiler_version} ./nvidia.run --silent --dkms --disable-nouveau --no-cc-version-check #{kernel_open}
#{compiler_version} ./nvidia.run --silent --dkms --disable-nouveau --no-cc-version-check #{kernel_module}
rm -f /tmp/nvidia.run
NVIDIA
creates '/usr/bin/nvidia-smi'
Expand Down Expand Up @@ -108,9 +108,9 @@ def compiler_version
""
end

def kernel_open
if node['cluster']['nvidia']['kernel-open'] == "false"
""
def kernel_module
if node['cluster']['nvidia']['kernel_module'] == "kernel"
"-m=kernel"
else
"-m=kernel-open"
end
Expand Down

0 comments on commit f30281e

Please sign in to comment.