Comments (11)
Hi, that's possibly because bf16/fp16 is not supported on the hardware. The hardware limitations session in oneDNN developer guide lists the minimal supported instruction set architecture (ISA) for the data types. You may find the supported ISA in the specifications of Intel(R) Core(TM) i7-10700 CPU.
from onednn.
@shu1chen, i have a question, for [Intel(R) Core(TM) i7-10700 CPU], rumtime is how select with omp, tbb and seq? i test the performance with seq. but i feel the performance is not good. If i run the convoluton example for runtime with omp, how can i set the omp_num_thread? thanks.
from onednn.
@feixuedudiao oneDNN CPU uses OpenMP threading by default. You may also set through -DONEDNN_CPU_RUNTIME=OMP
when building oneDNN (See details).
On Windows, you may use set OMP_NUM_THREADS=4
to set the OMP thread number to 4, see more details in OpenMP Environment Variables.
from onednn.
@shu1chen i'm to try. thanks.
from onednn.
@shu1chen There have a question for omp_num_threads = 4, why set it to 4?
from onednn.
There have a question for omp_num_threads = 4, why set it to 4?
@feixuedudiao It's an example. You may set the desired number of cores to use
from onednn.
oh, thanks. But how i can set the omp_nump_thread with the api in code. I find a function with get_num_cores, but don't fin set_num_cores.
from onednn.
oh, thanks. But how i can set the omp_nump_thread with the api in code. I find a function with get_num_cores, but don't fin set_num_cores.
It might be omp_set_num_threads that you're looking for. Please see the OpenMP Functions in the doc.
from onednn.
@shu1chen
The function of omp_set_num_threads(4) is same to "set OMP_NUM_THREADS=4" for onednn?
from onednn.
The function of omp_set_num_threads(4) is same to "set OMP_NUM_THREADS=4" for onednn?
Yes, oneDNN CPU relies on OpenMP threading in this case. Both OMP_NUM_THREADS
and omp_set_num_threads
are from OMP and they are supposed to be the same, which is also shown in the OpenMP Environment Variables link.
from onednn.
@shu1chen
thanks. I look it as soon.
from onednn.
Related Issues (20)
- Bad speed for f32:s8:f32 matmul HOT 11
- How can I create a matmul primitive with A16W8 (active 16bits, weight 8bits) configuration? HOT 2
- [Proposal] Add cpu alloc/free callback to support customlize memory alloctor APIs. HOT 3
- Assertion `dynamic_cast<derived_type>(base) == base' failed HOT 3
- Why do the "reorder" operations of the same operator take very different times on the CPU and GPU platforms? HOT 3
- [ACL] 3D convolution kernel `NEConv3D` is not integrated
- INT8 Performance difference between OneDNN v2.6.3 and v3.4.1 HOT 1
- Possible null pointer dereference in cpu_reorder_pd
- Assertion failure in brgemm in debug build on G3 aarch64 machine HOT 2
- question about matmul_perf example HOT 2
- Information regarding threading backend in oneDNN HOT 1
- could not create a primitive descriptor iterator HOT 5
- cpu: s390x: build fails with saturate was not declared in this scope HOT 7
- Enabling onednn Graph API from framework level HOT 1
- Conditions for Running brgemm_convolution_fwd_t and jit_avx512_common_convolution_fwd_t in oneDNN HOT 3
- oneDNN with Nvidia GPU supprt
- batchnorm requires consistent in- and output mem format_tags HOT 1
- Build fail with CPU_RUNTIME=SEQ and graph compiler backend HOT 2
- OneDNN graph APi for LLM generation HOT 7
- Understand the document on block level APIs(https://github.com/oneapi-src/oneDNN/pull/1852) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onednn.