Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
katoptron
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review 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
Aerospace and Mechanical Engineering
katoptron
Merge requests
!1
Import Katoptron from Waves
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Import Katoptron from Waves
boman
into
main
Overview
0
Commits
7
Pipelines
1
Changes
3
Merged
Boman Romain
requested to merge
boman
into
main
2 years ago
Overview
0
Commits
7
Pipelines
1
Changes
3
Expand
This first MR imports the code from the old
waves
repository.
0
0
Merge request reports
Viewing commit
212b2b02
Prev
Next
Show latest version
3 files
+
43
−
13
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
212b2b02
build & test ubuntu 22.04 OK
· 212b2b02
Boman Romain
authored
2 years ago
CMake/FindMPI4PY.cmake
0 → 100644
+
42
−
0
Options
# Copyright 2022 University of Liège
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
if
(
NOT MPI4PY_INCLUDE_DIR
)
execute_process
(
COMMAND
"
${
PYTHON_EXECUTABLE
}
"
"-c"
"import mpi4py; print(mpi4py.get_include())"
OUTPUT_VARIABLE MPI4PY_INCLUDE_DIR
RESULT_VARIABLE MPI4PY_COMMAND_RESULT
OUTPUT_STRIP_TRAILING_WHITESPACE
)
if
(
MPI4PY_COMMAND_RESULT
)
message
(
"waves/CMake/FindMPI4PY: mpi4py not found"
)
set
(
MPI4PY_FOUND FALSE
)
else
(
MPI4PY_COMMAND_RESULT
)
if
(
MPI4PY_INCLUDE_DIR MATCHES
"Traceback"
)
message
(
"waves/CMake/FindMPI4PY: mpi4py matches traceback"
)
## Did not successfully include MPI4PY
set
(
MPI4PY_FOUND FALSE
)
else
(
MPI4PY_INCLUDE_DIR MATCHES
"Traceback"
)
## successful
set
(
MPI4PY_FOUND TRUE
)
set
(
MPI4PY_INCLUDE_DIR
${
MPI4PY_INCLUDE_DIR
}
CACHE STRING
"mpi4py include path"
)
endif
(
MPI4PY_INCLUDE_DIR MATCHES
"Traceback"
)
endif
(
MPI4PY_COMMAND_RESULT
)
else
(
NOT MPI4PY_INCLUDE_DIR
)
set
(
MPI4PY_FOUND TRUE
)
endif
(
NOT MPI4PY_INCLUDE_DIR
)
# ----------------------------------------------------------------------------
include
(
FindPackageHandleStandardArgs
)
find_package_handle_standard_args
(
MPI4PY DEFAULT_MSG
MPI4PY_INCLUDE_DIR
)
Loading