Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
hysop
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
particle_methods
hysop
Commits
317dbb47
Commit
317dbb47
authored
5 years ago
by
Jean-Baptiste Keck
Browse files
Options
Downloads
Patches
Plain Diff
fixed new Dockerfile
parent
767cd037
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!16
MPI operators
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ci/docker_images/ubuntu/disco/Dockerfile
+90
-132
90 additions, 132 deletions
ci/docker_images/ubuntu/disco/Dockerfile
with
90 additions
and
132 deletions
ci/docker_images/ubuntu/disco/Dockerfile
+
90
−
132
View file @
317dbb47
...
@@ -8,6 +8,7 @@ RUN apt-get update
...
@@ -8,6 +8,7 @@ RUN apt-get update
RUN
apt-get full-upgrade
-y
RUN
apt-get full-upgrade
-y
# get build tools and required libraries
# get build tools and required libraries
RUN
apt-get
install
-y
apt-utils
RUN
apt-get
install
-y
expat
RUN
apt-get
install
-y
expat
RUN
apt-get
install
-y
unzip
RUN
apt-get
install
-y
unzip
RUN
apt-get
install
-y
xz-utils
RUN
apt-get
install
-y
xz-utils
...
@@ -42,6 +43,7 @@ RUN apt-get install -y libfftw3-mpi-dev
...
@@ -42,6 +43,7 @@ RUN apt-get install -y libfftw3-mpi-dev
RUN
apt-get
install
-y
libgmp-dev
RUN
apt-get
install
-y
libgmp-dev
RUN
apt-get
install
-y
libmpfr-dev
RUN
apt-get
install
-y
libmpfr-dev
RUN
apt-get
install
-y
libmpc-dev
RUN
apt-get
install
-y
libmpc-dev
RUN
apt-get
install
-y
libflint-dev
RUN
apt-get
install
-y
libsparsehash-dev
RUN
apt-get
install
-y
libsparsehash-dev
RUN
apt-get
install
-y
libcairo-dev
RUN
apt-get
install
-y
libcairo-dev
RUN
apt-get
install
-y
libcairomm-1.0-dev
RUN
apt-get
install
-y
libcairomm-1.0-dev
...
@@ -49,11 +51,14 @@ RUN apt-get install -y python
...
@@ -49,11 +51,14 @@ RUN apt-get install -y python
RUN
apt-get
install
-y
python-dev
RUN
apt-get
install
-y
python-dev
RUN
apt-get
install
-y
python-pip
RUN
apt-get
install
-y
python-pip
RUN
apt-get
install
-y
python-tk
RUN
apt-get
install
-y
python-tk
RUN
apt-get
install
-y
python-backports.weakref
RUN
apt-get
install
-y
python-backports.functools-lru-cache
RUN
apt-get
install
-y
opencl-headers
RUN
apt-get
install
-y
opencl-headers
RUN
apt-get
install
-y
ocl-icd-libopencl1
RUN
apt-get
install
-y
ocl-icd-libopencl1
RUN
apt-get
install
-y
clinfo
RUN
apt-get
install
-y
clinfo
RUN
apt-get
install
-y
clang
# python packages
#
some
python packages
RUN
pip
install
--upgrade
pip
RUN
pip
install
--upgrade
pip
RUN
pip
install
--upgrade
setuptools
RUN
pip
install
--upgrade
setuptools
RUN
pip
install
--upgrade
backports.weakref
RUN
pip
install
--upgrade
backports.weakref
...
@@ -80,170 +85,123 @@ RUN pip install --upgrade pycairo
...
@@ -80,170 +85,123 @@ RUN pip install --upgrade pycairo
RUN
pip
install
--upgrade
weave
RUN
pip
install
--upgrade
weave
RUN
pip
install
--upgrade
argparse_color_formatter
RUN
pip
install
--upgrade
argparse_color_formatter
RUN
pip
install
--upgrade
numba
RUN
pip
install
--upgrade
numba
RUN
pip
install
--upgrade
pybind11
# For documentation
#
RUN pip install --upgrade sphinx
#
documentation
#
RUN pip install --upgrade sphinx
contrib-bibtex
RUN
pip
install
--upgrade
sphinx
#
RUN pip install --upgrade sphinx
_bootstrap_theme
RUN
pip
install
--upgrade
sphinx
contrib-bibtex
#
RUN pip install --upgrade s
trip-hints
RUN
pip
install
--upgrade
s
phinx_bootstrap_theme
#
RUN
cd /tmp && git clone https://github.com/sphinx-contrib/doxylink.git && cd doxylink/sphinxcontrib/doxylink \
RUN
pip
install
--upgrade
strip-hints
# && mv doxylink.py doxylink.py3 && strip-hints doxylink.py3 > doxylink.py && rm
doxylink
.py3
\
RUN
cd
/tmp
&&
git clone https://github.com/sphinx-contrib/doxylink.git
&&
cd
doxylink/sphinxcontrib/
doxylink
\
#
&& mv
pars
in
g
.py
pars
in
g
.py3 && strip-hints
pars
in
g
.py3 >
pars
in
g
.py && rm
pars
in
g
.py3 \
&&
mv
doxyl
in
k
.py
doxyl
in
k
.py3
&&
strip-hints
doxyl
in
k
.py3
>
doxyl
in
k
.py
&&
rm
doxyl
in
k
.py3
\
#
&&
cd ../.. && python setup.py install
&&
mv
parsing.py parsing.py3
&&
strip-hints parsing.py3
>
parsing.py
&&
rm
parsing.py3
\
&&
cd
../..
&&
python setup.py
install
# scitools (python-scitools does not exist on ubuntu:
bionic
)
# scitools (python-scitools does not exist on ubuntu:
disco
)
RUN
cd
/tmp
\
RUN
cd
/tmp
\
&&
git clone https://github.com/hplgit/scitools
\
&&
git clone https://github.com/hplgit/scitools
\
&&
cd
scitools
\
&&
cd
scitools
\
&&
pip
install
.
\
&&
pip
install
.
\
&&
cd
-
\
&&
cd
-
\
&&
rm
-Rf
/tmp/scitools
&&
rm
-Rf
/tmp/scitools
# patchelf
# Intel OpenCl runtime
RUN
cd
/tmp
\
RUN
cd
/tmp
\
&&
git clone https://github.com/NixOS/patchelf
\
&&
mkdir
intel
\
&&
cd
patchelf
\
&&
cd
intel
\
&&
./bootstrap.sh
\
&&
wget http://registrationcenter-download.intel.com/akdlm/irc_nas/vcp/15532/l_opencl_p_18.1.0.015.tgz
\
&&
./configure
\
&& tar -xvzf l_opencl_p_18.1.0.015.tgz \
&&
make
\
&& cd l_opencl_p_18.1.0.015 \
&&
make
install
\
&& sed -i "s/ACCEPT_EULA=decline/ACCEPT_EULA=accept/g" "silent.cfg" \
&&
cd
-
\
&& ./install.sh --silent ./silent.cfg \
&&
rm
-Rf
/tmp/patchelf
&& cd /tmp \
RUN
wget
-O
- https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
\
&&
echo
'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic main'
>>
/etc/apt/sources.list
\
&&
echo
'deb-src http://apt.llvm.org/bionic/ llvm-toolchain-bionic main'
>>
/etc/apt/sources.list
\
&&
apt-get update
\
&&
apt-get
install
--assume-yes
llvm-3.9 clang-3.9 libllvm3.9 libclang-3.9-dev
# Intel OpenCl
RUN
cd
/tmp
\
&&
mkdir
intel
\
&&
cd
intel
\
&&
wget http://registrationcenter-download.intel.com/akdlm/irc_nas/12556/opencl_runtime_16.1.2_x64_rh_6.4.0.37.tgz
\
&&
tar
-xvzf
opencl_runtime_16.1.2_x64_rh_6.4.0.37.tgz
\
&&
cd
opencl_runtime_16.1.2_x64_rh_6.4.0.37
\
&&
ls
-la
\
&&
sed
-i
"s/ACCEPT_EULA=decline/ACCEPT_EULA=accept/g"
"silent.cfg"
\
&&
./install.sh
--silent
./silent.cfg
\
&&
cd
/tmp
\
&& rm -Rf /tmp/intel
&& rm -Rf /tmp/intel
# Fix OpenCl ICD
# clpeak
RUN
ln
-s
/usr/lib/x86_64-linux-gnu/libOpenCL.so.1 /usr/lib/x86_64-linux-gnu/libOpenCL.so
RUN
cd
/tmp
\
RUN
ldconfig
&&
git clone https://github.com/krrishnarraj/clpeak
\
&&
cd
clpeak/
\
&&
mkdir
build
\
&&
cd
build/
\
&&
cmake ..
\
&&
make
-j
$(
nproc
)
\
&&
mv
clpeak /usr/local/bin/
\
&&
cd
-
\
&&
rm
-Rf
/tmp/clpeak
# pyopencl
# pyopencl
RUN
cd
/tmp
\
RUN
cd
/tmp
\
&&
pip
install
pybind11
\
&&
git clone https://github.com/inducer/pyopencl
\
&&
git clone https://github.com/inducer/pyopencl
\
&&
cd
pyopencl
\
&&
cd
pyopencl
\
&&
git submodule update
--init
\
&&
git submodule update
--init
\
&&
./configure.py
\
&&
./configure.py
\
&&
make
-j
$(
nproc
)
\
&&
make
\
&&
pip
install
--upgrade
.
\
&&
pip
install
--upgrade
.
\
&&
cd
-
\
&&
cd
-
\
&&
rm
-Rf
/tmp/pyopencl
&&
rm
-Rf
/tmp/pyopencl
# oclgrind
RUN
apt-get
install
--assume-yes
--allow-unauthenticated
llvm-6.0 clang-6.0 libllvm6.0 libclang-6.0-dev
RUN
cd
/tmp
\
&&
git clone https://github.com/jrprice/Oclgrind
\
&&
cd
Oclgrind
\
&&
mkdir
build
\
&&
cd
build
\
&&
cmake
-DCMAKE_BUILD_TYPE
=
Release ..
\
&&
make
\
&&
make
install
\
&&
cd
-
\
&&
rm
-Rf
/tmp/Oclgrind
# clpeak
RUN
cd
/tmp
\
&&
git clone https://github.com/krrishnarraj/clpeak
\
&&
cd
clpeak/
\
&&
mkdir
build
\
&&
cd
build/
\
&&
cmake ..
\
&&
make
\
&&
mv
clpeak /usr/local/bin/
\
&&
cd
-
\
&&
rm
-Rf
/tmp/clpeak
# clFFT
# clFFT
RUN
cd
/tmp
\
RUN
cd
/tmp
\
&&
ln
-s
/usr/local/lib /usr/local/lib64
\
&&
ln
-s
/usr/local/lib /usr/local/lib64
\
&&
git clone https://github.com/clMathLibraries/clFFT
\
&&
git clone https://github.com/clMathLibraries/clFFT
\
&&
cd
clFFT
\
&&
cd
clFFT
\
&&
cd
src
\
&&
cd
src
\
&&
mkdir
build
\
&&
mkdir
build
\
&&
cd
build
\
&&
cd
build
\
&&
cmake
-DCMAKE_BUILD_TYPE
=
Release ..
\
&&
cmake
-DCMAKE_BUILD_TYPE
=
Release ..
\
&&
make
\
&&
make
-j
$(
nproc
)
\
&&
make
install
\
&&
make
install
\
&&
cd
-
\
&&
cd
-
\
&&
rm
-Rf
/tmp/clFFT
&&
rm
-Rf
/tmp/clFFT
# gpyFFT
# gpyFFT
RUN
cd
/tmp
\
RUN
cd
/tmp
\
&&
git clone https://github.com/geggo/gpyfft
\
&&
git clone https://github.com/geggo/gpyfft
\
&&
cd
gpyfft
\
&&
cd
gpyfft
\
&&
pip
install
.
\
&&
pip
install
.
\
&&
cd
-
\
&&
cd
-
\
&&
rm
-Rf
/tmp/gpyfft
&&
rm
-Rf
/tmp/gpyfft
# python graphtools
RUN
cd
/tmp
\
&&
wget https://downloads.skewed.de/graph-tool/graph-tool-2.26.tar.bz2
\
&&
tar
-xvjf
graph-tool-2.26.tar.bz2
\
&&
cd
graph-tool-2.26
\
&&
./autogen.sh
\
&&
mkdir
pycairo
\
&&
find /usr/
-name
'pycairo.h'
-exec
cp
{}
./pycairo/pycairo.h
\;
\
&&
CPPFLAGS
=
-I
.
./configure
\
&&
CPPFLAGS
=
-I
.
make
-j16
\
&&
make
install
\
&&
cd
-
\
&&
rm
-Rf
/tmp/graph-tool-2.26
# clang 6 for hysop build test
RUN
apt-get
install
-y
clang
# pyfftw (with R2R transforms - experimental branch)
# pyfftw (with R2R transforms - experimental branch)
RUN
cd
/tmp
\
RUN
cd
/tmp
\
&&
git clone https://github.com/drwells/pyFFTW
\
&&
git clone https://github.com/drwells/pyFFTW
\
&&
cd
pyFFTW
\
&&
cd
pyFFTW
\
&&
git checkout r2r-try-two
\
&&
git checkout r2r-try-two
\
&&
sed
-i
's/\(fftw3[fl]\?_\)threads/\1omp/g'
setup.py
\
&&
sed
-i
's/\(fftw3[fl]\?_\)threads/\1omp/g'
setup.py
\
&&
pip
install
.
\
&&
pip
install
.
\
&&
cd
-
\
&&
cd
-
\
&&
rm
-Rf
/tmp/pyFFTW
&&
rm
-Rf
/tmp/pyFFTW
# python-flint
# python-flint
RUN
cd
/tmp
\
RUN
cd
/tmp
\
&&
wget http://flintlib.org/flint-2.5.2.tar.gz
\
&&
tar
-xvzf
flint-2.5.2.tar.gz
\
&&
cd
flint-2.5.2
\
&&
./configure
\
&&
make
-j16
\
&&
make
install
\
&&
cd
-
\
&&
rm
-Rf
flint-2.5.2
\
&&
wget https://github.com/fredrik-johansson/arb/archive/2.16.0.tar.gz
\
&&
wget https://github.com/fredrik-johansson/arb/archive/2.16.0.tar.gz
\
&&
tar
-xvzf
2.16.0.tar.gz
\
&&
tar
-xvzf
2.16.0.tar.gz
\
&&
cd
arb-2.16.0
\
&&
cd
arb-2.16.0
\
&&
./configure
\
&&
./configure
\
&&
make
-j
16
\
&&
make
-j
$(
nproc
)
\
&&
make
install
\
&&
make
install
\
&&
cd
-
\
&&
cd
-
\
&&
rm
-Rf
arb-2.16.0
\
&&
rm
-Rf
arb-2.16.0
RUN
cd
/tmp
\
&&
git clone https://github.com/fredrik-johansson/python-flint
\
&&
git clone https://github.com/fredrik-johansson/python-flint
\
&&
cd
python-flint
\
&&
cd
python-flint
\
&&
pip
install
.
\
&&
pip
install
.
\
&&
cd
-
\
&&
cd
-
\
&&
rm
-Rf
python-flint
&&
rm
-Rf
python-flint
# python graphtools
RUN
cd
/tmp
\
&&
wget https://downloads.skewed.de/graph-tool/graph-tool-2.28.tar.bz2
\
&&
tar
-xvjf
graph-tool-2.28.tar.bz2
\
&&
cd
graph-tool-2.28
\
&&
./autogen.sh
\
&&
mkdir
pycairo
\
&&
find /usr/
-name
'pycairo.h'
-exec
cp
{}
./pycairo/pycairo.h
\;
\
&&
CPPFLAGS
=
-I
.
./configure
\
&&
CPPFLAGS
=
-I
.
make
-j16
\
&&
make
install
\
&&
cd
-
\
&&
rm
-Rf
/tmp/graph-tool-2.28
# ensure all libraries are known by the runtime linker
# ensure all libraries are known by the runtime linker
RUN
ldconfig
RUN
ldconfig
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment