forked from ECP-WarpX/WarpX
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
83 changed files
with
1,945 additions
and
872 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Copyright 2020 The WarpX Community | ||
# | ||
# License: BSD-3-Clause-LBNL | ||
# Authors: Axel Huebl | ||
|
||
# search recursive inside a folder if a file contains tabs | ||
# | ||
# @result 0 if no files are found, else 1 | ||
# | ||
|
||
set -eu -o pipefail | ||
|
||
# Ref.: https://rocmdocs.amd.com/en/latest/Installation_Guide/Installation-Guide.html#ubuntu | ||
wget -q -O - http://repo.radeon.com/rocm/rocm.gpg.key \ | ||
| sudo apt-key add - | ||
echo 'deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ xenial main' \ | ||
| sudo tee /etc/apt/sources.list.d/rocm.list | ||
|
||
echo 'export PATH=$PATH:/opt/rocm/bin:/opt/rocm/profiler/bin:/opt/rocm/opencl/bin' \ | ||
| sudo tee -a /etc/profile.d/rocm.sh | ||
# we should not need to export HIP_PATH=/opt/rocm/hip with those installs | ||
|
||
sudo apt-get update | ||
|
||
# Ref.: https://rocmdocs.amd.com/en/latest/Installation_Guide/Installation-Guide.html#installing-development-packages-for-cross-compilation | ||
# meta-package: rocm-dkms | ||
# OpenCL: rocm-opencl | ||
# other: rocm-dev rocm-utils | ||
sudo apt-get install -y --no-install-recommends \ | ||
build-essential \ | ||
gfortran \ | ||
libnuma-dev \ | ||
libopenmpi-dev \ | ||
openmpi-bin \ | ||
rocm-dev \ | ||
rocrand | ||
|
||
# activate | ||
# | ||
source /etc/profile.d/rocm.sh | ||
hipcc --version | ||
|
||
# cmake-easyinstall | ||
# | ||
sudo curl -L -o /usr/local/bin/cmake-easyinstall https://git.io/JvLxY | ||
sudo chmod a+x /usr/local/bin/cmake-easyinstall | ||
export CEI_SUDO="sudo" |
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
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
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
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
Oops, something went wrong.