Skip to content
 
 

Repository files navigation

wp1.7-soa-wrapper

Wrapper class with common interface for different data layouts (SoA and AoS).

Requirements

  • A machine with an nvidia GPU and the necessary drivers.
  • Retrieve any further dependencies from this script.

Build and Run the tests (Linux)

git clone https://github.com/cern-nextgen/wp1.7-soa-wrapper.git
cd wp1.7-soa-wrapper
cmake -B build
cmake --build build
ctest --test-dir build --output-on-failure

Container

The following container contains the nvidia container toolkit and the dependencies to build the unit tests.

registry.cern.ch/ngt-wp1.7/wp1.7-soa-wrapper:latest

The corresponding Dockerfile can be found here wp1.7-soa-wrapper-image. Note that you still need to run the container on a machine with nvidia GPU. Once you are within the container, you can follow the steps of the section Build and Run the tests (Linux). Pull the above image and run it with one of the following commands.

Docker

sudo docker run -it --rm --runtime=nvidia --gpus all wp1.7-soa-wrapper:latest bash

Podman

podman run -it --rm --security-opt=label=disable --device nvidia.com/gpu=all wp1.7-soa-wrapper:latest bash

TODO

  • Default initializations
  • Choose between uninitialized, default initialized, and custom initialized arrays
  • Allow putting default values in skeleton struct definition, e.g. by template spcialization
  • Agregate initialization for arrays
  • Don't define closures twice
  • Return classical reference to struct in AoS case
  • Allow classical reference when passing to a function in AoS case

About

Wrapper class to interface with different data layouts (SoA and AoS).

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages