Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/nvidia-ctk-installer/toolkit/installer/executables.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func (w *render) render() (io.Reader, error) {
{{- if (.CheckModules) }}
cat /proc/modules | grep -e "^nvidia " >/dev/null 2>&1
if [ "${?}" != "0" ]; then
echo "nvidia driver modules are not yet loaded, invoking {{ .DefaultRuntimeExecutablePath }} directly"
echo "nvidia driver modules are not yet loaded, invoking {{ .DefaultRuntimeExecutablePath }} directly" >&2
exec {{ .DefaultRuntimeExecutablePath }} "$@"
fi
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func TestWrapperRender(t *testing.T) {
expected: `#! /bin/sh
cat /proc/modules | grep -e "^nvidia " >/dev/null 2>&1
if [ "${?}" != "0" ]; then
echo "nvidia driver modules are not yet loaded, invoking runc directly"
echo "nvidia driver modules are not yet loaded, invoking runc directly" >&2
exec runc "$@"
fi
/dest-dir/some-runtime \
Expand Down
6 changes: 3 additions & 3 deletions cmd/nvidia-ctk-installer/toolkit/installer/installer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func TestToolkitInstaller(t *testing.T) {
wrapper: `#! /bin/sh
cat /proc/modules | grep -e "^nvidia " >/dev/null 2>&1
if [ "${?}" != "0" ]; then
echo "nvidia driver modules are not yet loaded, invoking runc directly"
echo "nvidia driver modules are not yet loaded, invoking runc directly" >&2
exec runc "$@"
fi
NVIDIA_CTK_CONFIG_FILE_PATH=/foo/bar/baz/.config/nvidia-container-runtime/config.toml \
Expand All @@ -185,7 +185,7 @@ PATH=/foo/bar/baz:$PATH \
wrapper: `#! /bin/sh
cat /proc/modules | grep -e "^nvidia " >/dev/null 2>&1
if [ "${?}" != "0" ]; then
echo "nvidia driver modules are not yet loaded, invoking runc directly"
echo "nvidia driver modules are not yet loaded, invoking runc directly" >&2
exec runc "$@"
fi
NVIDIA_CTK_CONFIG_FILE_PATH=/foo/bar/baz/.config/nvidia-container-runtime/config.toml \
Expand All @@ -200,7 +200,7 @@ PATH=/foo/bar/baz:$PATH \
wrapper: `#! /bin/sh
cat /proc/modules | grep -e "^nvidia " >/dev/null 2>&1
if [ "${?}" != "0" ]; then
echo "nvidia driver modules are not yet loaded, invoking runc directly"
echo "nvidia driver modules are not yet loaded, invoking runc directly" >&2
exec runc "$@"
fi
NVIDIA_CTK_CONFIG_FILE_PATH=/foo/bar/baz/.config/nvidia-container-runtime/config.toml \
Expand Down