Skip to content

Commit 833dafc

Browse files
author
Vasileios Karakasis
authored
Merge pull request #2300 from vkarak/test/fix-numpy-test
[test] Fix setting of environment variables in the numpy test
2 parents b4025a1 + f42155f commit 833dafc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cscs-checks/apps/python/numpy_check.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ class cscs_numpy_test(numpy_ops_check):
3737
@run_after('setup')
3838
def set_num_cpus_per_task(self):
3939
self.num_cpus_per_task = self.current_partition.processor.num_cores
40-
variables = {
41-
'OMP_NUM_THREADS': self.num_cpus_per_task
40+
self.variables = {
41+
'OMP_NUM_THREADS': str(self.num_cpus_per_task)
4242
}
4343

4444
@run_before('performance')

0 commit comments

Comments
 (0)