Mentions légales du service

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

more scripts

parent 302b3019
No related branches found
No related tags found
No related merge requests found
...@@ -2,5 +2,6 @@ cd starpu ...@@ -2,5 +2,6 @@ cd starpu
./autogen.sh > ../autogen_result 2>&1 ./autogen.sh > ../autogen_result 2>&1
mkdir ../build mkdir ../build
cd ../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 ../starpu/configure --prefix=/home/starpu/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 -j > ../make_result 2>&1
make install
launch-test.sh 100644 → 100755
#get fist param, help, check, build #get fist param, help, check, build
p=${1-unset} p=${1-unset}
g=${2-unset}
#print help #print help
HELP (){ HELP (){
echo "usage: ./launch-test help/check/build"; echo "It is recommended that you provide a symbolic link named starpu to the starpu repository";
echo " ln -s <path_to_starpu> starpu\n";
echo "usage: ./launch-test <config> <action> [type] [path]";
echo "config: ";
echo "\t all : launch on all available configs";
echo "\t config name : launch on this particular docker config (a folder with that name containing a dockerfile must exist)";
echo "action: ";
echo "\t help: print this"; echo "\t help: print this";
echo "\t check: build starpu and run tests"; echo "\t check: build starpu and run tests";
echo "\t build: only build starpu"; echo "\t build: only build starpu";
echo "\t run : run [type] located at [path] (they must be provided)";
echo "\t\t type : script or (test (TODO))";
echo "\t\t path : path to script (or test name (TODO))";
echo "\t TODO gdb interactive guest_script/host_script";
echo "\t TODO : remove all created images";
} }
GETPU(){ GETPU(){
#if starpu folder does not exist clone #if starpu folder does not exist clone
if [ ! -d "starpu" ] if [ ! -d "starpu" ]
then then
echo "starpu not found in working directory, cloning from git";
git clone https://gitlab.inria.fr/starpu/starpu.git -b ft_ulfm git clone https://gitlab.inria.fr/starpu/starpu.git -b ft_ulfm
fi fi
} }
RUN(){ RUN(){
if [ ! -d "docker_results" ] if [ ! -d "docker_results" ]
then then
mkdir docker_results mkdir docker_results;
fi
if [ $p = 'all' ]
then
#differenciate all / a config
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
elif [ $p = 'unset' ]
then
HELP
else
#check that it exists
docker build $p > docker_results/docker_build_$p
docker run $p > docker_results/docker_run_$p
docker rm $(docker stop $(docker ps -a -q --filter ancestor=$p:latest --format="{{.ID}}"))
#remove image?
fi 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' ] if [ $g = 'help' ]
then then
...@@ -34,9 +61,26 @@ then ...@@ -34,9 +61,26 @@ then
GETPU GETPU
cp check.sh run.sh cp check.sh run.sh
RUN RUN
elif elif [ $g = 'build' ]
then then
GETPU GETPU
cp build.sh run.sh cp build.sh run.sh
RUN RUN
elif [ $g = 'run' ]
then
GETPU
st=${3-unset}
path=${4-unset}
if [ $st = 'script' ]
then
if [ $path = 'unset' ]
then
echo "Please provide a path for the script you want to run";
else
cp $path run.sh
RUN
fi
fi
#Do for a particular test
fi fi
File deleted
...@@ -2,13 +2,31 @@ FROM debian:12 ...@@ -2,13 +2,31 @@ FROM debian:12
WORKDIR /home WORKDIR /home
# Install starpu dependencies # Install starpu dependencies
RUN apt update && apt upgrade 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 RUN apt-get install -y \
sudo \
git \
autoconf \
automake \
build-essential \
libtool-bin \
libhwloc-dev \
pkg-config \
gdb \
vim \
libopenblas-pthread-dev \
wget
# Install mpi version # Install mpi version
RUN apt install libopenmpi-dev openmpi-bin #RUN apt install libopenmpi-dev openmpi-bin
RUN wget https://download.open-mpi.org/release/open-mpi/v4.1/openmpi-4.1.3.tar.gz
RUN tar xf openmpi-4.1.3.tar.gz && rm openmpi-4.1.3.tar.gz
RUN cd openmpi-4.1.3/ && ./configure && make -j && make install
#So we don't run mpi as root #So we don't run mpi as root
RUN useradd app RUN useradd starpu
USER app USER starpu
RUN mkdir /home/starpu
WORKDIR /home/starpu
COPY starpu starpu
#clone starpu and build #clone starpu and build
#RUN git clone https://gitlab.inria.fr/starpu/starpu.git -b ft_ulfm #RUN git clone https://gitlab.inria.fr/starpu/starpu.git -b ft_ulfm
......
...@@ -2,24 +2,34 @@ FROM debian:12 ...@@ -2,24 +2,34 @@ FROM debian:12
WORKDIR /home WORKDIR /home
# Install starpu dependencies # Install starpu dependencies
RUN apt update && apt upgrade 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 RUN apt-get install -y \
sudo \
git \
autoconf \
automake \
build-essential \
libtool-bin \
libhwloc-dev \
pkg-config \
gdb \
vim \
libopenblas-pthread-dev \
wget \
python3.11-full
# Install mpi version # Install mpi version
RUN wget https://download.open-mpi.org/release/open-mpi/v5.0/openmpi-5.0.5.tar.gz 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 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 RUN cd openmpi-5.0.5/ && ./configure && make -j && make install
RUN mkdir /home/starpu
#So we don't run mpi as root #So we don't run mpi as root
RUN useradd app RUN useradd starpu
USER app USER starpu
#clone starpu and build WORKDIR /home/starpu
#RUN git clone https://gitlab.inria.fr/starpu/starpu.git -b ft_ulfm ADD ./starpu /home/starpu/starpu
COPY starpu starpu
#run whatever the script gave us #run whatever the script gave us
COPY run.sh . 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"] CMD ["./run.sh"]
......
...@@ -16,7 +16,7 @@ RUN apt-get install -y \ ...@@ -16,7 +16,7 @@ RUN apt-get install -y \
libopenblas-pthread-dev libopenblas-pthread-dev
# Install mpi version # Install mpi version
RUN apt install mpich RUN apt install -y mpich
#So we don't run mpi as root #So we don't run mpi as root
RUN useradd starpu RUN useradd starpu
......
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