Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jgphpc on github.
  • I am jgphpc (https://keybase.io/jgphpc) on keybase.
  • I have a public key ASBMbT4XL_DBupoUzUDyAawho-qR32nJeqi3es4bXrotLwo

To claim this, I am signing this object:

@jgphpc
jgphpc / 0.F90
Created November 7, 2018 16:42
perftools-lite-loops inline test code
module myfmodule
use ISO_C_BINDING
implicit none
private
public :: mysub
interface mencode
integer*8 function mEncode_magicbits(i, j, k) bind(C, name="mEncode_magicbits")
import os, sys
import reframe as rfm
import reframe.utility.sanity as sn
@rfm.simple_test
class ExampleRunOnlyTest(rfm.RunOnlyRegressionTest):
def __init__(self):
self.descr = ('RunOnlyRegressionTest')
self.valid_systems = ['dom:login']
@jgphpc
jgphpc / 0.py
Last active March 18, 2020 17:06
import os, sys
import reframe as rfm
import reframe.utility.sanity as sn
import numpy as np
from reframe.utility.sanity import evaluate
from reframe.core.deferrable import _DeferredExpression
@rfm.simple_test
class ExampleRunOnlyTest(rfm.RunOnlyRegressionTest):
@jgphpc
jgphpc / hello4.py
Last active March 12, 2021 10:07
parameter+find
# Copyright 2016-2021 Swiss National Supercomputing Centre (CSCS/ETH Zurich)
# ReFrame Project Developers. See the top-level LICENSE file for details.
#
# SPDX-License-Identifier: BSD-3-Clause
import reframe as rfm
import reframe.utility.sanity as sn
import reframe.utility as util
@jgphpc
jgphpc / 0.py
Created April 22, 2021 09:47
issue1943
import reframe as rfm
import reframe.utility.sanity as sn
@rfm.simple_test
class HelloTest(rfm.CompileOnlyRegressionTest):
def __init__(self):
self.valid_systems = ['ubu:login']
self.valid_prog_environs = ['PrgEnv-gnu1',
'PrgEnv-gnu2',
@jgphpc
jgphpc / hooks.py
Last active May 11, 2021 12:17
SanityError: tag `num_comms_0-10B' not resolved in references for `dom:login'
import os
import reframe as rfm
import reframe.utility.sanity as sn
class setup_code(rfm.RegressionMixin):
@rfm.run_after('sanity')
def set_perf(self):
regex = r'(?P<s>\d)'
self.perf_patterns = {
'hElapsed': sn.extractsingle(regex, self.stdout, 's', int)
import os, sys
import reframe as rfm
import reframe.utility.sanity as sn
@rfm.simple_test
class ExampleRunOnlyTest(rfm.RunOnlyRegressionTest):
def __init__(self):
self.descr = ('my RunOnlyRegressionTest')
self.valid_systems = ['dom:login']
@jgphpc
jgphpc / debjg.py
Last active July 6, 2021 20:42
pascit vs reframe
# Copyright 2016-2021 Swiss National Supercomputing Centre (CSCS/ETH Zurich)
# ReFrame Project Developers. See the top-level LICENSE file for details.
#
# SPDX-License-Identifier: BSD-3-Clause
#
# ReFrame CSCS settings
#
import reframe.utility.osext as osext
import reframe as rfm
import reframe.utility.sanity as sn
# {{{ new
@rfm.simple_test
class pr2083_new_way(rfm.RunOnlyRegressionTest):
valid_systems = ['dom:login']
valid_prog_environs = ['builtin']
executable = 'echo 40 bananas'