Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
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
Chaofan Chen
ogs
Commits
adb11f5f
Commit
adb11f5f
authored
1 year ago
by
Lars Bilke
Browse files
Options
Downloads
Patches
Plain Diff
[eve] Use modules for petsc and hdf5.
parent
d0410ac5
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scripts/cmake/DependenciesExternalProject.cmake
+2
-2
2 additions, 2 deletions
scripts/cmake/DependenciesExternalProject.cmake
scripts/env/eve/petsc.sh
+5
-3
5 additions, 3 deletions
scripts/env/eve/petsc.sh
with
7 additions
and
5 deletions
scripts/cmake/DependenciesExternalProject.cmake
+
2
−
2
View file @
adb11f5f
...
@@ -149,10 +149,10 @@ if(OGS_USE_PETSC)
...
@@ -149,10 +149,10 @@ if(OGS_USE_PETSC)
set
(
_petsc_source URL
${
_petsc_source_file
}
)
set
(
_petsc_source URL
${
_petsc_source_file
}
)
elseif
(
NOT
(
OGS_PETSC_CONFIG_OPTIONS OR OGS_BUILD_PETSC
))
elseif
(
NOT
(
OGS_PETSC_CONFIG_OPTIONS OR OGS_BUILD_PETSC
))
find_package
(
PkgConfig REQUIRED
)
find_package
(
PkgConfig REQUIRED
)
pkg_search_module
(
PETS
C
IMPORTED_TARGET PETSc
)
pkg_search_module
(
PETS
c
IMPORTED_TARGET PETSc
)
endif
()
endif
()
if
(
NOT
PETSC_FOUND
)
if
(
NOT
TARGET PkgConfig::PETSc
)
set
(
_configure_opts
""
)
set
(
_configure_opts
""
)
if
(
NOT
"--download-fc"
IN_LIST OGS_PETSC_CONFIG_OPTIONS
)
if
(
NOT
"--download-fc"
IN_LIST OGS_PETSC_CONFIG_OPTIONS
)
list
(
APPEND _configure_opts --with-fc=0
)
list
(
APPEND _configure_opts --with-fc=0
)
...
...
This diff is collapsed.
Click to expand it.
scripts/env/eve/petsc.sh
+
5
−
3
View file @
adb11f5f
...
@@ -7,11 +7,13 @@ fi
...
@@ -7,11 +7,13 @@ fi
source
$DIR
/mpi.sh
source
$DIR
/mpi.sh
# TODO build these for foss2022b or remove it:
# TODO build these for foss2022b or remove it:
#module load petsc/3.18.5_foss2020b
#module load vtk/9.2.5_mpi_foss2020b
#module load vtk/9.2.5_mpi_foss2020b
#module load hdf5/1.14.0_mpi_foss_2020b
export
OGS_PETSC_CONFIG_OPTIONS
=
"--download-fc;--download-mumps;--download-hypre;--download-scalapack"
module load petsc/3.19.5_foss2022b
module load hdf5/1.14.2_mpi_foss_2022b
export
CMAKE_PREFIX_PATH
=
/global/apps/petsc/3.19.5.foss_2022b
export
HDF5_ROOT
=
/global/apps/hdf5/1.14.2_mpi
echo
-e
"Note: If you want to run a simulation on the cluster be aware of the"
\
echo
-e
"Note: If you want to run a simulation on the cluster be aware of the"
\
"mixed CPU architecture. There are Sandy-Bridge-based nodes (orte-28,"
\
"mixed CPU architecture. There are Sandy-Bridge-based nodes (orte-28,"
\
...
...
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