# This is a list of the commands used in the Chapel NVIDIA WSL demo. # These steps assume that you have already installed the NVIDIA driver in Windows # and have enabled WSL2 with an Ubuntu distribution. These should be run in an # Ubuntu terminal. Except for those that are explicitly stated to be added to # the ~/.bashrc file, these commands should not need to be run again after the # initial setup. # Download CUDA wget https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda_11.8.0_520.61.05_linux.run # Install CUDA sudo sh cuda_11.8.0_520.61.05_linux.run # Get Chapel Dependencies sudo apt-get update sudo apt-get install gcc g++ m4 perl python3 python3-dev bash make mawk git pkg-config cmake sudo apt-get install llvm-dev llvm clang libclang-dev libclang-cpp-dev libedit-dev # Setup ENV for CUDA compilation - Add to ~/.bashrc export PATH=/usr/local/cuda-11.8/bin:$PATH export LD_LIBRARY_PATH=/usr/local/cuda-11.8/lib64:$LD_LIBRARY_PATH # Download Chapel wget https://github.com/chapel-lang/chapel/releases/download/2.1.0/chapel-2.1.0.tar.gz tar -xzf chapel-2.1.0.tar.gz # Setup ENV for Chapel compilation - Add to ~/.bashrc export CHPL_LLVM=system export CHPL_LOCALE_MODEL=gpu # Build Chapel cd chapel-2.1.0 # This command adds `chpl` to the PATH and sets CHPL_HOME source util/setchplenv.bash make -j`nproc` cd -