Skip to content

Commit

Permalink
Merge pull request #786 from teojgo/feature/print_num_req_nodes_listing
Browse files Browse the repository at this point in the history
[feat] Print task allocation type (standard or flexible) for tests in detailed listing
  • Loading branch information
Vasileios Karakasis committed May 21, 2019
2 parents 315b7ec + d43366a commit a792db8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
15 changes: 14 additions & 1 deletion docs/running.rst
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ The following example lists detailed information about the tutorial check:
.. code-block:: none
Command line: ./bin/reframe -c tutorial/ -L
Reframe version: 2.15-dev1
Reframe version: 2.18-dev2
Launched by user: USER
Launched on host: daint103
Reframe paths
Expand All @@ -94,90 +94,103 @@ The following example lists detailed information about the tutorial check:
- systems: daint:gpu
- environments: PrgEnv-cray, PrgEnv-gnu, PrgEnv-pgi
- modules: cudatoolkit
- task allocation: standard
- tags: tutorial
- maintainers: you-can-type-your-email-here
* Example1Test (found in /path/to/reframe/tutorial/example1.py)
- description: Simple matrix-vector multiplication example
- systems: *
- environments: *
- modules:
- task allocation: standard
- tags: tutorial
- maintainers: you-can-type-your-email-here
* Example4Test (found in /path/to/reframe/tutorial/example4.py)
- description: Matrix-vector multiplication example with OpenACC
- systems: daint:gpu
- environments: PrgEnv-cray, PrgEnv-pgi
- modules: craype-accel-nvidia60
- task allocation: standard
- tags: tutorial
- maintainers: you-can-type-your-email-here
* SerialTest (found in /path/to/reframe/tutorial/example8.py)
- description: Serial matrix-vector multiplication
- systems: *
- environments: *
- modules:
- task allocation: standard
- tags: tutorial
- maintainers: you-can-type-your-email-here
* OpenMPTest (found in /path/to/reframe/tutorial/example8.py)
- description: OpenMP matrix-vector multiplication
- systems: *
- environments: PrgEnv-cray, PrgEnv-gnu, PrgEnv-intel, PrgEnv-pgi
- modules:
- task allocation: standard
- tags: tutorial
- maintainers: you-can-type-your-email-here
* MPITest (found in /path/to/reframe/tutorial/example8.py)
- description: MPI matrix-vector multiplication
- systems: daint:gpu, daint:mc
- environments: PrgEnv-cray, PrgEnv-gnu, PrgEnv-intel, PrgEnv-pgi
- modules:
- task allocation: standard
- tags: tutorial
- maintainers: you-can-type-your-email-here
* OpenACCTest (found in /path/to/reframe/tutorial/example8.py)
- description: OpenACC matrix-vector multiplication
- systems: daint:gpu
- environments: PrgEnv-cray, PrgEnv-pgi
- modules: craype-accel-nvidia60
- task allocation: standard
- tags: tutorial
- maintainers: you-can-type-your-email-here
* CudaTest (found in /path/to/reframe/tutorial/example8.py)
- description: CUDA matrix-vector multiplication
- systems: daint:gpu
- environments: PrgEnv-gnu, PrgEnv-cray, PrgEnv-pgi
- modules: cudatoolkit
- task allocation: standard
- tags: tutorial
- maintainers: you-can-type-your-email-here
* Example3Test (found in /path/to/reframe/tutorial/example3.py)
- description: Matrix-vector multiplication example with MPI
- systems: daint:gpu, daint:mc
- environments: PrgEnv-cray, PrgEnv-gnu, PrgEnv-intel, PrgEnv-pgi
- modules:
- task allocation: standard
- tags: tutorial
- maintainers: you-can-type-your-email-here
* Example7Test (found in /path/to/reframe/tutorial/example7.py)
- description: Matrix-vector multiplication (CUDA performance test)
- systems: daint:gpu
- environments: PrgEnv-gnu, PrgEnv-cray, PrgEnv-pgi
- modules: cudatoolkit
- task allocation: standard
- tags: tutorial
- maintainers: you-can-type-your-email-here
* Example6Test (found in /path/to/reframe/tutorial/example6.py)
- description: Matrix-vector multiplication with L2 norm check
- systems: *
- environments: *
- modules:
- task allocation: standard
- tags: tutorial
- maintainers: you-can-type-your-email-here
* Example2aTest (found in /path/to/reframe/tutorial/example2.py)
- description: Matrix-vector multiplication example with OpenMP
- systems: *
- environments: PrgEnv-cray, PrgEnv-gnu, PrgEnv-intel, PrgEnv-pgi
- modules:
- task allocation: standard
- tags: tutorial
- maintainers: you-can-type-your-email-here
* Example2bTest (found in /path/to/reframe/tutorial/example2.py)
- description: Matrix-vector multiplication example with OpenMP
- systems: *
- environments: PrgEnv-cray, PrgEnv-gnu, PrgEnv-intel, PrgEnv-pgi
- modules:
- task allocation: standard
- tags: tutorial
- maintainers: you-can-type-your-email-here
Found 13 check(s).
Expand Down
3 changes: 3 additions & 0 deletions reframe/frontend/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,15 @@
def format_check(check, detailed):
lines = [' * %s (found in %s)' % (check.name,
inspect.getfile(type(check)))]
flex = 'flexible' if check.num_tasks <= 0 else 'standard'

if detailed:
lines += [
' - description: %s' % check.descr,
' - systems: %s' % ', '.join(check.valid_systems),
' - environments: %s' % ', '.join(check.valid_prog_environs),
' - modules: %s' % ', '.join(check.modules),
' - task allocation: %s' % flex,
' - tags: %s' % ', '.join(check.tags),
' - maintainers: %s' % ', '.join(check.maintainers)
]
Expand Down

0 comments on commit a792db8

Please sign in to comment.