Skip to content
Snippets Groups Projects
Verified Commit 16a47958 authored by Simon Schwitanski's avatar Simon Schwitanski :slight_smile:
Browse files

Add patches for mustrun and TypeART

parent c4134312
No related branches found
No related tags found
No related merge requests found
Pipeline #381901 passed
......@@ -93,13 +93,19 @@ ENV OMPI_CXX=clang++
FROM base-${MPI_FLAVOR} AS final
ARG MUST_VERSION=1.9.2
COPY patches /patches
# Build and install MUST
RUN mkdir -p /opt/must/
WORKDIR /build
RUN wget https://hpc.rwth-aachen.de/must/files/MUST-v${MUST_VERSION}.tar.gz && \
tar -xf MUST-v${MUST_VERSION}.tar.gz && mkdir -p MUST-v${MUST_VERSION}/build
RUN cd MUST-v${MUST_VERSION}/build && \
RUN cd MUST-v${MUST_VERSION} && \
patch utility/mustrun2.sh < /patches/mustrun-env.patch && \
patch externals/typeart/scripts/typeart-wrapper.in < /patches/typeart-fpic.patch && \
cd build && \
CC=clang CXX=clang++ MPICH_CC=clang MPICH_CXX=clang++ OMPI_CC=clang OMPI_CXX=clang \
cmake .. -DCMAKE_INSTALL_PREFIX=/opt/must -DUSE_BACKWARD=ON -DENABLE_TESTS=ON -DENABLE_FORTRAN=ON -DLLVM_FILECHECK_PATH=$(which FileCheck) -DCMAKE_BUILD_TYPE=Release && \
make install -j8 install-prebuilds
......
@@ -2477,7 +2477,11 @@ if [ -n "${must_exports}" ] && cmaketrue "@MUSTRUN_INJECT_ENV@"
then
# $mpiexec_command should e.g look like this after this looping
# construct: mpiexec /usr/bin/env "PATH=/usr/bin" "FANCY_ENVVAR=value of fancy envvar" ...
- EXEC_EXPORTS="$(which env)"
+ if ! MYENV=$(which env)
+ then
+ MYENV=env
+ fi
+ EXEC_EXPORTS="${MYENV}"
for exp in ${must_exports}
do
EXEC_EXPORTS="${EXEC_EXPORTS} \"${exp}=${!exp}\""
--- externals/typeart/scripts/typeart-wrapper.in 2024-04-02 18:55:06.715830352 +0200
+++ externals/typeart/scripts/typeart-wrapper.in.fix 2024-04-02 18:54:27.849233560 +0200
@@ -265,11 +265,11 @@
# shellcheck disable=SC2086
$compiler ${ta_more_args} ${typeart_includes} ${typeart_san_flags} \
- -O1 -Xclang -disable-llvm-passes -S -emit-llvm "${source_file}" -o - |
+ -O1 -fPIC -Xclang -disable-llvm-passes -S -emit-llvm "${source_file}" -o - |
$opt_tool ${typeart_plugin} ${typeart_heap_mode_args} |
$opt_tool ${optimize} -S |
$opt_tool ${typeart_plugin} ${typeart_stack_mode_args} |
- $llc_tool -x=ir ${llc_flags} -o "${out_file}"
+ $llc_tool -x=ir --relocation-model=pic ${llc_flags} -o "${out_file}"
}
function main_in() {
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment