Skip to content

Commit 2c494f7

Browse files
committed
GPU burn nvidia draft
1 parent fdcb83d commit 2c494f7

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

config_vsc.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,10 @@
252252
'ftn': 'mpiifort',
253253
#'target_systems': ['vaughan', 'leibniz']
254254
},
255+
{
256+
'name': 'nvidia',
257+
'modules': ['CUDA']
258+
},
255259
],
256260
'general': [
257261
{

tests/gpu/gpu_burn.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import os
2+
import reframe as rfm
3+
import reframe.utility.sanity as sn
4+
5+
@rfm.simple_test
6+
class GPU_Burn_nvidia(rfm.RunOnlyRegressionTest):
7+
descr = "GPU burn test on nvidia node"
8+
valid_systems = ["vaughan:nvidia"]
9+
valid_prog_environs = ["CUDA"]
10+
variables = {'CUDAPATH': '/apps/antwerpen/rome/centos8/CUDA/11.6.2'}
11+
time_limit = '20m'
12+
num_tasks = 1
13+
num_tasks_per_node = 1
14+
num_cpus_per_task = 64
15+
prebuild_cmds = ['git clone https://github.com/wilicc/gpu-burn.git']
16+
prerun_cmds = ['cd gpu-burn', 'make']
17+
executable = './gpu_burn 10'
18+
tags = {"antwerp", "gpu", "gpuburn"}
19+
20+
@sanity_function
21+
def assert_job(self):
22+
return sn.and_(sn.assert_found(r'OK', self.stdout), sn.assert_not_found(r'FAULTY', self.stdout))

0 commit comments

Comments
 (0)