-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update sensei CI container for sensei v4.0 integration (#2834)
* Update sensei CI container for sensei v4.0 integration * Add simple script for building and pushing sensei container
- Loading branch information
1 parent
204bd7c
commit adfdab0
Showing
6 changed files
with
93 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,29 @@ | ||
FROM fedora:33 | ||
FROM fedora:35 | ||
|
||
# Set install root | ||
ENV PACKAGE_ROOT=/root/install | ||
|
||
COPY tools.sh /root/bin/tools.sh | ||
|
||
# Copy and run the install script | ||
COPY install_deps.sh /root/bin/install_deps.sh | ||
RUN /root/bin/install_deps.sh | ||
|
||
# Configure MPI environment | ||
ENV MPI_HOME=/usr/lib64/openmpi/ | ||
|
||
# Configure Python environment | ||
ENV PYTHONPATH=/usr/lib64/python3.9/site-packages/openmpi | ||
ENV PYTHONPATH=/usr/lib64/python3.10/site-packages/openmpi | ||
|
||
# Configure VTK environment | ||
ENV VTK_VERSION=9.0.1 | ||
ENV VTK_VERSION=9.1.0 | ||
ENV VTK_DIR=${PACKAGE_ROOT}/vtk/${VTK_VERSION} | ||
|
||
# Configure Sensei Environment | ||
ENV SENSEI_VERSION=develop | ||
ENV SENSEI_DIR=${PACKAGE_ROOT}/sensei/${SENSEI_VERSION} | ||
|
||
# Copy and run the install script | ||
COPY install_deps.sh /root/bin/install_deps.sh | ||
RUN /root/bin/install_deps.sh | ||
|
||
COPY tools.sh /root/bin/tools.sh | ||
|
||
COPY install_vtk_minimal.sh /root/bin/install_vtk.sh | ||
COPY vtk_use_mpi.patch /tmp/vtk_use_mpi.patch | ||
RUN /root/bin/install_vtk.sh | ||
|
||
# Configure Sensei Environment | ||
ENV SENSEI_VERSION=v4.0.0 | ||
ENV SENSEI_DIR=${PACKAGE_ROOT}/sensei/${SENSEI_VERSION} | ||
COPY install_sensei.sh /root/bin/install_sensei.sh | ||
RUN /root/bin/install_sensei.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
image_name=senseiinsitu/ci:fedora35-amrex-$(date +%Y%m%d) | ||
docker build --tag $image_name . | ||
docker push $image_name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index a9d56e765c..6ce9d80cb2 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -178,10 +178,18 @@ set("_vtk_module_reason_VTK::Java" | ||
"via `VTK_WRAP_JAVA`") | ||
# For vtkTkRenderWidget (only useful with Python, since WRAP_TCL is gone) | ||
if (VTK_USE_TK) | ||
- set(VTK_GROUP_ENABLE_Tk YES) | ||
+ if (VTK_GROUP_ENABLE_Tk STREQUAL "DEFAULT") | ||
+ set(VTK_GROUP_ENABLE_Tk "WANT") | ||
+ elseif (VTK_GROUP_ENABLE_Tk STREQUAL "NO") | ||
+ message(FATAL_ERROR "VTK_USE_TK=ON is not compatible with VTK_GROUP_ENABLE_Tk=NO") | ||
+ endif () | ||
endif () | ||
if (VTK_USE_MPI) | ||
- set(VTK_GROUP_ENABLE_MPI YES) | ||
+ if (VTK_GROUP_ENABLE_MPI STREQUAL "DEFAULT") | ||
+ set(VTK_GROUP_ENABLE_MPI "WANT") | ||
+ elseif (VTK_GROUP_ENABLE_MPI STREQUAL "NO") | ||
+ message(FATAL_ERROR "VTK_USE_MPI=ON is not compatible with VTK_GROUP_ENABLE_MPI=NO") | ||
+ endif () | ||
else () | ||
# Reject `VTK::mpi`, but allow those which happen to be part of the group to | ||
# be built. | ||
diff --git a/Documentation/release/dev/change-vtk-use-mpi-tk-behavior.md b/Documentation/release/dev/change-vtk-use-mpi-tk-behavior.md | ||
new file mode 100644 | ||
index 0000000000..4a59b225b0 | ||
--- /dev/null | ||
+++ b/Documentation/release/dev/change-vtk-use-mpi-tk-behavior.md | ||
@@ -0,0 +1,8 @@ | ||
+## `VTK_USE_MPI`/`VTK_USE_TK` are less aggresive | ||
+ | ||
+The configure option `VTK_USE_MPI` and `VTK_USE_TK` no longer forces their | ||
+respective Groups on. They will now either change the default to `WANT` or use | ||
+the specified value for `VTK_GROUP_ENABLE_{MPI,Tk}`. | ||
+ | ||
+There is now an explicit error when either `VTK_USE_{MPI,TK}` is `ON` but the | ||
+respective group is configured as `NO`. |