Code Monkey home page Code Monkey logo

nbody-alpaka's People

Contributors

tu-maurice avatar vincentridder avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

nbody-alpaka's Issues

Simulation class uses one accelerator for kernels with different Dimensions

The simulation class in branch simulation-class utilizes a template TAcc for both kernels, which might not work because the two kernels we have use different indexing dimensions.
The Accelerator type however needs this dimension to be specified.
I'm not sure if a typename can handle a template. That way we could specify indexing dimension and type later.

File in question: simulation.hpp

force-matrix-test: incomplete type GetWorkDiv

I've added the usage of shared mem in the branch sharedmem-force-matrix-kernel.

After fixing most of the errors I am stuck with the last one:

(...)/tests/forceMatrixKernel/forcematrix_test.cpp:243:17:   required from here
(...)/alpaka/include/alpaka/workdiv/Traits.hpp:73:29: error: incomplete type ‘alpaka::workdiv::traits::GetWorkDiv<alpaka::acc::AccCpuSerial<std::integral_
constant<long unsigned int, 2ul>, long unsigned int>, alpaka::origin::Block, alpaka::origin::Thread, void>’ used in nested name specifier
                 ::getWorkDiv(

The part of the code where I'm calling the getValidWorkDiv to create the work division hasn't changed. So I'm guessing it's either some class order issue or there is another way of creating a workdiv if the kernel uses extern shared memory.

Add shared memory code anew.

Shared memory code might have little to no effect on performance on CUDA hardware but it might lead to other results on different hardware.

Said code can be found in commit 3a6f863

Calculate only half of the force matrix

By using F_ij = -F_ji the force matrix can be reduced to half its size.
This can be achieved either by using the already proposed chessboard pattern or by only calculating one side of the matrix resulting in a "triangle".

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.