Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Y
YACO
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mpim-sw
YACO
Commits
c7b33227
Commit
c7b33227
authored
5 months ago
by
Siddhant Tibrewal
Browse files
Options
Downloads
Patches
Plain Diff
added setup devenv script for levante
parent
167c29e8
No related branches found
No related tags found
1 merge request
!46
Build process for multiple compilers across different machines
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/setup/levante.intel-2021.5.0.sh
+44
-0
44 additions, 0 deletions
scripts/setup/levante.intel-2021.5.0.sh
with
44 additions
and
0 deletions
scripts/setup/levante.intel-2021.5.0.sh
0 → 100644
+
44
−
0
View file @
c7b33227
#!/bin/bash
while
[
$#
-gt
0
]
;
do
case
"
$1
"
in
--yaco-root
)
YACO_ROOT
=
$2
ABSOLUTE_YACO_ROOT
=
$(
readlink
-f
"
${
YACO_ROOT
}
"
)
shift
break
;;
*
)
echo
"Error: unknown argument '
$1
'. Call this script with only --yaco-root and path to your yaco-root"
exit
1
;;
esac
done
echo
"Absolute path provided as the yaco root:
$ABSOLUTE_YACO_ROOT
"
# take the right compiler
MPI_ROOT
=
"/sw/spack-levante/openmpi-4.1.4-3qb4sy"
CC
=
"
${
MPI_ROOT
}
/bin/mpicc"
FC
=
"
${
MPI_ROOT
}
/bin/mpif90"
CXX
=
"
${
MPI_ROOT
}
/bin/mpicxx"
CFLAGS
=
'-g -O2'
LDFLAGS
=
"-c++libs -cuda"
LIBS
=
"-Wl,--as-needed"
MPI_LAUNCH
=
"
${
MPI_ROOT
}
/bin/mpiexec"
BUILD_DIRECTORY
=
$(
pwd
)
THREADS
=
8
# build dependencies for yaco
echo
"=== Building yaco dependencies ==="
bash
$ABSOLUTE_YACO_ROOT
/scripts/setup/build-dependencies.sh
-j
$THREADS
--dependency
all
--work_dir
$BUILD_DIRECTORY
# build yaco
bash
$ABSOLUTE_YACO_ROOT
/scripts/setup/build-yaco.sh
-j
$THREADS
--work_dir
$BUILD_DIRECTORY
script_dir
=
$(
cd
"
$(
dirname
"
$0
"
)
"
;
pwd
)
icon_dir
=
$(
cd
"
${
script_dir
}
/../.."
;
pwd
)
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