kokkos/kokkos-tutorials
关于
Tutorials for the Kokkos C++ Performance Portability Programming Ecosystem
学习与教育实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- +1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Kokkos Tutorials
This repository contains tutorials for the Kokkos C++ programming model (github.com/kokkos/kokkos).
The Kokkos Lectures
The most comprehensive recording of our tutorials - the The Kokkos Lectures - are available on YouTube. For more information on that, including the Slides and Recordings visit: The Kokkos Lectures Wiki
Building the slides
You need a recent Latex version installed on the system with the following packages: pgffor, beramono, comment, eso-pic, fontenc, inputenc, listings, lstlinebgrd, minted, paralist, pgf, pgfplotstable, soul, subfig, textpos, tikz, ulem, xcolor, and xparse.
To compile the slides, please run
cd Content/Presentations/
make
Old Slides
The old slides are available in this repository under the legacy tag.
Building the Tutorials
All the tutorial folders can be built using CMake.
CMake
CMake can build against an installed Kokkos library or download one automatically using FetchContent.
Without any Kokkos already installed, from an exercise directory, one can run the following:
cmake -B build_dir # -DKokkos_* options
cmake --build build_dir
Kokkos options are described in CMake options.
For example, OpenMP CPU exercises can be built as:
cmake -B build_openmp -DKokkos_ENABLE_OPENMP=ON
cmake --build build_openmp
On Mac, if OpenMP is not available, one can use the Threads backend:
cmake -B build_threads -DKokkos_ENABLE_THREADS=ON
cmake --build build_threads
For a NVIDIA gpu, using gpu arch autodetection:
cmake -B build_cuda -DKokkos_ENABLE_CUDA=ON
cmake --build build_cuda
To pass an already installed Kokkos library, you can use classical CMake variables,
such as Kokkos_ROOT, or CMAKE_PREFIX_PATH.
探索相关项目
加载中…