Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install CUDA and CUDA-Samples via the bot #381

Closed
wants to merge 13 commits into from
Prev Previous commit
Next Next commit
Let Lmod handle most of the CRs
  • Loading branch information
ocaisa committed Nov 30, 2023
commit 213baa6dcd141cc2c93cdf9ffcdbe280a3f289b3
24 changes: 12 additions & 12 deletions create_lmodrc.py
Original file line number Diff line number Diff line change
@@ -43,10 +43,10 @@
local cudaEasyBuildDir = hostInjections .. "/software/" .. t.modFullName .. "/easybuild"
local cudaDirExists = isDir(cudaEasyBuildDir)
if not cudaDirExists then
local advice = "While the module file exists, the actual software is not shipped with EESSI.\\n"
advice = advice .. "In order to be able to use the CUDA module, please follow the instructions \\n"
advice = advice .. "available under https://www.eessi.io/docs/gpu/\\n"
LmodError("\\nYou requested to load ", simpleName, "\\n", advice)
local advice = "While the module file exists, the actual software is not shipped with EESSI. "
advice = advice .. "In order to be able to use the CUDA module, please follow the instructions "
advice = advice .. "available under https://www.eessi.io/docs/gpu/"
LmodError("\\nYou requested to load ", simpleName, " ", advice)
end
end
-- when loading CUDA enabled modules check if the necessary driver libraries are accessible to the EESSI linker,
@@ -59,10 +59,10 @@
local cudaDriverExists = isFile(cudaDriverFile)
casparvl marked this conversation as resolved.
Show resolved Hide resolved
local singularityCudaExists = isFile("/.singularity.d/libs/libcuda.so")
if not (cudaDriverExists or singularityCudaExists) then
local advice = "which relies on the CUDA runtime environment and driver libraries.\\n"
advice = advice .. "In order to be able to use the module, please follow the instructions\\n"
advice = advice .. "available under https://www.eessi.io/docs/gpu/\\n"
LmodError("\\nYou requested to load ", simpleName, "\\n", advice)
local advice = "which relies on the CUDA runtime environment and driver libraries. "
advice = advice .. "In order to be able to use the module, please follow the instructions "
advice = advice .. "available under https://www.eessi.io/docs/gpu/"
LmodError("\\nYou requested to load ", simpleName, " ", advice)
else
-- CUDA driver exists, now we check its version to see if an update is needed
if cudaDriverExists then
ocaisa marked this conversation as resolved.
Show resolved Hide resolved
@@ -80,10 +80,10 @@
end
end
if driver_libs_need_update == true then
local advice = "but the module you want to load requires CUDA " .. cudaVersion_req .. ".\\n"
advice = advice .. "Please update your CUDA driver libraries and then follow the instructions \\n"
advice = advice .. "under https://www.eessi.io/docs/gpu/ to let EESSI know about the update.\\n"
LmodError("\\nYour driver CUDA version is ", cudaVersion, "\\n", advice)
local advice = "but the module you want to load requires CUDA " .. cudaVersion_req .. ". "
advice = advice .. "Please update your CUDA driver libraries and then follow the instructions "
advice = advice .. "under https://www.eessi.io/docs/gpu/ to let EESSI know about the update."
LmodError("\\nYour driver CUDA version is ", cudaVersion, " ", advice)
end
end
end
Loading