GithubHelp home page GithubHelp logo

Comments (8)

isazi avatar isazi commented on July 28, 2024

Already committed the C++ implementation of the first loop (a1).

from fesom2.

isazi avatar isazi commented on July 28, 2024

Done also with the second loop (a2). Committed all code, it compiles but it's not tested.

from fesom2.

goord avatar goord commented on July 28, 2024

Fortran refactoring has been validated on cartesius

from fesom2.

isazi avatar isazi commented on July 28, 2024

Should not the selection of using or not the GPU come from the Fortran side? I believe it's more flexible to have fesom2-accelerate making available both reference and accelerated versions of functions at the same time (also to avoid recompiling it for each test) and let the Fortran side pick which function to call, possibly in accordance with a user defined parameter.

from fesom2.

goord avatar goord commented on July 28, 2024

Yes the preprocessor switch should be in fesom, I checked this in yesterday evening. There is no branch for the GPU call yet though, it has yet to be inserted. And the reference code needs to be tested of course, it should be bitwise the same as the fortran code I think

from fesom2.

isazi avatar isazi commented on July 28, 2024

Agreed the first step should be to test the reference code to check if 1) we understand the code correctly, and 2) if the data sharing between the two sides work. I am also writing a code generator for the first kernel, to use kernel_tuner for the tuning.

from fesom2.

isazi avatar isazi commented on July 28, 2024

CUDA code for the first loop written and tested, now just need to include it in the C interface.

from fesom2.

isazi avatar isazi commented on July 28, 2024

CUDA code for the second loop also written, I'll write the C interface today.

from fesom2.

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.