File: Dockerfile.amd-rocm

package info (click to toggle)
criu 4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,500 kB
  • sloc: ansic: 139,280; python: 7,484; sh: 3,824; java: 2,799; makefile: 2,659; asm: 1,137; perl: 206; xml: 117; exp: 45
file content (97 lines) | stat: -rw-r--r-- 2,095 bytes parent folder | download | duplicates (2)
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
FROM rocm/pytorch:latest

ARG CC=gcc

# Environment
ENV BRANCH=$BRANCH \
    DEBIAN_FRONTEND=noninteractive \
    LC_ALL=en_US.UTF-8 \
    LANG=en_US.UTF-8 \
    LANGUAGE=en_US.UTF-8

#
# Package installation
#
RUN apt-get clean -qqy && apt-get update -qqy && apt-get install -qqy --no-install-recommends \
	--no-upgrade -yq -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" \
	apt-utils \
	apt-transport-https\
	gnupg \
	gnupg2 \
	gettext \
	locales \
	iproute2 \
	iputils-ping \
	moreutils \
	net-tools \
	psmisc\
	supervisor \
	cifs-utils \
	nfs-common \
	systemd \
	fuse \
	xmlto \
	autossh \
	netbase \
	libnet-dev \
	libnl-route-3-dev \
	$CC \
	bsdmainutils \
	ca-certificates \
	build-essential \
	git-core \
	iptables \
	libaio-dev \
	libbsd-dev \
	libcap-dev \
	libgnutls28-dev \
	libgnutls30 \
	libnl-3-dev \
	libprotobuf-c-dev \
	libprotobuf-dev \
	libselinux-dev \
	pkg-config \
	protobuf-c-compiler \
	protobuf-compiler \
	python-protobuf \
	python3-minimal \
	python-ipaddress \
	uuid-dev \
	curl \
	wget \
	vim \
	openssl \
	openssh-server \
	python \
	sudo \
	libnuma1 \
	libdrm-dev \
	libdrm-amdgpu1 \
	asciidoc \
	&& \
	rm -rf /var/lib/apt/lists/* && \
	apt-get purge --auto-remove && \
	apt-get clean

# Clone latest criu code
COPY . /criu
WORKDIR /criu

RUN make mrproper && date && \
# Check single object build
	make -j $(nproc) CC="$CC" criu/parasite-syscall.o && \
# Compile criu
	make -j $(nproc) CC="$CC" && \
	date && echo BUILD_OK && \
# Install criu
	make -j $(nproc) install && \
	date && echo INSTALL_OK

WORKDIR /root/criu_build_dir
RUN	git clone --recursive -b  cl/rocm-transformers https://github.com/lcskrishna/transformers.git && \
	cd transformers && wget https://rajpurkar.github.io/SQuAD-explorer/dataset/train-v1.1.json && \
	wget https://rajpurkar.github.io/SQuAD-explorer/dataset/dev-v1.1.json && \
	wget https://github.com/allenai/bi-att-flow/blob/master/squad/evaluate-v1.1.py
ENV SQUAD_DIR=/root/criu_build_dir/transformers
WORKDIR /root/criu_build_dir/transformers
RUN pip3 install tensorboard tensorboardX && pip3 install .