Skip to content

Commit fa85ef7

Browse files
committed
Take into account system and partition variables in autodetect
1 parent cf24650 commit fa85ef7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

reframe/frontend/autodetect.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,15 +201,19 @@ def detect_topology():
201201
# No topology found, try to auto-detect it
202202
getlogger().debug(f'> no topology file found; auto-detecting...')
203203
temp_modules = rt.system.preload_environ.modules
204+
temp_vars = rt.system.preload_environ.variables
204205
if _is_part_local(part):
205206
temp_modules += part.local_env.modules
207+
temp_vars += part.local_env.variables
206208
# Unconditionally detect the system for fully local partitions
207-
with runtime.temp_environment(modules=temp_modules):
209+
with runtime.temp_environment(modules=temp_modules,
210+
variables=temp_vars):
208211
part.processor._info = cpuinfo()
209212

210213
_save_info(topo_file, part.processor.info)
211214
elif detect_remote_systems:
212-
with runtime.temp_environment(modules=temp_modules):
215+
with runtime.temp_environment(modules=temp_modules,
216+
variables=temp_vars):
213217
part.processor._info = _remote_detect(part)
214218

215219
if part.processor.info:

0 commit comments

Comments
 (0)