CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
62 lines
1.9 KiB
INI
62 lines
1.9 KiB
INI
# -*- Python -*-
|
|
|
|
from lit import Test
|
|
import lit.formats
|
|
import lit.util
|
|
import os
|
|
import re
|
|
import subprocess
|
|
|
|
clang_bolt_mode = config.clang_bolt_mode.lower()
|
|
clang_binary = "clang"
|
|
perf_wrapper = f"{config.python_exe} {config.perf_helper_dir}/perf-helper.py perf "
|
|
|
|
if clang_bolt_mode == "instrument":
|
|
perf_wrapper = ""
|
|
clang_binary = config.clang_bolt_name
|
|
elif clang_bolt_mode == "lbr":
|
|
perf_wrapper += " --lbr -- "
|
|
elif clang_bolt_mode == "perf":
|
|
perf_wrapper += " -- "
|
|
else:
|
|
assert 0, "Unsupported CLANG_BOLT_MODE variable"
|
|
|
|
clang_nowrapper = os.path.realpath(
|
|
lit.util.which(clang_binary, config.clang_tools_dir)
|
|
).replace("\\", "/")
|
|
config.clang = perf_wrapper + clang_nowrapper
|
|
config.cmake_compiler_args = "-DCMAKE_C_COMPILER='{0}' -DCMAKE_CXX_COMPILER='{0};--driver-mode=g++'".format(
|
|
re.sub(r"\s+", ";", clang_nowrapper)
|
|
)
|
|
|
|
config.name = "Clang Perf Training"
|
|
config.suffixes = [
|
|
".c",
|
|
".cc",
|
|
".cpp",
|
|
".m",
|
|
".mm",
|
|
".cu",
|
|
".ll",
|
|
".cl",
|
|
".s",
|
|
".S",
|
|
".modulemap",
|
|
".test",
|
|
]
|
|
|
|
use_lit_shell = os.environ.get("LIT_USE_INTERNAL_SHELL")
|
|
config.test_format = lit.formats.ShTest(use_lit_shell == "0")
|
|
config.substitutions.append(
|
|
("%clang_cpp_skip_driver", f" {config.clang} --driver-mode=g++ ")
|
|
)
|
|
config.substitutions.append(("%clang_cpp", f" {config.clang} --driver-mode=g++ "))
|
|
config.substitutions.append(("%clang_skip_driver", config.clang))
|
|
config.substitutions.append(("%clang", config.clang))
|
|
config.substitutions.append(("%test_root", config.test_exec_root))
|
|
config.substitutions.append(("%cmake_compiler_args", config.cmake_compiler_args))
|
|
config.substitutions.append(('%cmake_generator', config.cmake_generator))
|
|
config.substitutions.append(('%cmake', config.cmake_exe))
|
|
config.substitutions.append(('%llvm_src_dir', config.llvm_src_dir))
|
|
config.substitutions.append(('%perf_wrapper', perf_wrapper))
|