Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MUST-containers
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
High Performance Computing - Public
MUST-containers
Commits
16a47958
Verified
Commit
16a47958
authored
Apr 2, 2024
by
Simon Schwitanski
Browse files
Options
Downloads
Patches
Plain Diff
Add patches for mustrun and TypeART
parent
c4134312
No related branches found
No related tags found
No related merge requests found
Pipeline
#381901
passed
Apr 2, 2024
Stage: build
Changes
3
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+7
-1
7 additions, 1 deletion
Dockerfile
patches/mustrun-env.patch
+14
-0
14 additions, 0 deletions
patches/mustrun-env.patch
patches/typeart-fpic.patch
+16
-0
16 additions, 0 deletions
patches/typeart-fpic.patch
with
37 additions
and
1 deletion
Dockerfile
+
7
−
1
View file @
16a47958
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
patches/mustrun-env.patch
0 → 100644
+
14
−
0
View file @
16a47958
@@ -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}\""
This diff is collapsed.
Click to expand it.
patches/typeart-fpic.patch
0 → 100644
+
16
−
0
View file @
16a47958
--- 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() {
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment