Skip to content

Commit 7103f3c

Browse files
Removed libdrm dependency for PTI tracers (Level Zero 1.1. is needed), added sysmon utility
1 parent ff773c2 commit 7103f3c

File tree

33 files changed

+776
-419
lines changed

33 files changed

+776
-419
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ You may obtain a copy of the License at https://opensource.org/licenses/MIT
4949
- [ze_tracer](tools/ze_tracer) - "Swiss army knife" for Level Zero API call tracing and profiling (former ze_intercept);
5050
- [cl_tracer](tools/cl_tracer) - "Swiss army knife" for OpenCL(TM) API call tracing and profiling;
5151
- [gpuinfo](tools/gpuinfo) - provides basic information about the GPUs installed in a system, and the list of HW metrics one can collect for it;
52+
- [sysmon](tools/sysmon) - Linux "top" like utility to monitor GPUs installed on a system;
5253

5354
## Sample Tools & Utilities
5455
- tools for OpenCL(TM), DPC++ (with OpenCL(TM) backend) and OpenMP* GPU offload (with OpenCL(TM) backend):

SOFTWARE

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ level-zero-loader:
44
- https://github.com/oneapi-src/level-zero/releases/download/v1.2.3/level-zero-devel_1.2.3+u18.04_amd64.deb
55
compute-runtime:
66
deb:
7-
- https://github.com/intel/compute-runtime/releases/download/21.15.19533/intel-gmmlib_20.4.1_amd64.deb
8-
- https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.6812/intel-igc-core_1.0.6812_amd64.deb
9-
- https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.6812/intel-igc-opencl_1.0.6812_amd64.deb
10-
- https://github.com/intel/compute-runtime/releases/download/21.15.19533/intel-opencl_21.15.19533_amd64.deb
11-
- https://github.com/intel/compute-runtime/releases/download/21.15.19533/intel-ocloc_21.15.19533_amd64.deb
12-
- https://github.com/intel/compute-runtime/releases/download/21.15.19533/intel-level-zero-gpu_1.1.19533_amd64.deb
7+
- https://github.com/intel/compute-runtime/releases/download/21.16.19610/intel-gmmlib_20.4.1_amd64.deb
8+
- https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.7041/intel-igc-core_1.0.7041_amd64.deb
9+
- https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.7041/intel-igc-opencl_1.0.7041_amd64.deb
10+
- https://github.com/intel/compute-runtime/releases/download/21.16.19610/intel-opencl_21.16.19610_amd64.deb
11+
- https://github.com/intel/compute-runtime/releases/download/21.16.19610/intel-ocloc_21.16.19610_amd64.deb
12+
- https://github.com/intel/compute-runtime/releases/download/21.16.19610/intel-level-zero-gpu_1.1.19610_amd64.deb
1313
metrics-discovery:
1414
github:
1515
build_path: build

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.25.1
1+
0.26.0

build_utils/get_cl_tracing_headers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import build_utils
55

66
url = "https://github.com/intel/compute-runtime.git"
7-
commit = "1c2dc7031468db66751c9a5e54e0efe2a8397372"
7+
commit = "9839b3049d306500ebb694e2555277eb3ded79e1"
88

99
def postprocess(file_path):
1010
input = open(file_path, "rt")

build_utils/get_iga_headers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import build_utils
55

66
url = "https://github.com/intel/intel-graphics-compiler.git"
7-
commit = "4315b9de66175ae67c4b91498edffd853fe364c4"
7+
commit = "9d211c5f220c71b696368d519a5f482322131a0f"
88

99
def main():
1010
if len(sys.argv) < 3:

build_utils/get_igc_headers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import build_utils
55

66
url = "https://github.com/intel/intel-graphics-compiler.git"
7-
commit = "4315b9de66175ae67c4b91498edffd853fe364c4"
7+
commit = "9d211c5f220c71b696368d519a5f482322131a0f"
88

99
def main():
1010
if len(sys.argv) < 3:

chapters/system_management/LevelZero.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,4 +213,7 @@ ZES_ENABLE_SYSMAN=1 ./<application>
213213
- refer to oneAPI Level Zero Sysman API [documentation](https://spec.oneapi.com/level-zero/latest/sysman/PROG.html) to learn more
214214
215215
## Samples
216-
- [Level Zero System Management](../../samples/ze_sysman)
216+
- [Level Zero System Management](../../samples/ze_sysman)
217+
218+
## Tools
219+
- [System Monitoring Utility](../../tools/sysmon)

samples/ze_gemm/main.cc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,11 +242,10 @@ int main(int argc, char* argv[]) {
242242
status = zeInit(ZE_INIT_FLAG_GPU_ONLY);
243243
PTI_ASSERT(status == ZE_RESULT_SUCCESS);
244244

245-
ze_device_handle_t device = nullptr;
246-
ze_driver_handle_t driver = nullptr;
247-
utils::ze::GetIntelDeviceAndDriver(ZE_DEVICE_TYPE_GPU, device, driver);
245+
ze_device_handle_t device = utils::ze::GetGpuDevice();
246+
ze_driver_handle_t driver = utils::ze::GetGpuDriver();
248247
if (device == nullptr || driver == nullptr) {
249-
std::cout << "Unable to find target device" << std::endl;
248+
std::cout << "Unable to find GPU device" << std::endl;
250249
return 0;
251250
}
252251

samples/ze_hot_kernels/CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ endif()
2121
FindL0Library(zet_hot_kernels)
2222
FindL0Headers(zet_hot_kernels)
2323

24-
if(UNIX)
25-
FindDRMLibrary(zet_hot_kernels)
26-
CheckDRMHeaders(zet_hot_kernels)
27-
endif()
28-
2924
# Loader
3025

3126
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DTOOL_NAME=zet_hot_kernels")

samples/ze_hot_kernels/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ Total Device Time (ns): 172440915
2222
- [Python](https://www.python.org/) (version 2.7 and above)
2323
- [oneAPI Level Zero loader](https://github.com/oneapi-src/level-zero)
2424
- [Intel(R) Graphics Compute Runtime for oneAPI Level Zero and OpenCL(TM) Driver](https://github.com/intel/compute-runtime)
25-
- [libdrm](https://gitlab.freedesktop.org/mesa/drm)
2625

2726
## Build and Run
2827
### Linux

0 commit comments

Comments
 (0)