Giter Site home page Giter Site logo

Comments (7)

alanw0 avatar alanw0 commented on August 17, 2024

Hi Si,
In Nalu we have our parallel_for loops hard-wired to use Kokkos::Serial because we haven't yet verified that we are thread-safe. I know we need to do that, and will probably do it soon, but haven't yet.
I'm not sure why it can't utilize a trilinos that was built with openmp enabled. I would have thought that even if openmp is enabled, Kokkos::Serial is always available.

Alan

from nalu.

nmhamster avatar nmhamster commented on August 17, 2024

Hey @alanw0 - I agree it should always be available but its something to do with a default assumption somewhere in the code I think (i.e. that the default backend when OpenMP is enabled is != Serial). Let me know when we can start more aggressive OpenMP checking and performance work, we are on hold at the moment due to the above although trying to push MPI only ahead.

from nalu.

sayerhs avatar sayerhs commented on August 17, 2024

@alanw0

Should we be forcing TeamHandleType to use Kokkos::Serial as the execution space in KokkosInterface.h?

typedef typename Kokkos::TeamPolicy<typename Kokkos::DefaultExecutionSpace, DynamicScheduleType>::member_type TeamHandleType;

I suspect this is picking up OpenMP whereas the DeviceTeamPolicy is forced to Kokkos::Serial.

from nalu.

alanw0 avatar alanw0 commented on August 17, 2024

@sayerhs possibly so, that's worth a try, maybe @nmhamster wants to try that in his build to see if it helps.

from nalu.

nmhamster avatar nmhamster commented on August 17, 2024

@sayerhs @alanw0 - I can take a look at that and get back to you. I wanted to check if you were routinely compiling with OpenMP etc but it sounds like you are working on the parallelization etc still. Hope to get back to you with some good news shortly!

from nalu.

sayerhs avatar sayerhs commented on August 17, 2024

@nmhamster Can you please share the CMake doConfig that you are using to compile Trilinos with OpenMP flags?

from nalu.

sayerhs avatar sayerhs commented on August 17, 2024

@nmhamster @alanw0 Please see #157 and let me know if this fixes the compilation issues with Trilinos configured with OpenMP. I have tested this with Trilinos with the following options:

-DTrilinos_ENABLE_OpenMP:BOOL=ON \
-DKokkos_ENABLE_OpenMP:BOOL=ON \

from nalu.

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.