Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 302b3019 authored by DUCARTON Nicolas's avatar DUCARTON Nicolas
Browse files

initial commit

parent b9cd67d6
No related branches found
No related tags found
No related merge requests found
*~
*.swp
cd starpu
./autogen.sh > ../autogen_result 2>&1
mkdir ../build
cd ../build
../starpu/configure --prefix=/home/install --disable-cuda --enable-mpi --disable-opencl --disable-starpupy --enable-mpi-ft --enable-mpi-check --enable-mpi-ft-stats > ../configure_result 2>&1
make -j > ../make_result 2>&1
cd starpu
./autogen.sh > ../autogen_result 2>&1
mkdir ../build
cd ../build
../starpu/configure --prefix=/home/install --disable-cuda --enable-mpi --disable-opencl --disable-starpupy --enable-mpi-ft --enable-mpi-check --enable-mpi-ft-stats > ../configure_result 2>&1
make -j > ../make_result 2>&1
make check ../check_result 2>&1
#get fist param, help, check, build
p=${1-unset}
#print help
HELP (){
echo "usage: ./launch-test help/check/build";
echo "\t help: print this";
echo "\t check: build starpu and run tests";
echo "\t build: only build starpu";
}
GETPU(){
#if starpu folder does not exist clone
if [ ! -d "starpu" ]
then
git clone https://gitlab.inria.fr/starpu/starpu.git -b ft_ulfm
fi
}
RUN(){
if [ ! -d "docker_results" ]
then
mkdir docker_results
fi
docker build mpi5/ > docker_results/docker_build_mpi5
docker run mpi5 > docker_results/docker_run_mpi5
docker build mpi4/ > docker_results/docker_build_mpi4
docker run mpi4 > docker_results/docker_run_mpi4
docker build mpich/ > docker_results/docker_build_mpich
docker run mpich > docker_results/docker_run_mpich
}
if [ $g = 'help' ]
then
HELP
elif [ $g = 'check' ]
then
GETPU
cp check.sh run.sh
RUN
elif
then
GETPU
cp build.sh run.sh
RUN
fi
File added
FROM debian:12
WORKDIR /home
# Install starpu dependencies
RUN apt update && apt upgrade
RUN apt install g++ make libtool git libopenblas-dev libhwloc-dev pkg-config texlive texlive-font-utils doxygen libtool-bin texlive-fonts-extra -y
# Install mpi version
RUN apt install libopenmpi-dev openmpi-bin
#So we don't run mpi as root
RUN useradd app
USER app
#clone starpu and build
#RUN git clone https://gitlab.inria.fr/starpu/starpu.git -b ft_ulfm
COPY starpu starpu
#run whatever the script gave us
COPY run.sh .
#RUN mkdir build && cd build
#RUN ../starpu/configure --prefix=../install --disable-cuda --enable-mpi --disable-opencl --disable-starpupy --enable-mpi-ft --enable-mpi-check --enable-mpi-ft-stats > ../configure_result 2>&1 &
#RUN make -j > ~/make_result 2>&1 &
CMD ["./run.sh"]
# Copy the script to compile and test starpu
#COPY
# Compile starpu and check
#CMD []
# Or compile starpu and run test
#
FROM debian:12
WORKDIR /home
# Install starpu dependencies
RUN apt update && apt upgrade
RUN apt install g++ make libtool git libopenblas-dev libhwloc-dev pkg-config texlive texlive-font-utils doxygen libtool-bin texlive-fonts-extra -y
# Install mpi version
RUN wget https://download.open-mpi.org/release/open-mpi/v5.0/openmpi-5.0.5.tar.gz
RUN tar xf openmpi-5.0.5.tar.gz && rm openmpi-5.0.5.tar.gz
RUN cd openmpi-5.0.5/ && ./configure && make -j && make install
#So we don't run mpi as root
RUN useradd app
USER app
#clone starpu and build
#RUN git clone https://gitlab.inria.fr/starpu/starpu.git -b ft_ulfm
COPY starpu starpu
#run whatever the script gave us
COPY run.sh .
#RUN mkdir build && cd build
#RUN ../starpu/configure --prefix=../install --disable-cuda --enable-mpi --disable-opencl --disable-starpupy --enable-mpi-ft --enable-mpi-check --enable-mpi-ft-stats > ../configure_result 2>&1 &
#RUN make -j > ~/make_result 2>&1 &
CMD ["./run.sh"]
# Copy the script to compile and test starpu
#COPY
# Compile starpu and check
#CMD []
# Or compile starpu and run test
#
FROM debian:12
WORKDIR /home
# Install starpu dependencies
RUN apt update && apt upgrade
RUN apt-get install -y \
sudo \
git \
autoconf \
automake \
build-essential \
libtool-bin \
libhwloc-dev \
pkg-config \
gdb \
vim \
libopenblas-pthread-dev
# Install mpi version
RUN apt install mpich
#So we don't run mpi as root
RUN useradd starpu
USER starpu
RUN mkdir /home/starpu
WORKDIR /home/starpu
COPY starpu starpu
#run whatever the script gave us
COPY run.sh .
CMD ["./run.sh"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment