-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sync GPU dependencies with AMReX (#3010)
this pulls in the new sparse libraries
- Loading branch information
Showing
6 changed files
with
49 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Copyright 2020-2022 Axel Huebl | ||
# | ||
# License: BSD-3-Clause-LBNL | ||
|
||
set -eu -o pipefail | ||
|
||
# `man apt.conf`: | ||
# Number of retries to perform. If this is non-zero APT will retry | ||
# failed files the given number of times. | ||
echo 'Acquire::Retries "3";' | sudo tee /etc/apt/apt.conf.d/80-retries | ||
|
||
sudo apt-get -qqq update | ||
sudo apt-get install -y \ | ||
build-essential \ | ||
ca-certificates \ | ||
cmake \ | ||
g++ \ | ||
gfortran \ | ||
gnupg \ | ||
libopenmpi-dev \ | ||
openmpi-bin \ | ||
pkg-config \ | ||
wget | ||
|
||
VERSION_DOTTED=${1-12.0} && VERSION_DASHED=$(sed 's/\./-/' <<< $VERSION_DOTTED) | ||
curl -O https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-keyring_1.0-1_all.deb | ||
sudo dpkg -i cuda-keyring_1.0-1_all.deb | ||
sudo apt-get update | ||
sudo apt-get install -y \ | ||
cuda-command-line-tools-$VERSION_DASHED \ | ||
cuda-compiler-$VERSION_DASHED \ | ||
cuda-cupti-dev-$VERSION_DASHED \ | ||
cuda-minimal-build-$VERSION_DASHED \ | ||
cuda-nvml-dev-$VERSION_DASHED \ | ||
cuda-nvtx-$VERSION_DASHED \ | ||
libcublas-dev-$VERSION_DASHED \ | ||
libcufft-dev-$VERSION_DASHED \ | ||
libcurand-dev-$VERSION_DASHED \ | ||
libcusparse-dev-$VERSION_DASHED | ||
sudo ln -s cuda-$VERSION_DOTTED /usr/local/cuda |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters