1
- #============================================================================== =
2
- # Copyright 2018- 2025 Intel Corporation
1
+ #== == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == =
2
+ #Copyright 2018 - 2025 Intel Corporation
3
3
#
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
4
+ #Licensed under the Apache License, Version 2.0(the "License");
5
+ #you may not use this file except in compliance with the License.
6
+ #You may obtain a copy of the License at
7
7
#
8
- # http://www.apache.org/licenses/LICENSE-2.0
8
+ #http: //www.apache.org/licenses/LICENSE-2.0
9
9
#
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
- #============================================================================== =
10
+ #Unless required by applicable law or agreed to in writing, software
11
+ #distributed under the License is distributed on an "AS IS" BASIS,
12
+ #WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ #See the License for the specific language governing permissions and
14
+ #limitations under the License.
15
+ #== == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == =
16
16
17
- # Manage different library options
18
- #============================================================================== =
17
+ #Manage different library options
18
+ #== == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == =
19
19
20
- if (options_cmake_included)
20
+ if (options_cmake_included)
21
21
return ()
22
22
endif ()
23
23
set (options_cmake_included true )
@@ -26,14 +26,18 @@ if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
26
26
set (DNNL_IS_MAIN_PROJECT TRUE )
27
27
endif ()
28
28
29
- # ====== ==
30
- # Features
31
- # ====== ==
29
+ #== == == ==
30
+ #Features
31
+ #== == == ==
32
32
33
33
option (DNNL_VERBOSE
34
34
"allows oneDNN be verbose whenever ONEDNN_VERBOSE
35
35
environment variable set to 1" ON ) # enabled by default
36
36
37
+ option (DNNL_AARCH64_MATMUL_SRC_QUANT
38
+ "allows oneDNN to use dynamic quantisation for source(A) matrix when
39
+ environment variable set to 1" OFF ) # disabled by default
40
+
37
41
option (DNNL_ENABLE_CONCURRENT_EXEC
38
42
"disables sharing a common scratchpad between primitives.
39
43
This option must be turned ON if there is a possibility of executing
@@ -42,7 +46,7 @@ option(DNNL_ENABLE_CONCURRENT_EXEC
42
46
OFF ) # disabled by default
43
47
44
48
option (DNNL_ENABLE_PRIMITIVE_CACHE "enables primitive cache." ON )
45
- # enabled by default
49
+ # enabled by default
46
50
47
51
option (DNNL_ENABLE_MAX_CPU_ISA
48
52
"enables control of CPU ISA detected by oneDNN via DNNL_MAX_CPU_ISA
@@ -58,9 +62,9 @@ option(ONEDNN_ENABLE_GRAPH_DUMP "enables control of dumping graph artifacts via
58
62
ONEDNN_GRAPH_DUMP environment variable. The option and feature are valid only
59
63
when ONEDNN_BUILD_GRAPH is ON" OFF )
60
64
61
- # ============================ =
62
- # Building properties and scope
63
- # ============================ =
65
+ #== == == == == == == == == == == == == == =
66
+ #Building properties and scope
67
+ #== == == == == == == == == == == == == == =
64
68
65
69
set (DNNL_LIBRARY_TYPE "SHARED" CACHE STRING
66
70
"specifies whether oneDNN library should be SHARED or STATIC" )
@@ -169,9 +173,9 @@ set(DNNL_AMD_SYCL_KERNELS_TARGET_ARCH "" CACHE STRING
169
173
stops to require specifying the target architecture. After removing the option
170
174
the generic SYCL kernels will always be enabled for AMD vendor." )
171
175
172
- # ============ =
173
- # Optimizations
174
- # ============ =
176
+ #== == == == == == =
177
+ #Optimizations
178
+ #== == == == == == =
175
179
176
180
set (DNNL_ARCH_OPT_FLAGS "HostOpts" CACHE STRING
177
181
"specifies compiler optimization flags (see below for more information).
@@ -230,13 +234,13 @@ set(ONEDNN_EXPERIMENTAL_GRAPH_COMPILER_CPU_LLVM_CONFIG "AUTO" CACHE STRING
230
234
set (ONEDNN_EXPERIMENTAL_GRAPH_COMPILER_CPU_JIT "builtin" CACHE STRING
231
235
"the optional JIT backends for graph-compiler: llvm;c;builtin" )
232
236
233
- # ==================== ==
234
- # Profiling capabilities
235
- # ==================== ==
237
+ #== == == == == == == == == == ==
238
+ #Profiling capabilities
239
+ #== == == == == == == == == == ==
236
240
237
- # TODO: restore default to ON after the issue with linking C files by
238
- # Intel oneAPI DPC++ Compiler is fixed. Currently this compiler issues a warning
239
- # when linking object files built from C and C++ sources.
241
+ #TODO : restore default to ON after the issue with linking C files by
242
+ #Intel oneAPI DPC++ Compiler is fixed.Currently this compiler issues a warning
243
+ #when linking object files built from C and C++ sources.
240
244
option (DNNL_ENABLE_JIT_PROFILING
241
245
"Enable registration of oneDNN kernels that are generated at
242
246
runtime with VTune Profiler (on by default). Without the
@@ -250,9 +254,9 @@ option(DNNL_ENABLE_ITT_TASKS
250
254
on those ITT tasks and show corresponding timeline information."
251
255
ON )
252
256
253
- # ================== =
254
- # Engine capabilities
255
- # ================== =
257
+ #== == == == == == == == == =
258
+ #Engine capabilities
259
+ #== == == == == == == == == =
256
260
257
261
set (DNNL_CPU_RUNTIME "OMP" CACHE STRING
258
262
"specifies the threading runtime for CPU engines;
@@ -305,8 +309,8 @@ set(OPENCLROOT "" CACHE STRING
305
309
"path to Intel SDK for OpenCL applications.
306
310
Use this option to specify custom location for OpenCL." )
307
311
308
- # TODO: move logic to other cmake files?
309
- # Shortcuts for SYCL/ DPC++
312
+ #TODO : move logic to other cmake files ?
313
+ #Shortcuts for SYCL / DPC++
310
314
if (DNNL_CPU_RUNTIME STREQUAL "DPCPP" OR DNNL_CPU_RUNTIME STREQUAL "SYCL" )
311
315
set (DNNL_CPU_SYCL true )
312
316
else ()
@@ -346,18 +350,18 @@ if(DNNL_SYCL_HIP AND NOT "${DNNL_AMD_SYCL_KERNELS_TARGET_ARCH}" STREQUAL "")
346
350
set (DNNL_AMD_ENABLE_SYCL_KERNELS TRUE )
347
351
endif ()
348
352
349
- # ============ =
350
- # Miscellaneous
351
- # ============ =
353
+ #== == == == == == =
354
+ #Miscellaneous
355
+ #== == == == == == =
352
356
353
357
option (BENCHDNN_USE_RDPMC
354
358
"enables rdpms counter to report precise cpu frequency in benchdnn.
355
359
CAUTION: may not work on all cpus (hence disabled by default)"
356
360
OFF ) # disabled by default
357
361
358
- # ======================== =
359
- # Developer and debug flags
360
- # ======================== =
362
+ #== == == == == == == == == == == == =
363
+ #Developer and debug flags
364
+ #== == == == == == == == == == == == =
361
365
362
366
set (DNNL_USE_CLANG_SANITIZER "" CACHE STRING
363
367
"instructs build system to use a Clang sanitizer. Possible values:
@@ -398,9 +402,9 @@ option(DNNL_DISABLE_GPU_REF_KERNELS
398
402
"builds oneDNN with only optimized kernels for GPU compute
399
403
primitives" OFF )
400
404
401
- # ============================ =
402
- # External BLAS library options
403
- # ============================ =
405
+ #== == == == == == == == == == == == == == =
406
+ #External BLAS library options
407
+ #== == == == == == == == == == == == == == =
404
408
405
409
set (DNNL_BLAS_VENDOR "NONE" CACHE STRING
406
410
"Use an external BLAS library. Valid values:
@@ -416,9 +420,9 @@ set(DNNL_BLAS_VENDOR "NONE" CACHE STRING
416
420
installation. This vendor is supported for performance analysis
417
421
purposes only." )
418
422
419
- # ============================================ ==
420
- # AArch64 optimizations with Arm Compute Library
421
- # ============================================ ==
423
+ #== == == == == == == == == == == == == == == == == == == == == == ==
424
+ #AArch64 optimizations with Arm Compute Library
425
+ #== == == == == == == == == == == == == == == == == == == == == == ==
422
426
423
427
option (DNNL_AARCH64_USE_ACL "Enables use of AArch64 optimised functions
424
428
from Arm Compute Library.
0 commit comments