Skip to content
Snippets Groups Projects
Commit 63c2f6d0 authored by Dan Lipsa's avatar Dan Lipsa
Browse files

Enable Catalyst for CUDA builds

parent 8c9fd7cf
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,6 @@ set(VTK_MODULE_ENABLE_VTK_RenderingOpenXR NO CACHE STRING "") # OpenXR
set(VTK_MODULE_ENABLE_VTK_RenderingRayTracing NO CACHE STRING "") # ospray
set(VTK_MODULE_ENABLE_VTK_fides NO CACHE STRING "") # adios
set(VTK_MODULE_ENABLE_VTK_xdmf3 NO CACHE STRING "") # boost
set(VTK_ENABLE_CATALYST OFF CACHE BOOL "") # catalyst
# These are all tested in the non-CUDA CI job instead. This focuses on the CUDA
# bits.
......
# Lowest-common denominator. Pascal = 60
set(CMAKE_CUDA_ARCHITECTURES 60 CACHE STRING "")
# catalyst is not installed on cuda image
set(VTK_ENABLE_CATALYST OFF CACHE BOOL "")
# OpenXR do not support OSMesa
set(VTK_MODULE_ENABLE_VTK_RenderingOpenXR NO CACHE STRING "")
......
......@@ -6,3 +6,6 @@ RUN sh /root/install_deps.sh
COPY install_cuda.sh /root/install_cuda.sh
RUN sh /root/install_cuda.sh
COPY install_catalyst.sh /root/install_catalyst.sh
RUN sh /root/install_catalyst.sh
#!/bin/sh
readonly catalyst_repo="https://gitlab.kitware.com/paraview/catalyst"
# Use 2.0.0 release
readonly catalyst_commit="v2.0.0"
readonly catalyst_root="$HOME/catalyst"
readonly catalyst_src="$catalyst_root/src"
readonly catalyst_build_root="$catalyst_root/build"
git clone "$catalyst_repo" "$catalyst_src"
git -C "$catalyst_src" checkout "$catalyst_commit"
catalyst_build () {
local subdir="$1"
shift
local prefix="$1"
shift
cmake -GNinja \
-S "$catalyst_src" \
-B "$catalyst_build_root/$subdir" \
-DCATALYST_BUILD_SHARED_LIBS=ON \
-DCATALYST_BUILD_TESTING=OFF \
-DCMAKE_BUILD_TYPE=Release \
"-DCMAKE_INSTALL_PREFIX=$prefix" \
"$@"
cmake --build "$catalyst_build_root/$subdir" --target install
}
# MPI-less
catalyst_build nompi /usr \
-DCATALYST_USE_MPI=OFF
# MPICH
catalyst_build mpich /usr/lib64/mpich \
-DCATALYST_USE_MPI=ON \
-DCMAKE_INSTALL_LIBDIR=lib
# OpenMPI
catalyst_build openmpi /usr/lib64/openmpi \
-DCATALYST_USE_MPI=ON \
-DCMAKE_INSTALL_LIBDIR=lib
rm -rf "$catalyst_root"
......@@ -8,7 +8,7 @@ dnf install -y --setopt=install_weak_deps=False \
# Development tools
dnf install -y --setopt=install_weak_deps=False \
ninja-build
cmake ninja-build
# MPI dependencies
dnf install -y --setopt=install_weak_deps=False \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment