forked from xuhuisheng/rocm-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
156 lines (122 loc) · 4.38 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
FROM ubuntu:22.04 AS rocm-build
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y \
build-essential \
ninja-build \
cmake \
git \
git-lfs \
repo \
libnuma-dev \
python3 \
python3-pip
RUN mkdir -p /source \
&& cd /source \
&& mkdir rocm-build \
&& mkdir ROCm \
&& cd ROCm \
&& git config --global user.email "[email protected]" \
&& git config --global user.name "Marcin Slowik" \
&& repo init -u https://github.com/RadeonOpenCompute/ROCm.git -b roc-5.6.x
RUN cd /source/ROCm && repo sync
COPY env.sh install-dependency.sh cleanup-build.sh /source/rocm-build/
WORKDIR /source/rocm-build/
RUN . env.sh \
&& DEBIAN_FRONTEND=noninteractive ./install-dependency.sh \
&& mkdir -p $ROCM_BUILD_DIR \
&& mkdir -p $ROCM_PATCH_DIR \
&& mkdir -p $ROCM_DIST_DIR
COPY 00.rocm-core.sh /source/rocm-build/
RUN . /source/rocm-build/env.sh \
; /source/rocm-build/00.rocm-core.sh \
&& /source/rocm-build/cleanup-build.sh rocm-core
COPY 11.rocm-llvm.sh /source/rocm-build/
RUN . /source/rocm-build/env.sh \
; /source/rocm-build/11.rocm-llvm.sh \
&& /source/rocm-build/cleanup-build.sh llvm-amdgpu
COPY 12.roct-thunk-interface.sh /source/rocm-build/
RUN . /source/rocm-build/env.sh \
; /source/rocm-build/12.roct-thunk-interface.sh \
&& /source/rocm-build/cleanup-build.sh roct-thunk-interface
COPY 13.rocm-cmake.sh /source/rocm-build/
RUN . /source/rocm-build/env.sh \
; /source/rocm-build/13.rocm-cmake.sh \
&& /source/rocm-build/cleanup-build.sh rocm-cmake
COPY 14.rocm-device-libs.sh /source/rocm-build/
RUN . /source/rocm-build/env.sh \
; /source/rocm-build/14.rocm-device-libs.sh \
&& /source/rocm-build/cleanup-build.sh rocm-device-libs
COPY 15.rocr-runtime.sh /source/rocm-build/
RUN . /source/rocm-build/env.sh \
; /source/rocm-build/15.rocr-runtime.sh \
&& /source/rocm-build/cleanup-build.sh rocr-runtime
COPY 16.rocminfo.sh /source/rocm-build/
RUN . /source/rocm-build/env.sh \
; /source/rocm-build/16.rocminfo.sh \
&& /source/rocm-build/cleanup-build.sh rocminfo
COPY 17.rocm-compilersupport.sh /source/rocm-build/
RUN . /source/rocm-build/env.sh \
; /source/rocm-build/17.rocm-compilersupport.sh \
&& /source/rocm-build/cleanup-build.sh rocm-compilersupport
COPY 18.hipcc.sh /source/rocm-build/
RUN . /source/rocm-build/env.sh \
; /source/rocm-build/18.hipcc.sh
COPY 20.clr.sh /source/rocm-build/
RUN . /source/rocm-build/env.sh \
; /source/rocm-build/20.clr.sh
COPY 21.rocfft.sh /source/rocm-build/
RUN . /source/rocm-build/env.sh \
; /source/rocm-build/21.rocfft.sh
COPY 22.rocblas.sh /source/rocm-build/
RUN . /source/rocm-build/env.sh \
; /source/rocm-build/22.rocblas.sh
COPY 23.rocprim.sh /source/rocm-build/
RUN . /source/rocm-build/env.sh \
; /source/rocm-build/23.rocprim.sh
COPY 24.rocrand.sh /source/rocm-build/
RUN . /source/rocm-build/env.sh \
; /source/rocm-build/24.rocrand.sh
COPY 25.rocsparse.sh /source/rocm-build/
RUN . /source/rocm-build/env.sh \
; /source/rocm-build/25.rocsparse.sh
COPY 26.hipsparse.sh /source/rocm-build/
RUN . /source/rocm-build/env.sh \
; /source/rocm-build/26.hipsparse.sh
COPY 27.rocm_smi_lib.sh /source/rocm-build/
RUN . /source/rocm-build/env.sh \
; /source/rocm-build/27.rocm_smi_lib.sh
COPY 28.rccl.sh /source/rocm-build/
RUN . /source/rocm-build/env.sh \
; /source/rocm-build/28.rccl.sh
COPY 29.hipfft.sh /source/rocm-build/
RUN . /source/rocm-build/env.sh \
; /source/rocm-build/29.hipfft.sh
COPY 31.rocm-opencl-runtime.sh /source/rocm-build/
RUN . /source/rocm-build/env.sh \
; /source/rocm-build/31.rocm-opencl-runtime.sh
COPY 32.clang-ocl.sh /source/rocm-build/
RUN . /source/rocm-build/env.sh \
; /source/rocm-build/32.clang-ocl.sh
# COPY 33.roctracer.sh /source/rocm-build/
# RUN . /source/rocm-build/env.sh \
# && echo
# COPY 35.miopen.sh /source/rocm-build/
# RUN . /source/rocm-build/env.sh \
# && echo
# COPY 43.rocgdb.sh /source/rocm-build/
# RUN . /source/rocm-build/env.sh \
# && echo
# COPY 51.rocsolver.sh /source/rocm-build/
# RUN . /source/rocm-build/env.sh \
# && echo
# # COPY 62.rock-dkms.sh /source/rocm-build/
# # RUN . /source/rocm-build/env.sh \
# # && echo
# COPY 73.rocmvalidationutil.sh /source/rocm-build/
# RUN . /source/rocm-build/env.sh \
# && echo
# COPY 74.rocr_debug_agent.sh /source/rocm-build/
# RUN . /source/rocm-build/env.sh \
# && echo