Skip to content

Commit 8a144c9

Browse files
authored
Merge pull request #3095 from vkarak/doc/new-tutorial
[doc] Revamp the documentation
2 parents db628b2 + 9607459 commit 8a144c9

File tree

172 files changed

+5898
-7136
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

172 files changed

+5898
-7136
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
run: |
8787
docker run reframe-${{ matrix.modules-version }}:latest
8888
89-
tutorialtest:
89+
eb-spack-howto:
9090
runs-on: ubuntu-latest
9191
steps:
9292
- uses: actions/checkout@v4
@@ -99,7 +99,7 @@ jobs:
9999
- name: Build Image for Tutorial Tests
100100
run: |
101101
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
102-
docker build -f ci-scripts/dockerfiles/tutorials.dockerfile -t reframe-tutorials:latest .
102+
docker build -f ci-scripts/dockerfiles/eb-spack-howto.dockerfile -t reframe-tutorials:latest .
103103
docker logout
104104
- name: Run Tutorial Tests
105105
run: |

.github/workflows/test-flux.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ jobs:
3838
run: |
3939
export PATH=$PWD/bin:$PATH
4040
which reframe
41-
flux start reframe -c tutorials/flux -C tutorials/flux/settings.py -l
42-
flux start reframe -c tutorials/flux -C tutorials/flux/settings.py --run
43-
flux start python3 ./test_reframe.py --rfm-user-config=tutorials/flux/settings.py -vvvv
41+
flux start reframe -c examples/howto/flux -C examples/howto/flux/settings.py -l
42+
flux start reframe -c examples/howto/flux -C examples/howto/flux/settings.py -r
43+
flux start python3 ./test_reframe.py --rfm-user-config=examples/howto/flux/settings.py -vvvv

ci-scripts/dockerfiles/tutorials.dockerfile renamed to ci-scripts/dockerfiles/eb-spack-howto.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ RUN echo '. /usr/local/lmod/lmod/init/profile && . /home/rfmuser/spack/share/spa
3737

3838
ENV BASH_ENV /home/rfmuser/setup.sh
3939

40-
CMD ["/bin/bash", "-c", "./bin/reframe -r -C tutorials/config/lmodsys.py -R -c tutorials/build_systems"]
40+
CMD ["/bin/bash", "-c", "./bin/reframe --system=tutorialsys -r -C examples/tutorial/config/baseline_modules.py -R -c examples/tutorial/easybuild/eb_test.py -c examples/tutorial/spack/spack_test.py"]

docs/_static/img/reframe-system-arch.svg

Lines changed: 3 additions & 0 deletions
Loading

docs/_static/img/test-naming.svg

Lines changed: 3 additions & 0 deletions
Loading

docs/config_reference.rst

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Configuration Reference
33
***********************
44

5-
ReFrame's behavior can be configured through its configuration file (see :doc:`configure`), environment variables and command-line options.
5+
ReFrame's behavior can be configured through its configuration file, environment variables and command-line options.
66
An option can be specified via multiple paths (e.g., a configuration file parameter and an environment variable), in which case command-line options precede environment variables, which in turn precede configuration file options.
77
This section provides a complete reference guide of the configuration options of ReFrame that can be set in its configuration file or specified using environment variables.
88

@@ -577,7 +577,24 @@ System Partition Configuration
577577
:default: ``{}``
578578

579579
Processor information for this partition stored in a `processor info object <#processor-info>`__.
580-
If not set, ReFrame will try to auto-detect this information (see :ref:`proc-autodetection` for more information).
580+
If not set, ReFrame will try to determine this information as follows:
581+
582+
#. If the processor configuration metadata file in ``~/.reframe/topology/{system}-{part}/processor.json`` exists, the topology information is loaded from there.
583+
These files are generated automatically by ReFrame from previous runs.
584+
585+
#. If the corresponding metadata files are not found, the processor information will be auto-detected.
586+
If the system partition is local (i.e., ``local`` scheduler + ``local`` launcher), the processor information is auto-detected unconditionally and stored in the corresponding metadata file for this partition.
587+
If the partition is remote, ReFrame will not try to auto-detect it unless the :envvar:`RFM_REMOTE_DETECT` or the :attr:`general.remote_detect` configuration option is set.
588+
In that case, the steps to auto-detect the remote processor information are the following:
589+
590+
a. ReFrame creates a fresh clone of itself in a temporary directory created under ``.`` by default.
591+
This temporary directory prefix can be changed by setting the :envvar:`RFM_REMOTE_WORKDIR` environment variable.
592+
b. ReFrame changes to that directory and launches a job that will first bootstrap the fresh clone and then run that clone with ``{launcher} ./bin/reframe --detect-host-topology=topo.json``.
593+
The :option:`--detect-host-topology` option causes ReFrame to detect the topology of the current host,
594+
which in this case would be one of the remote compute nodes.
595+
596+
In case of errors during auto-detection, ReFrame will simply issue a warning and continue.
597+
581598

582599
.. versionadded:: 3.5.0
583600

@@ -1670,7 +1687,6 @@ General Configuration
16701687

16711688
Try to auto-detect processor information of remote partitions as well.
16721689
This may slow down the initialization of the framework, since it involves submitting auto-detection jobs to the remote partitions.
1673-
For more information on how ReFrame auto-detects processor information, you may refer to :ref:`proc-autodetection`.
16741690

16751691
.. versionadded:: 3.7.0
16761692

0 commit comments

Comments
 (0)