Skip to content

Commit ebe88a8

Browse files
authored
Skip hdf5 tests for parallel runs for now (#1408)
* Skip hdf5 tests for parallel runs for now.
1 parent b8b85a8 commit ebe88a8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/sst/core/util/basicPerf.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#ifndef SST_CORE_UTIL_BASIC_PERF_H
1313
#define SST_CORE_UTIL_BASIC_PERF_H
1414

15+
#include <cstdint>
1516
#include <map>
1617
#include <stack>
1718
#include <string>

tests/testsuite_default_StatisticsComponent.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
have_h5 = sst_core_config_include_file_get_value(define="HAVE_HDF5", type=int, default=0, disable_warning=True) == 1
2323

24+
test_h5 = have_h5 and testing_check_get_num_ranks() == 1 and testing_check_get_num_threads() == 1
2425

2526
class testcase_StatisticComponent(SSTTestCase):
2627

@@ -56,7 +57,7 @@ def Statistics_test_template(self, testtype):
5657

5758
# Enable HDF5 test if available
5859
options = ""
59-
if have_h5:
60+
if test_h5:
6061
options = "--model-options=\"hdf5\""
6162
ref_group_stat_file_h5 = "{0}/refFiles/test_StatisticsComponent_{1}_group_stats.h5".format(testsuitedir, testtype)
6263
out_group_stat_file_h5 = "{0}/test_StatisticsComponent_{1}_group_stats.h5".format(outdir, testtype)
@@ -91,7 +92,7 @@ def Statistics_test_template(self, testtype):
9192
self.assertTrue(cmp_result, "Output/Compare file {0} does not match Reference File {1}".format(out_group_stat_file_txt, ref_group_stat_file_txt))
9293

9394
# Generate raw H5 output
94-
if have_h5:
95+
if test_h5:
9596
try:
9697
subprocess.run(["h5diff",ref_group_stat_file_h5,out_group_stat_file_h5],check=True)
9798
except subprocess.CalledProcessError as h5exc:

0 commit comments

Comments
 (0)