You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// CHECK-HHH-NONEXISTENT: error: cannot find 'remangled-{{.*}}.libspirv-nvptx64-nvidia-cuda.bc'; provide path to libspirv library via '-fsycl-libspirv-path', or pass '-fno-sycl-libspirv' to build without linking with libspirv
// CHECK-AMDGCN-HHH-NONEXISTENT: clang: error: cannot find 'remangled-{{.*}}.libspirv-amdgcn-amd-amdhsa.bc'; provide path to libspirv library via '-fsycl-libspirv-path', or pass '-fno-sycl-libspirv' to build without linking with libspirv
46
46
//
47
-
// `-fdriver-only` has no such special handling, so it will not find the file
// CHECK-DO-NONEXISTENT: error: cannot find 'remangled-{{.*}}.libspirv-nvptx64-nvidia-cuda.bc'; provide path to libspirv library via '-fsycl-libspirv-path', or pass '-fno-sycl-libspirv' to build without linking with libspirv
Copy file name to clipboardExpand all lines: devops/scripts/benchmarks/PERFORMANCE_TUNING.md
+11-27Lines changed: 11 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,38 +6,16 @@ For framework-specific information, see [README.md](README.md) and [CONTRIB.md](
6
6
## Table of Contents
7
7
8
8
-[Overview](#overview)
9
-
-[System Configuration](#system-configuration)
10
9
-[CPU Tuning](#cpu-tuning)
11
10
-[GPU Configuration](#gpu-configuration)
11
+
-[Driver Version](#driver-version)
12
12
-[Perf Configuration](#perf-configuration)
13
13
-[Environment Variables](#environment-variables)
14
14
15
15
## Overview
16
16
17
17
Performance benchmarking requires a stable and optimized system environment to produce reliable and reproducible results. This guide covers essential system tuning steps for reducing run-to-run variance in benchmark results.
18
18
19
-
## System Configuration
20
-
21
-
### Kernel Parameters
22
-
23
-
Add the following to `/etc/default/grub` in `GRUB_CMDLINE_LINUX`:
24
-
```
25
-
# Disable CPU frequency scaling
26
-
# intel_pstate=disable
27
-
28
-
# Isolate CPUs for benchmark workloads (example: reserve cores 2-7), preventing other processes
@@ -99,7 +77,12 @@ cat /sys/class/drm/card1/device/vendor # Should be 0x8086 for Intel
99
77
cat /sys/class/drm/card1/device/device # Device ID
100
78
```
101
79
102
-
Verify the max frequency is set to the true max. For Arc B580, the maximum frequency is 2850 MHz. To see this value, run “cat /sys/class/drm/card1/device/tile0/gt0/freq0/max_freq”. If the above value is not equal to the max frequency, set it as such:
80
+
Verify the max frequency is set to the true max. For Arc B580, the maximum frequency is 2850 MHz. To see this value, run:
echo$max_freq| sudo tee /sys/class/drm/card1/gt_min_freq_mhz
119
102
```
120
103
121
-
The result can be verified using tools such as oneprof or unitrace to track frequency over time for some arbitrary benchmark (many iterations of a small problem size is recommended). The frequency should remain fixed assuming thermal throttling does not occur.
104
+
The result can be verified using tools such as `oneprof` or `unitrace` to track frequency over time for some arbitrary benchmark (many iterations of a small problem size is recommended). The frequency should remain fixed assuming thermal throttling does not occur.
122
105
123
-
## Driver version
106
+
## Driver Version
124
107
Make sure you are using the latest driver (Ubuntu)
125
108
```bash
126
109
sudo apt update && sudo apt upgrade
@@ -145,6 +128,7 @@ Make the setting persistent across reboots by adding it to sysctl configuration:
145
128
echo'kernel.perf_event_paranoid = -1'| sudo tee -a /etc/sysctl.d/99-perf.conf
0 commit comments