Skip to content

Commit 1504ec1

Browse files
committed
final updates and documentation
1 parent 38c6517 commit 1504ec1

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

cliloader/cliloader.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ static bool parseArguments(int argc, char *argv[])
381381
printMetrics();
382382
return false;
383383
}
384-
else if (!strcmp(argv[i], "--metric-devices"))
384+
else if (!strcmp(argv[i], "--mdapi-devices"))
385385
{
386386
printMetricDevices();
387387
return false;
@@ -604,7 +604,7 @@ static bool parseArguments(int argc, char *argv[])
604604
" --debug Enable cliloader Debug Messages\n"
605605
" --controls Print All Controls and Exit\n"
606606
" --metrics Print All MDAPI Metrics and Exit\n"
607-
" --metric-devices Print All MDAPI Devices and Exit\n"
607+
" --mdapi-devices Print All MDAPI Devices and Exit\n"
608608
#if defined(_WIN32)
609609
" --no-DLL-load Do not load the Intercept DLL into the child process\n"
610610
#else // not Windows

docs/mdapi.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,25 @@ These controls can be enabled via `cliloader`, by specifying the `--mdapi-tbs` o
8989

9090
* https://github.com/intel/metrics-library
9191

92+
* On Linux, some GPUs (specifically the "Gen11" and "Gen12"-based GPUs,
93+
including the Arc A-series "Alchemist" discrete GPUs) require the out-of-tree
94+
i915 kernel mode driver.
95+
Please refer to the [installation docs](https://dgpu-docs.intel.com/) for
96+
instructions how to install the out-of-tree kernel mode driver.
9297
* On OSX, the path to the MDAPI library should be set manually with
9398
`DevicePerfCounterLibName` control. The library is named `libigdmd.dylib` and
9499
it usually resides under `/System/Library/Extensions/AppleIntel<CPU NAME>GraphicsMTLDriver.bundle/Contents/MacOS/libigdmd.dylib`,
95100
where `<CPU NAME>` is a short name of your CPU generation. For example, on Kaby
96101
Lake machines `<CPU NAME>` is `KBL`. You can also add path to `libigdmd.dylib`
97102
library to `DYLD_LIBRARY_PATH` environment library, so that it can be found system-wide.
103+
* On systems with multiple GPUs, metrics may only be collected for one GPU at a
104+
time. Use the control **DevicePerfCounterAdapterIndex** to choose which GPU to
105+
collect metrics for. This control may also be set via `cliloader`, by passing
106+
the `--mdapi-device` option.
107+
* To enumerate the available GPUs for metric collection and their adapter
108+
indices, use `cliloader` and pass the `--mdapi-devices` option.
109+
* To enumerate available metrics, use `cliloader` and pass the `--metrics`
110+
option.
98111
* Collecting MDAPI metrics currently requires elevated privileges
99112
because metrics are collected system-wide.
100113
* On Linux, MDAPI metrics may be enabled for non-root users

0 commit comments

Comments
 (0)