Skip to content

Commit

Permalink
Added comment on CPU autodetect to settings_example. Moved all autode…
Browse files Browse the repository at this point in the history
…tect settings to the end of the config
  • Loading branch information
Caspar van Leeuwen committed Sep 19, 2023
1 parent 08eff9a commit 3bcee84
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 20 deletions.
8 changes: 2 additions & 6 deletions config/aws_citc.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@
'logging': common_logging_config(reframe_prefix),
'general': [
{
# Enable automatic detection of CPU architecture for each partition
# See https://reframe-hpc.readthedocs.io/en/stable/configure.html#auto-detecting-processor-information
'remote_detect': True,
}
],
Expand All @@ -126,12 +128,6 @@
# Add default things to each partition:
partition_defaults = {
'scheduler': 'squeue',
# mpirun causes problems with cpu autodetect, since there is no system mpirun.
# See https://github.com/EESSI/test-suite/pull/53#issuecomment-1590849226
# and this feature request https://github.com/reframe-hpc/reframe/issues/2926
# However, using srun requires either using pmix or proper pmi2 integration in the MPI library
# See https://github.com/EESSI/test-suite/pull/53#issuecomment-1598753968
# Thus, we use mpirun for now, and manually swap to srun if we want to autodetect CPUs...
'launcher': 'mpirun',
'environs': ['default'],
'features': [
Expand Down
14 changes: 7 additions & 7 deletions config/izum_vega.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@

# This is an example configuration file
site_configuration = {
'general': [
{
# Enable automatic detection of CPU architecture for each partition
# See https://reframe-hpc.readthedocs.io/en/stable/configure.html#auto-detecting-processor-information
'remote_detect': True,
}
],
'systems': [
{
'name': 'vega',
Expand Down Expand Up @@ -109,4 +102,11 @@
},
],
'logging': common_logging_config(reframe_prefix),
'general': [
{
# Enable automatic detection of CPU architecture for each partition
# See https://reframe-hpc.readthedocs.io/en/stable/configure.html#auto-detecting-processor-information
'remote_detect': True,
}
],
}
23 changes: 23 additions & 0 deletions config/settings_example.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# WARNING: for CPU autodetect to work correctly you need to
# 1. Either use ReFrame >= 4.3.3 or temporarily change the 'launcher' for each partition to srun
# 2. Either use ReFrame >= 4.3.3 or run from a clone of the ReFrame repository
# If your system has a GPU partition, it might force jobs to request at least one GPU. If that is the
# case, you also need to temporarily change 'access' field for the GPU partition to include the request
# for one GPU, e.g. 'access': ['-p gpu', '--export=None', '--gres=gpu:1'],

# Without this, the autodetect job fails because
# 1. A missing mpirun command
# 2. An incorrect directory structure is assumed when preparing the stagedir for the autodetect job

# Related issues
# 1. https://github.com/reframe-hpc/reframe/issues/2926
# 2. https://github.com/reframe-hpc/reframe/issues/2914


"""
Example configuration file
"""
Expand Down Expand Up @@ -79,6 +95,13 @@
},
],
'logging': common_logging_config(),
'general': [
{
# Enable automatic detection of CPU architecture for each partition
# See https://reframe-hpc.readthedocs.io/en/stable/configure.html#auto-detecting-processor-information
'remote_detect': True,
}
],
}

# optional logging to syslog
Expand Down
14 changes: 7 additions & 7 deletions config/surf_snellius.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@

# This is an example configuration file
site_configuration = {
'general': [
{
# Enable automatic detection of CPU architecture for each partition
# See https://reframe-hpc.readthedocs.io/en/stable/configure.html#auto-detecting-processor-information
'remote_detect': True,
}
],
'systems': [
{
'name': 'snellius',
Expand Down Expand Up @@ -107,4 +100,11 @@
},
],
'logging': common_logging_config(reframe_prefix),
'general': [
{
# Enable automatic detection of CPU architecture for each partition
# See https://reframe-hpc.readthedocs.io/en/stable/configure.html#auto-detecting-processor-information
'remote_detect': True,
}
],
}

0 comments on commit 3bcee84

Please sign in to comment.