Skip to content

Conversation

@teojgo
Copy link
Contributor

@teojgo teojgo commented Sep 4, 2018

  • Adapt the perftools test to use build systems.

  • Use new regression test syntax.

Solves the test failure due to the following error:
attempt to set an aggregate field of different type. Required typespec: list[str]

This is the last regression test that addresses issue #397.

Closes #397

* Adapt the perftools test to use build systems.

* Use new regression test syntax.
self.valid_prog_environs = ['PrgEnv-cray', 'PrgEnv-gnu']

# NOTE: Reduce time limit because for PrgEnv-pgi even if the output
# is correct, the batch job uses all the time.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we open a ticket to ops for that?

Copy link
Contributor

@kraushm kraushm Sep 4, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jgphpc also suggested earlier today to open a ticket. (yet, I could imagine he meant the tools-rt and not immediately ops)

Copy link
Contributor

@kraushm kraushm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

def setup(self, environ, partition, **job_opts):
super().setup(environ, partition, **job_opts)
flags = self.prgenv_flags[self.current_environ.name]
flags += ['-g', '-D_CSCS_ITMAX=1', '-DUSE_MPI']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would use the build_system.cppflags for the -D definitions and as for the -g, I would put it in each entry in the prgenv_flags dictionary. This way, you will have all the compilation flags in a single place in the __init__().

@codecov-io
Copy link

codecov-io commented Sep 4, 2018

Codecov Report

Merging #439 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master    #439   +/-   ##
======================================
  Coverage    91.2%   91.2%           
======================================
  Files          70      70           
  Lines        8611    8611           
======================================
  Hits         7854    7854           
  Misses        757     757

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8896a59...97f36cb. Read the comment docs.

@vkarak vkarak merged commit 220470a into reframe-hpc:master Sep 4, 2018
@teojgo teojgo deleted the regression_test/perftools_build_systems branch September 6, 2018 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants