Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Summa Actors
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Numerical_Simulations_Lab
Actors
Summa Actors
Commits
9beadc02
Commit
9beadc02
authored
2 years ago
by
Kyle Klenk (kck540)
Browse files
Options
Downloads
Patches
Plain Diff
Got cmake compiling for cluster build added module load file
parent
a62a0c7a
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
build/cmake/CMakeLists.txt
+17
-17
17 additions, 17 deletions
build/cmake/CMakeLists.txt
build/cmake/load_modules.sh
+7
-0
7 additions, 0 deletions
build/cmake/load_modules.sh
build/summa-sundials
+1
-0
1 addition, 0 deletions
build/summa-sundials
with
25 additions
and
17 deletions
build/cmake/CMakeLists.txt
+
17
−
17
View file @
9beadc02
...
...
@@ -14,7 +14,7 @@ option(SUNDIALS "Use SUNDIALS" ON)
######### SET THE PATHS TO THE SUNDIALS LIBRARIES AND INCLUDE FILES #########
#############################################################################
set
(
DIR_SUNDIALS
/usr/loc
al/sundials
)
set
(
DIR_SUNDIALS
"/home/kklenk/projects/rpp-kshook/CompHydCore/SummaSundi
al
s
/sundials
/sundials/instdir"
)
#############################################################################
# Set default build type to Release
...
...
@@ -42,20 +42,18 @@ endif()
# Packages that are required by both sundials and non-sundials builds
find_package
(
CAF REQUIRED
)
find_package
(
netCDF REQUIRED
)
find_package
(
LAPACK REQUIRED
)
# Set include directories
if
(
CMAKE_BUILD_TYPE MATCHES Cluster OR CMAKE_BUILD_TYPE MATCHES Cluster_Debug
)
execute_process
(
COMMAND module load gcc/9.3.0
)
execute_process
(
COMMAND module load netcdf-fortran
)
execute_process
(
COMMAND module load openblas
)
execute_process
(
COMMAND module load caf
)
find_package
(
CAF REQUIRED
)
find_package
(
netCDF REQUIRED
)
find_package
(
LAPACK REQUIRED
)
if
(
SUNDIALS
)
set
(
CMAKE_INSTALL_RPATH
"
${
DIR_SUNDIALS
}
/lib64"
)
link_directories
(
${
DIR_SUNDIALS
}
/lib64
)
set
(
CMAKE_BUILD_RPATH
"
${
DIR_SUNDIALS
}
/lib64"
)
set
(
SUMMA_INCLUDES
"$ENV{EBROOTNETCDFMINFORTRAN}/include"
"
${
DIR_SUNDIALS
}
/include"
...
...
@@ -64,18 +62,19 @@ if (CMAKE_BUILD_TYPE MATCHES Cluster OR CMAKE_BUILD_TYPE MATCHES Cluster_Debug)
${
LAPACK_INCLUDES
}
)
set
(
SUMMA_LIBS
"$ENV{EBROOTNETCDFMINFORTRAN}/lib64"
-lsundials_fnvecmanyvector_mod
-lsundials_fida_mod
-lsundials_fnvecserial_mod
-lsundials_fsunlinsoldense_mod
-lsundials_fsunmatrixdense_mod
-lnetcdff
${
netCDF_LIBRARIES
}
${
LAPACK_LIBRARIES
}
SUMMA_NOAHMP
)
set
(
SUMMA_ACTORS_INCLUDES
${
CAF_INCLUDES
}
${
netCDF_INCLUDES
}
set
(
SUMMA_ACTORS_INCLUDES
${
CAF_INCLUDES
}
"$ENV{EBROOTNETCDFMINFORTRAN}/include"
${
LAPACK_INCLUDES
}
"
${
DIR_SUNDIALS
}
/include"
"
${
PARENT_DIR
}
/build/includes/global"
...
...
@@ -107,14 +106,14 @@ if (CMAKE_BUILD_TYPE MATCHES Cluster OR CMAKE_BUILD_TYPE MATCHES Cluster_Debug)
${
LAPACK_INCLUDES
}
)
set
(
SUMMA_LIBS
"$ENV{EBROOTNETCDFMINFORTRAN}/lib64"
-lnetcdff
${
netCDF_LIBRARIES
}
${
LAPACK_LIBRARIES
}
SUMMA_NOAHMP
)
set
(
SUMMA_ACTORS_INCLUDES
${
CAF_INCLUDES
}
${
net
CDF
_
IN
CLUDES
}
"$ENV{EBROOTNET
CDF
M
IN
FORTRAN}/include"
${
LAPACK_INCLUDES
}
"
${
PARENT_DIR
}
/build/includes/global"
"
${
PARENT_DIR
}
/build/includes/summa_actor"
...
...
@@ -137,8 +136,11 @@ if (CMAKE_BUILD_TYPE MATCHES Cluster OR CMAKE_BUILD_TYPE MATCHES Cluster_Debug)
else
()
find_package
(
CAF REQUIRED
)
find_package
(
netCDF REQUIRED
)
find_package
(
LAPACK REQUIRED
)
if
(
SUNDIALS
)
link_directories
(
${
DIR_SUNDIALS
}
/lib
)
set
(
CMAKE_BUILD_RPATH
"
${
DIR_SUNDIALS
}
/lib:/usr/local/lib"
)
set
(
SUMMA_INCLUDES
"/usr/include"
...
...
@@ -219,8 +221,6 @@ else()
endif
()
if
(
SUNDIALS
)
link_directories
(
${
DIR_SUNDIALS
}
/lib
)
set
(
ACTORS_DIR
${
PARENT_DIR
}
/build/source/actors
)
set
(
DRIVER_DIR
${
PARENT_DIR
}
/build/source/driver
)
set
(
DSHARE_DIR
${
PARENT_DIR
}
/build/source/dshare
)
...
...
This diff is collapsed.
Click to expand it.
build/cmake/load_modules.sh
0 → 100755
+
7
−
0
View file @
9beadc02
#! /bin/bash
#### load modules if using Compute Canada or Copernicus ####
module load gcc/9.3.0
module load netcdf-fortran
module load openblas
module load caf
\ No newline at end of file
This diff is collapsed.
Click to expand it.
summa-sundials
@
c37bac1d
Subproject commit c37bac1ddcee9fb00deeeef0df1880587f85c02a
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