Skip to content

--cpu-only and --gpu-only broken in ReFrame 4 #2764

@branfosj

Description

@branfosj

This uses hello1.py and hello.c from the first tutorial (https://reframe-hpc.readthedocs.io/en/stable/tutorial_basics.html). The checks directory contains hello1.py and src/hello.c and the contents are those files are as shown in https://reframe-hpc.readthedocs.io/en/stable/tutorial_basics.html#the-hello-world-test.

With ReFrame 4.0.2 I get:

$ reframe -c checks/hello1.py -l --cpu-only
[ReFrame Setup]
  version:           4.0.2
  command:           '/rds/homes/b/branfosj/rf401/venv402/bin/reframe -c checks/hello1.py -l --cpu-only'
  launched by:       branfosj@bb-pg-login02.bb2.cluster
  working directory: '/rds/homes/b/branfosj/rf401'
  settings files:    '<builtin>'
  check search path: '/rds/homes/b/branfosj/rf401/checks/hello1.py'
  stage directory:   '/rds/homes/b/branfosj/rf401/stage'
  output directory:  '/rds/homes/b/branfosj/rf401/output'
  log files:         '/tmp/rfm-n78630i1.log'

[List of matched checks]
Found 0 check(s)

Log file(s) saved in '/tmp/rfm-n78630i1.log'
$ reframe -c checks/hello1.py -l --gpu-only
[ReFrame Setup]
  version:           4.0.2
  command:           '/rds/homes/b/branfosj/rf401/venv402/bin/reframe -c checks/hello1.py -l --gpu-only'
  launched by:       branfosj@bb-pg-login02.bb2.cluster
  working directory: '/rds/homes/b/branfosj/rf401'
  settings files:    '<builtin>'
  check search path: '/rds/homes/b/branfosj/rf401/checks/hello1.py'
  stage directory:   '/rds/homes/b/branfosj/rf401/stage'
  output directory:  '/rds/homes/b/branfosj/rf401/output'
  log files:         '/tmp/rfm-z_tsg8_0.log'

ERROR: run session stopped: type error: '>' not supported between instances of 'NoneType' and 'int'
ERROR: Traceback (most recent call last):
  File "/rds/homes/b/branfosj/rf401/venv402/lib64/python3.6/site-packages/reframe/frontend/cli.py", line 996, in main
    testcases = list(testcases)
  File "/rds/homes/b/branfosj/rf401/venv402/lib64/python3.6/site-packages/reframe/frontend/filters.py", line 113, in _fn
    return case.check.num_gpus_per_node > 0
TypeError: '>' not supported between instances of 'NoneType' and 'int'

Log file(s) saved in '/tmp/rfm-z_tsg8_0.log'

With ReFrame 3.12.0 these work as I expect them too

$ reframe -c checks/hello1.py -l --cpu-only
[ReFrame Setup]
  version:           3.12.0
  command:           '/rds/homes/b/branfosj/rf401/venv312/bin/reframe -c checks/hello1.py -l --cpu-only'
  launched by:       branfosj@bb-pg-login02.bb2.cluster
  working directory: '/rds/homes/b/branfosj/rf401'
  settings file:     '<builtin>'
  check search path: '/rds/homes/b/branfosj/rf401/checks/hello1.py'
  stage directory:   '/rds/homes/b/branfosj/rf401/stage'
  output directory:  '/rds/homes/b/branfosj/rf401/output'

[List of matched checks]
- HelloTest
Found 1 check(s)

Log file(s) saved in '/tmp/rfm-josa3561.log'
$ reframe -c checks/hello1.py -l --gpu-only
[ReFrame Setup]
  version:           3.12.0
  command:           '/rds/homes/b/branfosj/rf401/venv312/bin/reframe -c checks/hello1.py -l --gpu-only'
  launched by:       branfosj@bb-pg-login02.bb2.cluster
  working directory: '/rds/homes/b/branfosj/rf401'
  settings file:     '<builtin>'
  check search path: '/rds/homes/b/branfosj/rf401/checks/hello1.py'
  stage directory:   '/rds/homes/b/branfosj/rf401/stage'
  output directory:  '/rds/homes/b/branfosj/rf401/output'

[List of matched checks]
Found 0 check(s)

Log file(s) saved in '/tmp/rfm-w8_8272q.log'

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions