File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ oneDNN supports two modes for handling scratchpads:
54
54
memory is shared across primitives. This mode minimizes the
55
55
amount of memory needed for scratchpads at the application level. The global
56
56
scratchpad is freed when all the primitives referencing it are destroyed.
57
+
57
58
@warning
58
59
In this mode, primitives can be created and executed in parallel but must
59
60
be executed in the same thread they were created in. Executing primitives
@@ -65,6 +66,7 @@ oneDNN supports two modes for handling scratchpads:
65
66
private scratchpad memory. The scratchpad memory is freed when its
66
67
primitive is destroyed. This mode can lead to larger memory footprint when
67
68
compared to ONEDNN_ENABLE_CONCURRENT_EXEC=OFF.
69
+
68
70
@warning
69
71
In this mode, primitives can be created in one thread and executed in
70
72
another. Also, different primitives can be run concurrently.
Original file line number Diff line number Diff line change 1
1
/* ******************************************************************************
2
- * Copyright 2019-2020 Intel Corporation
2
+ * Copyright 2019-2022 Intel Corporation
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -182,7 +182,8 @@ void getting_started_tutorial(engine::kind engine_kind) {
182
182
// / To initialize the @ref dnnl::memory::desc, we need to pass:
183
183
// / 1. The tensor's dimensions, **the semantic order** of which is
184
184
// / defined by **the primitive** that will use this memory
185
- // / (descriptor). Which leads to the following:
185
+ // / (descriptor).
186
+ // /
186
187
// / @warning
187
188
// / Memory descriptors and objects are not aware of any meaning of
188
189
// / the data they describe or contain.
@@ -255,6 +256,7 @@ void getting_started_tutorial(engine::kind engine_kind) {
255
256
// / as required by CNN primitives. To define the physical memory format,
256
257
// / the strides are passed as the third parameter. Note that the order of
257
258
// / the strides corresponds to the order of the tensor's dimensions.
259
+ // /
258
260
// / @warning
259
261
// / Using the wrong order might lead to incorrect results or even a
260
262
// / crash.
You can’t perform that action at this time.
0 commit comments