Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

import json
import logging
import os
import subprocess
import sys
import traceback
Expand Down Expand Up @@ -129,8 +130,14 @@ def benchmark_kernel(
results_json = self.artifacts_dir / "benchmark_results.json"
benchmark_script = Path(__file__).parent / "kernel_subprocess.py"

# Use KERNEL_PROFILER_PYTHON (the PAR bootstrap) when set, like
# ncu_profiler.py; bare sys.executable is un-bootstrapped in a PAR.
bench_python = (
os.environ.get("KERNEL_PROFILER_PYTHON") or sys.executable
)

cmd = [
sys.executable,
bench_python,
str(benchmark_script),
"--problem",
str(problem_file),
Expand Down
Loading