Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions send-to-server.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

# Your user name on the server.
user=krzywnicka
# The IP address of the server.
ip=130.149.237.23 # so013
# The path on the server (make sure that it exists by first creating it on the server, if necessary).
path="/home/$user/daphne-$user"

rsync -av --exclude=/.git/ --exclude=/send-to-server.sh --rsh="ssh -J $user@130.149.237.11" . "$user@$ip:$path"
#rsync -av --exclude='.git/' --exclude='send-to-server.sh' --include='*/' --include='*.py' --rsh="ssh -J $user@130.149.237.11" . "$user@$ip:$path"
43 changes: 43 additions & 0 deletions setup-daphne-dams-cluster-3.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#!/bin/bash

# *****************************************************************************
# This script builds DAPHNE including all dependencies.
#
# It is intended to be used on a scale-out node of the DAMS Lab cluster.
# It contains a few work-arounds that are currently needed in this environment.
# *****************************************************************************

# Stop if any command fails.
set -e

# Create a Python virtual environment to make numpy and pandas available.
python3 -m venv daphne-venv
source daphne-venv/bin/activate
pip install numpy pandas

# Use gcc-9/g++-9 for building the dependencies (work-around because we don't have gfortran-11 yet).
export CC=/usr/bin/gcc-9
export CXX=/usr/bin/g++-9

# Build the dependencies and DAPHNE (just some random target that does not require C++-20, s.t. we can build it with g++-9).
./build.sh --target DaphneDSLParser

# Remove the DAPHNE build artifacts.
./build.sh --clean -y

# Use gcc-11/g++-11 for building DAPHNE.
export CC=/usr/bin/gcc-11
export CXX=/usr/bin/g++-11

# Build DAPHNE (including all test cases).
./build.sh --target run_tests

# Run the test cases.
./test.sh -d yes

set +e

# Each time you log in to your node:
source daphne-venv/bin/activate
export CC=/usr/bin/gcc-11
export CXX=/usr/bin/g++-11
50 changes: 50 additions & 0 deletions setup-daphne-dams-cluster.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#!/bin/bash

# *****************************************************************************
# This script builds DAPHNE including all dependencies.
#
# It is intended to be used on a scale-out node of the DAMS Lab cluster.
# It contains a few work-arounds that are currently needed in this environment.
# *****************************************************************************

# Stop if any command fails.
set -e

# Create a Python virtual environment to make numpy and pandas available.
python3 -m venv daphne-venv
source daphne-venv/bin/activate
pip install numpy pandas

# Use gcc-9/g++-9 for building the dependencies (work-around because we don't have gfortran-11 yet).
export CC=/usr/bin/gcc-9
export CXX=/usr/bin/g++-9

# Build the dependencies and DAPHNE (just some random target that does not require C++-20, s.t. we can build it with g++-9).
./build.sh --target DaphneDSLParser

# Remove the DAPHNE build artifacts.
#./build.sh --clean -y

# Use gcc-11/g++-11 for building DAPHNE.
export CC=/usr/bin/gcc-11
export CXX=/usr/bin/g++-11

# Build DAPHNE (including all test cases).
./build.sh --target run_tests
#./build.sh -nd

# Run the test cases.
./test.sh -d yes

set +e

# Each time you log in to your node:
# cd path/to/your/daphne
source daphne-venv/bin/activate
export CC=/usr/bin/gcc-11
export CXX=/usr/bin/g++-11
export PYTHONPATH=$(pwd)/src/api/python:$PYTHONPATH
export LD_LIBRARY_PATH=$(pwd)/lib:$LD_LIBRARY_PATH
export PATH=$(pwd)/bin:$PATH
export DAPHNELIB_DIR_PATH=$(pwd)/lib

Loading