question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ReFrame ignores num_cpus_per_task for CompileOnlyRegressionTest

See original GitHub issue

I tried setting num_cpus_per_task = 4 in the class body of a CompileOnlyRegressionTest, but ReFrame ignores it. I also tried setting it with:

    @run_after('setup')
    def set_cpus_per_task(self):
        self.job.num_cpus_per_task = 4

but apparently there is no job object defined for CompileOnlyRegressionTest, as I get this error:

AttributeError: 'NoneType' object has no attribute 'num_cpus_per_task'

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
smoorscommented, Nov 30, 2021

self.num_cpus_per_task did not work, but self.build_job.num_cpus_per_task does work (that’s probably what you meant?)

as a suggestion, maybe you could automatically set self.build_job.num_cpus_per_task equal to self.num_cpus_per_task if not defined?

anyway, thanks a lot for the help!

0reactions
vkarakcommented, Dec 3, 2021

Opened #2315.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tutorial 2: Customizing Further a Regression Test - ReFrame
In this tutorial we will present common patterns that can come up when writing regression tests with ReFrame. All examples use the configuration...
Read more >
reframe/pipeline.py at master - GitHub
from reframe.core.meta import RegressionTestMeta ... :attr:`executable_opts` attributes are ignored. ... Number of CPUs per task required by this test.
Read more >
ReFrame Documentation - Read the Docs
ReFrame is a powerful framework for writing system regression tests and benchmarks, specifically targeted to HPC systems.
Read more >
A regression framework for checking the health of large HPC ...
Abstract—In this paper, we present a new framework for writing regression tests for HPC systems, called REFRAME. The goal of this framework is...
Read more >
Introducing Slurm - Princeton Research Computing
The mathematical product of nodes, ntasks and cpus-per-task is equal to the total number of CPU-cores that you are requesting in your Slurm...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found