Commit 7eceae6c authored by Pierre Aubert's avatar Pierre Aubert
Browse files

Add update.sh and update readme accordingly

parent 5f8c72af
......@@ -15,14 +15,72 @@ https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS/PhoenixPerformance
# Requirements
- c++ compiler >=5.3.1
- c++ compiler (tested with gcc 5,6,7,8,9,10 and clang 9,10)
- cmake > 3
- make
- gnuplot
- libtbb, libtbb-dev
# Installation for Users
```sh
$ git clone https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS/https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS/PhoenixPerformance.git
$ cd PhoenixPerformance
$ ./install.sh
```
Then **PhoenixPerformance** is installed in your $HOME/usr.
If you prefer a customized install path you can do :
```sh
$ git clone https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS/PhoenixPerformance.git
$ cd PhoenixPerformance
$ ./install.sh /your/install/path
```
If you prefer a customized install path with custom compilation you can do :
```sh
$ git clone https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS/PhoenixPerformance.git
$ cd PhoenixPerformance
$ mkdir -p build
$ cd build
$ cmake .. -DCMAKE_INSTALL_PREFIX=/your/install/Path
$ make -j `nproc`
$ make install -j `nproc`
```
The **nproc** gives the number of cores of the computer. If you want a build on one core you can just type :
```sh
$ make
$ make install
```
# Update PhoenixPerformance
If you want to update the software :
```sh
$ git clone https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS/PhoenixPerformance.git
$ cd PhoenixPerformance
$ ./update.sh
```
If you want to update the software with a custom install path :
```sh
$ git clone https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS/PhoenixPerformance.git
$ cd PhoenixPerformance
$ ./update.sh /your/install/path
```
# Performance tests for Users
```sh
$ git clone https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS/PhoenixPerformance.git
$ cd PhoenixPerformance
$ mkdir build
......@@ -30,11 +88,13 @@ https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS/PhoenixPerformance
$ cmake ..
$ make
$ make plot_all
```
# Performances with nvc++
With the environnement variable **NVCPP** pointing to your nvc++ compiler.
```sh
$ git clone https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS/PhoenixPerformance.git
$ cd PhoenixPerformance
$ mkdir build
......@@ -42,7 +102,7 @@ With the environnement variable **NVCPP** pointing to your nvc++ compiler.
$ cmake .. -DGPU_MODE=yes -DCMAKE_CXX_COMPILER=$NVCPP
$ make
$ make plot_all
```
#/bin/bash
INSTALL_PREFIX="$1"
if [ -z "$1" ]
then
if [ -z $CONDA_ENV_PATH ]
then
if [ -z $CONDA_PREFIX ]
then
INSTALL_PREFIX="$HOME/usr"
else
INSTALL_PREFIX=$CONDA_PREFIX
fi
else
INSTALL_PREFIX=$CONDA_ENV_PATH
fi
fi
git pull
if [ -d build ]
then
rm -fr build
fi
mkdir -p build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX="$INSTALL_PREFIX" -DPHOENIX_FORCE_PULL_MODULE=yes
make -j `nproc`
make install -j `nproc`
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment