Skip to content

Commit 0444ba3

Browse files
authored
Merge pull request #1044 from stephenswat/extras/benchmark_bfield
Use inhomogeneous magnetic field in benchmark
2 parents 3654a64 + f315f76 commit 0444ba3

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

extras/benchmark/traccc_bench_tools/kernels.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ def map_name(name):
3838
"DeviceMergeSortBlockSortKernel",
3939
"DeviceMergeSortMergeKernel",
4040
"DeviceMergeSortPartitionKernel",
41+
"DeviceRadixSortHistogramKernel",
42+
"DeviceRadixSortOnesweepKernel",
43+
"DeviceRadixSortExclusiveSumKernel",
4144
]:
4245
return "Thrust::sort"
4346
elif name in ["_kernel_agent", "static_kernel"]:

extras/benchmark/traccc_bench_tools/profile.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
DETERMINISTIC_ORDER_COMMIT = "7e7f17ccd2e2b0db8971655773b351a365ee1cfc"
1616
BOOLEAN_FLAG_COMMIT = "380fc78ba63a79ed5c8f19d01d57636aa31cf4fd"
17+
INHOMOGENEOUS_BFIELD_COMMIT = "3654a64d5fe06509e6bf8be332f5aae7b8ff2da9"
1718

1819

1920
def run_profile(
@@ -69,6 +70,19 @@ def run_profile(
6970
profile_args.append("--use-acts-geom-source")
7071
profile_args.append("--use-detray-detector")
7172

73+
if git.is_parent_of(commit, INHOMOGENEOUS_BFIELD_COMMIT):
74+
log.info(
75+
"Commit is a child of (or is) %s; enabling inhomogeneous magnetic field",
76+
INHOMOGENEOUS_BFIELD_COMMIT[:8],
77+
)
78+
profile_args.append("--read-bfield-from-file")
79+
profile_args.append("--bfield-file=geometries/odd/odd-bfield.cvf")
80+
else:
81+
log.info(
82+
"Commit is not a child of %s; disabling inhomogeneous magnetic field",
83+
INHOMOGENEOUS_BFIELD_COMMIT[:8],
84+
)
85+
7286
subprocess.run(
7387
profile_args,
7488
stdout=subprocess.DEVNULL,

0 commit comments

Comments
 (0)