-
Notifications
You must be signed in to change notification settings - Fork 62
/
Dockerfile
75 lines (66 loc) · 2.44 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Copyright (c) Lawrence Livermore National Security, LLC and other Ascent
# Project developers. See top-level LICENSE AND COPYRIGHT files for dates and
# other details. No copyright assignment is required to contribute to Ascent.
FROM ubuntu:20.04
# add sudo to base ubuntu container
# so we can install additional packages as
# non-root, but admin default user on azure pipelines
RUN apt-get update && apt-get -y install sudo
RUN apt-get update && apt-get -y install wget gnupg
# tzdata install wants to ask questions, so handled as sep case
RUN DEBIAN_FRONTEND="noninteractive" apt-get -y install tzdata
#
# install rocm (recipe from warpx)
# https://github.com/ECP-WarpX/WarpX/blob/development/.github/workflows/dependencies/hip.sh
#
# Ref.: https://rocmdocs.amd.com/en/latest/Installation_Guide/Installation-Guide.html#ubuntu
RUN wget -q -O - http://repo.radeon.com/rocm/rocm.gpg.key \
| sudo apt-key add -
RUN echo 'deb [arch=amd64] http://repo.radeon.com/rocm/apt/6.0/ ubuntu main' \
| sudo tee /etc/apt/sources.list.d/rocm.list
RUN echo 'export PATH=/opt/rocm/llvm/bin:/opt/rocm/bin:/opt/rocm/profiler/bin:/opt/rocm/opencl/bin:$PATH' \
| sudo tee -a /etc/profile.d/rocm.sh
# install std packages
# Notes:
# kmod -- hip requires lsmod
# liblocale-codes-perl -- hip uses perl, if locale bad, life isn't good
# language-pack-en -- hip uses perl, if locale bad, life isn't good
# for 6.0, `rocm` - new meta package
RUN apt-get update && apt-get -y install \
binutils \
gcc \
g++ \
gfortran \
python \
perl \
git \
git-lfs \
curl \
wget \
tar \
unzip \
build-essential \
libncurses-dev \
libssl-dev \
libblas-dev \
liblapack-dev \
liblapacke-dev \
zlib1g-dev \
libgdbm-dev \
libreadline-dev \
libsqlite3-dev \
libbz2-dev \
mpich \
libmpich-dev \
libnuma-dev \
rocm-dev \
rocfft-dev \
rocprim-dev \
rocrand-dev \
hiprand-dev \
openssh-server \
language-pack-en \
liblocale-codes-perl \
vim
#RUN apt-get update && apt-get -y install --no-install-recommends
# rocm-hip-sdk, vs all of these packages?