@@ -145,28 +145,31 @@ if not (archdetect_accel == nil or archdetect_accel == '') then
145
145
eessiDebug (" Checking if " .. eessi_module_path_accel .. " exists" )
146
146
if not isDir (eessi_module_path_accel ) then
147
147
-- fall back to major version GPU arch if the exact one is not an option (i.e, 7.5 -> 7.0)
148
+ local original_archdetect_accel = archdetect_accel
148
149
archdetect_accel = archdetect_accel :sub (1 ,- 2 ) .. " 0"
149
- eessiDebug (" No directory for " .. archdetect_accel .. " , trying " .. archdetect_accel )
150
+ eessiDebug (" No directory for " .. original_archdetect_accel .. " , trying " .. archdetect_accel )
150
151
eessi_module_path_accel = pathJoin (eessi_accel_software_path , archdetect_accel , eessi_modules_subdir )
151
152
end
152
153
if isDir (eessi_module_path_accel ) then
153
154
-- set the accelerator target based on what actually exists
154
155
setenv (" EESSI_ACCELERATOR_TARGET" , archdetect_accel )
155
156
setenv (" EESSI_MODULEPATH_ACCEL" , eessi_module_path_accel )
156
- prepend_path (" MODULEPATH" , eessi_module_path_accel )
157
- eessiDebug (" Using accelerator modules at: " .. eessi_module_path_accel )
157
+ if ( mode () ~= " spider" ) then
158
+ prepend_path (" MODULEPATH" , eessi_module_path_accel )
159
+ eessiDebug (" Using accelerator modules at: " .. eessi_module_path_accel )
160
+ end
158
161
end
159
162
end
160
163
161
164
-- prepend the site module path last so it has priority
162
165
prepend_path (" MODULEPATH" , eessi_site_module_path )
166
+ eessiDebug (" Adding " .. eessi_site_module_path .. " to MODULEPATH" )
163
167
if isDir (eessi_module_path_accel ) then
164
168
eessi_module_path_site_accel = string.gsub (eessi_module_path_accel , " versions" , " host_injections" )
165
169
setenv (" EESSI_SITE_MODULEPATH_ACCEL" , eessi_module_path_site_accel )
166
170
prepend_path (" MODULEPATH" , eessi_module_path_site_accel )
167
171
eessiDebug (" Using site accelerator modules at: " .. eessi_module_path_site_accel )
168
172
end
169
- eessiDebug (" Adding " .. eessi_site_module_path .. " to MODULEPATH" )
170
173
if mode () == " load" then
171
174
LmodMessage (" EESSI/" .. eessi_version .. " loaded successfully" )
172
175
end
0 commit comments