Skip to content

Commit 79267ce

Browse files
committed
updated configuaration
1 parent 7c254e9 commit 79267ce

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

config_vsc.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,16 @@
204204
'descr': 'Nvidia node',
205205
'max_jobs': 1,
206206
'launcher': 'local',
207+
'resources': [
208+
{
209+
'name': 'gpu',
210+
'options': ['--gres=gpu:{num_gpus}'],
211+
},
212+
{
213+
'name': 'partition',
214+
'options': ['-p ampere_gpu']
215+
}
216+
]
207217
}
208218
]
209219
},

tests/gpu/gpu_burn.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ class GPU_Burn_nvidia(rfm.RunOnlyRegressionTest):
88
valid_systems = ["vaughan:nvidia"]
99
valid_prog_environs = ["CUDA"]
1010
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
11+
time_limit = '10m'
1512
prebuild_cmds = ['git clone https://github.com/wilicc/gpu-burn.git']
1613
prerun_cmds = ['cd gpu-burn', 'make']
17-
executable = './gpu_burn 10'
14+
executable = './gpu_burn 5'
1815
tags = {"antwerp", "gpu", "gpuburn"}
1916

17+
def __init__(self):
18+
self.extra_resources = {'gpu': {'num_gpus': '4'}}
19+
2020
@sanity_function
2121
def assert_job(self):
2222
return sn.and_(sn.assert_found(r'OK', self.stdout), sn.assert_not_found(r'FAULTY', self.stdout))

0 commit comments

Comments
 (0)