Skip to content
Snippets Groups Projects
Commit 1969dd7b authored by Rosen Matev's avatar Rosen Matev :sunny:
Browse files

Support EL9 for throughput tests

parent 6f88e4aa
No related branches found
No related tags found
1 merge request!346Support EL9 for throughput tests
Pipeline #6186818 passed
This commit is part of merge request !346. Comments created here will be created in the context of that merge request.
......@@ -38,7 +38,13 @@ HEAPTRACK_ARGS = [
def main(listOfLogs, hltlabel, throughput, produceYAML, ht_file, heaptrack,
perf_exe, no_inline):
llvm_cxxfilt_path = "/cvmfs/sft.cern.ch/lcg/contrib/clang/12/x86_64-centos7/bin/llvm-cxxfilt"
binary_tag = os.environ["BINARY_TAG"]
if "centos7" in binary_tag.split("-"):
llvm_cxxfilt_path = "/cvmfs/sft.cern.ch/lcg/contrib/clang/12/x86_64-centos7/bin/llvm-cxxfilt"
elif "el9" in binary_tag.split("-"):
llvm_cxxfilt_path = "/cvmfs/sft.cern.ch/lcg/releases/clang/14.0.6-14bdb/x86_64-centos9/bin/llvm-cxxfilt"
else:
raise RuntimeError(f"{binary_tag=} not supported")
if os.path.isfile(llvm_cxxfilt_path):
demangle = llvm_cxxfilt_path
else:
......
......@@ -59,6 +59,8 @@ import subprocess
import tempfile
from itertools import cycle, islice
IS_EL9 = '-el9-' in os.environ["BINARY_TAG"]
def rep(x, length):
return list(islice(cycle(x), length))
......@@ -220,8 +222,12 @@ options.preamble_algs = [
if args.profile:
# see module docstring for more info about perf
perf_exe = "perf_libunwind_lcg101"
if not has_command(["perf_libunwind_lcg101"]):
if IS_EL9:
perf_exe = "perf"
else:
perf_exe = "perf_libunwind_lcg101"
if not has_command([perf_exe]):
from Moore.qmtest.context import xrdcp
from pathlib import Path
import stat
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment