Giter Site home page Giter Site logo

Comments (11)

shu1chen avatar shu1chen commented on June 8, 2024

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.

feixuedudiao avatar feixuedudiao commented on June 8, 2024

@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.

shu1chen avatar shu1chen commented on June 8, 2024

@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.

feixuedudiao avatar feixuedudiao commented on June 8, 2024

@shu1chen i'm to try. thanks.

from onednn.

feixuedudiao avatar feixuedudiao commented on June 8, 2024

@shu1chen There have a question for omp_num_threads = 4, why set it to 4?

from onednn.

shu1chen avatar shu1chen commented on June 8, 2024

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.

feixuedudiao avatar feixuedudiao commented on June 8, 2024

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.

shu1chen avatar shu1chen commented on June 8, 2024

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.

feixuedudiao avatar feixuedudiao commented on June 8, 2024

@shu1chen
The function of omp_set_num_threads(4) is same to "set OMP_NUM_THREADS=4" for onednn?

from onednn.

shu1chen avatar shu1chen commented on June 8, 2024

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.

feixuedudiao avatar feixuedudiao commented on June 8, 2024

@shu1chen
thanks. I look it as soon.

from onednn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.