simd: Fix a bug in the deduction of the default vector width (#8548)
- Fix a bug in the deduction of the simd vector width
- Set
expected_sizeto 1 when one of the backends defaulting to the scalar abi is activated- Use
CHAR_BITinstead of a magic number
Signed-off-by: Trévis Morvany trevismorvany@gmail.com Co-authored-by: Damien L-G dalg24+github@gmail.com
Kokkos: Core Libraries
Kokkos Core implements a programming model in C++ for writing performance portable applications targeting all major HPC platforms. For that purpose it provides abstractions for both parallel execution of code and data management. Kokkos is designed to target complex node architectures with N-level memory hierarchies and multiple types of execution resources. It currently can use CUDA, HIP, SYCL, HPX, OpenMP and C++ threads as backend programming models with several other backends in development.
Kokkos Core is part of the Kokkos C++ Performance Portability Programming Ecosystem.
Kokkos is a Linux Foundation project.
Learning about Kokkos
To start learning about Kokkos:
Kokkos Lectures: they contain a mix of lecture videos and hands-on exercises covering all the important capabilities.
Programming guide: contains in “narrative” form a technical description of the programming model, machine model, and the main building blocks like the Views and parallel dispatch.
API reference: organized by category, i.e., core, algorithms and containers or, if you prefer, in alphabetical order.
Use cases and Examples: a serie of examples ranging from how to use Kokkos with MPI to Fortran interoperability.
Obtaining Kokkos
The latest release of Kokkos can be obtained from the GitHub releases page.
The current release is 4.7.01.
To clone the latest development version of Kokkos from GitHub:
Building Kokkos
To build Kokkos, you will need to have a C++ compiler that supports C++17 or later. All requirements including minimum and primary tested compiler versions can be found here.
Building and installation instructions are described here.
You can also install Kokkos using Spack:
spack install kokkos. Available configuration options can be displayed usingspack info kokkos.For the complete documentation: kokkos.org/kokkos-core-wiki/
Support
For questions find us on Slack: https://kokkosteam.slack.com or open a GitHub issue.
For non-public questions send an email to: crtrott(at)sandia.gov
Contributing
Please see this page for details on how to contribute.
Citing Kokkos
Please see the following page.
License
Under the terms of Contract DE-NA0003525 with NTESS, the U.S. Government retains certain rights in this software.
The full license statement used in all headers is available here or here.