-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
49 lines (40 loc) · 1.49 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
FROM ubuntu:14.04
MAINTAINER Jason Lowe-Power <jason@lowepower.com>
# Install all of gem5's dependencies
RUN apt-get update -y && apt-get install -y \
build-essential \
python-dev \
scons \
swig \
zlib1g-dev \
m4 \
libprotobuf-dev \
python-protobuf \
protobuf-compiler \
libgoogle-perftools-dev
RUN apt-get install --no-install-recommends -y mercurial
# Install dependencies for gem5-gpu (CUDA benchmarks)
RUN apt-get install -y \
gcc-4.6 \
g++-4.6 \
python \
wget
RUN wget http://developer.download.nvidia.com/compute/cuda/3_2_prod/toolkit/cudatoolkit_3.2.16_linux_64_ubuntu10.04.run
RUN wget http://developer.download.nvidia.com/compute/cuda/3_2_prod/sdk/gpucomputingsdk_3.2.16_linux.run
# Note: May need to make sure return is pressed
RUN bash cudatoolkit_3.2.16_linux_64_ubuntu10.04.run
# Note: must input /usr/local/cuda, then return
RUN bash gpucomputingsdk_3.2.16_linux.run
RUN mv /root/NVIDIA_GPU_Computing_SDK/C /usr/local/cuda
RUN echo " \
export CUDAHOME=/usr/local/cuda; \
export PATH=$PATH:/usr/local/cuda/bin; \
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64:/usr/local/cuda/lib; \
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/cuda/C/lib; \
" >> /root/.bashrc
#RUN source /root/.bashrc
WORKDIR /usr/local/cuda/C/common
RUN make 2> /dev/null
# Also needed, but not at this stage in the build
# WORKDIR /gem5-gpu/benchmarks/common
# RUN make