Installation¶
Clone alpaka from github.com
git clone https://github.com/alpaka-group/alpaka
cd alpaka
Install alpaka
# git clone https://github.com/alpaka-group/alpaka
# cd alpaka
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/install/ ..
cmake --install .
Configure Accelerators
# ..
cmake -DALPAKA_ACC_GPU_CUDA_ENABLE=ON ..
Build an example
# ..
cmake -Dalpaka_BUILD_EXAMPLES=ON ..
make vectorAdd
./example/vectorAdd/vectorAdd # execution
Build and run tests
# ..
cmake -DBUILD_TESTING=ON ..
make
ctest