Skip to content

Commit 09b28bb

Browse files
committed
Add debug statements to instructions jobs to help diagnose papi problems
1 parent 07c0920 commit 09b28bb

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

vm/ci/ci_common/common-bench.jsonnet

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,17 @@ local repo_config = import '../../../ci/repo-configuration.libsonnet';
4848
packages+: {
4949
'papi': '==5.5.1',
5050
},
51+
local PAPI_DIR='/cm/shared/apps/papi/papi-5.5.1',
5152
environment+: {
5253
ENABLE_POLYBENCH_HPC: 'yes',
53-
POLYBENCH_HPC_EXTRA_HEADERS: '/cm/shared/apps/papi/papi-5.5.1/include',
54-
POLYBENCH_HPC_PAPI_LIB_DIR: '/cm/shared/apps/papi/papi-5.5.1/lib',
54+
POLYBENCH_HPC_EXTRA_HEADERS: PAPI_DIR + '/include',
55+
POLYBENCH_HPC_PAPI_LIB_DIR: PAPI_DIR + '/lib',
5556
} + if !std.objectHasAll(self, 'machine_name') then {} else if std.count(['e3', 'e4_36_256', 'e4_8_64'], self.machine_name) > 0 then {LIBPFM_FORCE_PMU: 'amd64'} else if self.machine_name == 'x52' then {} else {},
57+
setup+: [
58+
# Debug commands to help diagnose future problems.
59+
['sysctl', 'kernel.perf_event_paranoid'], # print paranoid level (-1 expected)
60+
[PAPI_DIR + '/bin/papi_avail'], # print available events (non-zero number of events expected)
61+
],
5662
},
5763

5864

0 commit comments

Comments
 (0)