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
Copy file name to clipboardexpand all lines: doc/build/build_options.md
+12
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,7 @@ oneDNN supports the following build-time options.
24
24
| ONEDNN_ENABLE_PRIMITIVE |**ALL**, PRIMITIVE_NAME | Specifies a set of functionality to be available based on primitives |
25
25
| ONEDNN_ENABLE_PRIMITIVE_CPU_ISA |**ALL**, CPU_ISA_NAME | Specifies a set of functionality to be available for CPU backend based on CPU ISA |
26
26
| ONEDNN_ENABLE_PRIMITIVE_GPU_ISA |**ALL**, GPU_ISA_NAME | Specifies a set of functionality to be available for GPU backend based on GPU ISA |
27
+
| ONEDNN_ENABLE_GEMM_KERNELS_ISA |**ALL**, NONE, ISA_NAME | Specifies a set of functionality to be available for GeMM kernels for CPU backend based on ISA |
27
28
| ONEDNN_EXPERIMENTAL | ON, **OFF**| Enables [experimental features](@ref dev_guide_experimental) |
28
29
| ONEDNN_VERBOSE |**ON**, OFF | Enables [verbose mode](@ref dev_guide_verbose) |
29
30
| ONEDNN_AARCH64_USE_ACL | ON, **OFF**| Enables integration with Arm Compute Library for AArch64 builds |
@@ -109,6 +110,17 @@ always be available. Example that enables XeLP and XeHP set:
109
110
-DONEDNN_ENABLE_PRIMITIVE_GPU_ISA=XELP;XEHP
110
111
```
111
112
113
+
#### ONEDNN_ENABLE_GEMM_KERNELS_ISA
114
+
This option supports several values: `ALL` (the default) which enables all
115
+
ISA kernels from x64/gemm folder, `NONE` which disables all kernels and removes
116
+
correspondent interfaces, or one of `SSE41`, `AVX2`, and `AVX512`. Values are
117
+
linearly ordered as `SSE41` < `AVX2` < `AVX512`. When specified, selected ISA
118
+
and all ISA that are "smaller" will be available. Example that leaves SSE41 and
119
+
AVX2 sets, but removes AVX512 and AMX kernels:
120
+
```
121
+
-DONEDNN_ENABLE_GEMM_KERNELS_ISA=AVX2
122
+
```
123
+
112
124
## CPU Options
113
125
Intel Architecture Processors and compatible devices are supported by
114
126
oneDNN CPU engine. The CPU engine is built by default but can be disabled
0 commit comments