From 2f99318903000c222673324e18710f85b818ad64 Mon Sep 17 00:00:00 2001 From: Tim Niklas Uhl Date: Thu, 13 Jun 2024 15:02:15 +0200 Subject: [PATCH] Initial commit. --- Dockerfile | 17 +++++++++++++++++ build_and_run_test_suite.sh | 24 ++++++++++++++++++++++++ count_example_loc.sh | 14 ++++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 Dockerfile create mode 100644 build_and_run_test_suite.sh create mode 100644 count_example_loc.sh diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..9be74e9 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM intel/oneapi-hpckit:devel-ubuntu22.04 +MAINTAINER Tim Niklas Uhl +RUN apt update && \ + apt upgrade -y && \ + apt install -y gcc-12 g++-12 && \ + apt remove -y cmake && \ + apt autoremove -y + +# Install CMake +RUN wget https://cmake.org/files/v3.26/cmake-3.26.3-linux-x86_64.sh && \ + sh cmake-3.26.3-linux-x86_64.sh --skip-license --prefix=/usr/local + +# Install pyenv +RUN apt install -y pip && \ + pip install pipenv + +VOLUME /repro-scripts diff --git a/build_and_run_test_suite.sh b/build_and_run_test_suite.sh new file mode 100644 index 0000000..27f1020 --- /dev/null +++ b/build_and_run_test_suite.sh @@ -0,0 +1,24 @@ +#!/usr/bin/env sh + +echo "[INFO] Cloning repo:" +git clone --branch v0.1.0 --recursive https://github.com/kamping-site/kamping + +cd kamping + +echo "[INFO] MPI version:" +mpiexec --version + + +echo "[INFO] Compiler version:" +gcc-12 --version + +echo "[INFO] building tests:" +cmake -B build \ + -DCMAKE_BUILD_TYPE=Debug \ + -DCMAKE_CXX_COMPILER=g++-12 \ + -DKAMPING_TEST_ENABLE_SANITIZERS=OFF #address sanitizers sometimes cause issues in combination with googletest and dynamic loading + +cmake --build build --parallel + +echo "[INFO] executing test suite:" +ctest --test-dir build diff --git a/count_example_loc.sh b/count_example_loc.sh new file mode 100644 index 0000000..3814aae --- /dev/null +++ b/count_example_loc.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env sh + +echo "[INFO] Cloning repo:" +git clone --branch v0.1.0 --recursive https://github.com/kamping-site/kamping-examples + +cd kamping-examples/evaluation + +echo "[INFO] installing dependencies for python script" +pipenv install + +echo "[INFO] Counting LOC" +pipenv run python count_lines.py --path ../include/bfs/bindings/ \ + ../include/sorting/bindings/ \ + ../include/vector_allgather/