Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check building AdaptiveCpp with EasyBuild #32

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions checks/easybuild/eb_adaptive_cpp.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import reframe as rfm
import reframe.utility.sanity as sn


@rfm.simple_test
class AdaptiveCpp_EBCheck(rfm.RegressionTest):
valid_systems = ['lumi:gpu']
valid_prog_environs = ['cpeGNU']
executable = 'acpp'
executable_opts = ['--acpp-version']
modules = ['EasyBuild-user']
build_system = 'EasyBuild'

tags = {'lumi-stack'}

@run_before('compile')
def setup_build_system(self):
self.build_system.easyconfigs = ['AdaptiveCpp-23.10.0-cpeGNU-22.12-rocm-5.2.3.eb']
self.build_system.options = ['-f --pr-target-account=mszpindler --from-pr 1']

@run_before('run')
def prepare_run(self):
self.modules = self.build_system.generated_modules

@sanity_function
def assert_version(self):
return sn.assert_found(r'\s+AdaptiveCpp version: 23.10.0.*', self.stdout)