Code Monkey home page Code Monkey logo

Comments (5)

i8run avatar i8run commented on June 2, 2024

Hi amuseoffire,

You should use getNumThreads instead of getMklNumThreads.

The getMklNumThreads() in mkl-java is used for getting the number of threads user defined through java property bigdl.mklNumThreads .

String mklNumThreadsStr = System.getProperty("bigdl.mklNumThreads", "1");

This project is mainly for https://github.com/intel-analytics/BigDL. So it contains some methods/functions which just fit to BigDL.

from bigdl-core.

austin-sandia avatar austin-sandia commented on June 2, 2024

Hi,

Thank you for your response.

I am seeing the same behavior with MKL.getNumThreads(). Here's the code:

println("${MKL.getNumThreads()}")
MKL.setNumThreads(2)
println("AFTER CHANGE")
println("${MKL.getNumThreads()}")

And the output is still this:

1
AFTER CHANGE
1

Any suggestions?

Thanks.

from bigdl-core.

i8run avatar i8run commented on June 2, 2024

Hi,

Thanks for your test. :) It's due to the bug (wrong usage of omp_get_num_threads). I will push the fix soon.

from bigdl-core.

austin-sandia avatar austin-sandia commented on June 2, 2024

Thank you. When might I be able to pick up the fix on maven?

from bigdl-core.

i8run avatar i8run commented on June 2, 2024

Hi, we have pushed to sonatype with 0.4.0-SNAPSHOT. You can try it now. Any question is welcomed.

from bigdl-core.

Related Issues (18)

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.