Giter Club home page Giter Club logo

Comments (3)

Rbiessy avatar Rbiessy commented on August 28, 2024

Hello,
So it seems the reduction is failing. There are two things you can try:

  • Compile with -DSYCL_PSTL_USE_OLD_ALGO to use a different kind of algorithm in SyclParallelSTL. Please make sure to clean the build directory (in particular the .sycl files) and you can re-run cmake with -DCMAKE_CXX_FLAGS="-DSYCL_PSTL_USE_OLD_ALGO" -DCOMPUTECPP_USER_FLAGS="-DSYCL_PSTL_USE_OLD_ALGO" to add the option for both host and device compiler.
  • Check if the reduction sample in ComputeCpp-sdk passes. If not there may be an issue with the local barrier.

As for why only 2 CPUs are used, I am not sure. I am wondering whether each CPU is seen as a different device. If that's the case it would be an issue as Eigen and SYCL-ML are built to use only one device for now. It would help if you can paste here the output of computecpp_info.

from sycl-ml.

arikere avatar arikere commented on August 28, 2024

reduction in the samples worked fine. I then recompiled SYCL-ML with the suggested flags and it worked fine.
Looks like the code tops out to 2 cores only initially. Once the PCA step/training starts, it utilizes all available cores.

from sycl-ml.

Rbiessy avatar Rbiessy commented on August 28, 2024

Great, that's good to hear!
I'm closing this issue then, feel free to comment in here or create a new one if you have more issues.

from sycl-ml.

Related Issues (3)

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.