Fulltext PDF 3,1 MB

Fulltext PDF 3,1 MB

alpaka Parallel Programming – Online Tutorial Lecture 00 – Getting Started with alpaka Lesson 04: Installation www.casus.science Lesson 04: Installation How to download alpaka ● Install git for your operating system: ● Linux: sudo dnf install git (RPM) or sudo apt install git (DEB) ● macOS: Enter git --version in your terminal, you will be asked if you want to install git ● Windows: Download the installer from https://git-scm.com/download/win ● Open the terminal (Linux / macOS) or PowerShell (Windows) ● Navigate to a directory of your choice: cd /path/to/some/directory ● Download alpaka: git clone -b release-0.5.0 https://github.com/alpaka-group/alpaka.git alpaka Parallel Programming – Online Tutorial – Lesson 04: Installation | 2 Lesson 04: Installation Install alpaka’s dependencies ● alpaka only requires Boost and a modern C++ compiler (g++, clang++, Visual C++, …) ● Linux: ● sudo dnf install boost-devel (RPM) ● sudo apt install libboost-all-dev (DEB) ● macOS: ● brew install boost (Using Homebrew, https://brew.sh) ● sudo port install boost (Using MacPorts, https://macports.org) ● Windows: vcpkg install boost (Using vcpkg, https://github.com/microsoft/vcpkg) ● Depending on your target platform you may need additional packages ● NVIDIA GPUs: CUDA Toolkit (https://developer.nvidia.com/cuda-toolkit) ● AMD GPUs: ROCm / HIP (https://rocmdocs.amd.com/en/latest/index.html) alpaka Parallel Programming – Online Tutorial – Lesson 04: Installation | 3 Lesson 04: Installation Preparing alpaka for installation, Part 1 ● CMake is the preferred system for building and installing ● Linux: sudo dnf install cmake (RPM) or sudo apt install cmake (DEB) ● macOS and Windows: Download the installer from https://cmake.org/download/ ● In the terminal / PowerShell, switch to the downloaded alpaka directory: cd /path/to/alpaka ● Create a build directory and switch to it: mkdir build cd build alpaka Parallel Programming – Online Tutorial – Lesson 04: Installation | 4 Lesson 04: Installation Preparing alpaka for installation, Part 2 ● In the build directory use CMake for configuration (replace the install prefix with an actual path): cmake -DCMAKE_INSTALL_PREFIX=/some/other/path/ .. ● Your alpaka installation will later reside in /some/other/path/ ● If you are content with the default directories you can omit the install prefix ● This requires administrator privileges! ● This will result in a system-wide installation! ● On Linux and macOS the default directory will be /usr/local ● On Windows the default directory will be C:\Program Files alpaka Parallel Programming – Online Tutorial – Lesson 04: Installation | 5 Lesson 04: Installation Install alpaka ● Execute the installation command (note the dot): cmake --install . ● You should now have a complete alpaka installation in the directory you chose earlier ● Did you encounter problems or errors? ● Check the documentation: https://alpaka.readthedocs.io/en/latest/install/instructions.html ● Still having problems? Please report them here: https://github.com/alpaka-group/alpaka/issues alpaka Parallel Programming – Online Tutorial – Lesson 04: Installation | 6 www.casus.science.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    7 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us