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
e9a35f0e
Commit
e9a35f0e
authored
4 months ago
by
Siddhant Tibrewal
Browse files
Options
Downloads
Patches
Plain Diff
added seperate scripts for levante ompi412 and ompi415
parent
29b9fa7b
No related branches found
Branches containing commit
No related tags found
1 merge request
!46
Build process for multiple compilers across different machines
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scripts/setup/levante.intel-ompi412.sh
+41
-0
41 additions, 0 deletions
scripts/setup/levante.intel-ompi412.sh
scripts/setup/levante.intel-ompi415.sh
+0
-0
0 additions, 0 deletions
scripts/setup/levante.intel-ompi415.sh
with
41 additions
and
0 deletions
scripts/setup/levante.intel-
2021.5.0_
ompi41
5
.sh
→
scripts/setup/levante.intel-ompi41
2
.sh
+
41
−
0
View file @
e9a35f0e
...
...
@@ -9,7 +9,7 @@ while [ $# -gt 0 ]; do
break
;;
*
)
echo
"Error: unknown argument '
$1
'. Call this script with
only
--yaco-root and path to your yaco-root"
echo
"Error: unknown argument '
$1
'. Call this script with --yaco-root and path to your yaco-root"
exit
1
;;
esac
...
...
@@ -18,27 +18,24 @@ done
echo
"Absolute path provided as the yaco root:
$ABSOLUTE_YACO_ROOT
"
# take the right compiler
MPI_ROOT
=
'/sw/spack-levante/openmpi-4.1.5-j4eizi'
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"
COMPILER
=
"openmpi-4.1.2-yfwe6t4"
export
MPI_ROOT
=
"/sw/spack-levante/
${
COMPILER
}
"
export
CC
=
"
${
MPI_ROOT
}
/bin/mpicc"
export
FC
=
"
${
MPI_ROOT
}
/bin/mpif90"
export
CXX
=
"
${
MPI_ROOT
}
/bin/mpicxx"
export
MPI_LAUNCH
=
"
${
MPI_ROOT
}
/bin/mpiexec"
MPI_LAUNCH
=
"
${
MPI_ROOT
}
/bin/mpiexec"
THREADS
=
64
BUILD_PATH
=
$ABSOLUTE_YACO_ROOT
/build/
$COMPILER
INSTALL_PATH
=
$BUILD_PATH
/install
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
$ABSOLUTE_YACO_ROOT
/scripts/setup/build-dependencies.sh
-j
$THREADS
--dependency
all
--
build_dir_name
$COMPILER
--prefix_path
$INSTALL_PATH
# 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
)
echo
"=== Building yaco ==="
cd
"
$BUILD_PATH
"
CC
=
"
${
CC
}
"
FC
=
"
${
FC
}
"
cmake
$ABSOLUTE_YACO_ROOT
-DCMAKE_PREFIX_PATH
=
$INSTALL_PATH
-DENABLE_NETCDF
=
OFF
-DCMAKE_EXPORT_COMPILE_COMMANDS
=
ON
-DCMAKE_BUILD_TYPE
=
Release
cmake
--build
.
-j
$THREADS
cmake
--install
.
--prefix
=
$INSTALL_PATH
\ No newline at end of file
This diff is collapsed.
Click to expand it.
scripts/setup/levante.intel-
2021.5.0
.sh
→
scripts/setup/levante.intel-
ompi415
.sh
+
0
−
0
View file @
e9a35f0e
File moved
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