Skip to content

Commit ddf2ee2

Browse files
author
Caspar van Leeuwen
committed
Remove now unused function
1 parent b5bbef8 commit ddf2ee2

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

create_lmodsitepackage.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -231,23 +231,6 @@
231231
end
232232
end
233233
234-
local function using_eessi_accel_stack ()
235-
local modulepath = os.getenv("MODULEPATH") or ""
236-
local accel_stack_in_modulepath = false
237-
238-
-- Check if we are using an EESSI version 2023 accelerator stack by checking if the $MODULEPATH contains
239-
-- a path that starts with /cvmfs/software.eessi.io and contains accel/nvidia/ccNN
240-
for path in string.gmatch(modulepath, '(.-):') do
241-
if string.sub(path, 1, 41) == "/cvmfs/software.eessi.io/versions/2023.06" then
242-
if string.find(path, "accel/nvidia/cc%d%d") then
243-
accel_stack_in_modulepath = true
244-
break
245-
end
246-
end
247-
end
248-
return accel_stack_in_modulepath
249-
end
250-
251234
hook.register("load", eessi_load_hook)
252235
253236
"""

0 commit comments

Comments
 (0)