Commit b2d42cb3 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

gitlab-ci: add CUDA jobs

parent 84229d22
......@@ -68,6 +68,39 @@ test-ext:vtk:fedora33-mpi-renderless:
needs:
- test:fedora33-mpi-renderless
build:fedora33-cuda-mpi:
extends:
- .fedora33_cuda_mpi
- .cmake_build_linux
- .linux_builder_tags
- .cmake_build_artifacts
- .run_manually
timeout: 2 hours
test:fedora33-cuda-mpi:
extends:
- .fedora33_cuda_mpi
- .cmake_test_linux
- .linux_builder_tags
- .cmake_test_artifacts
- .run_automatically
dependencies:
- build:fedora33-cuda-mpi
needs:
- build:fedora33-cuda-mpi
test-ext:vtk:fedora33-cuda-mpi:
extends:
- .fedora33_cuda_mpi_ext_vtk
- .cmake_test_external_linux
- .linux_builder_tags
- .cmake_tidy_artifacts
- .run_automatically
dependencies:
- test:fedora33-cuda-mpi
needs:
- test:fedora33-cuda-mpi
build:fedora33-mpi-offscreen-osmesa-python:
extends:
- .fedora33_mpi_offscreen_osmesa_python
......
{
"latest-master": [
{
"group": "master",
"site": "gitlab-ci",
"buildname": "[fedora33_cuda_mpi]"
},
{
"group": "master",
"site": "gitlab-ci",
"buildname": "[fedora33_cuda_mpi_ext_vtk]"
},
{
"group": "master",
"site": "gitlab-ci",
......
include("${CMAKE_CURRENT_LIST_DIR}/configure_fedora33.cmake")
# Modules which require software not in the CI image.
set(VTK_MODULE_ENABLE_VTK_RenderingRayTracing NO CACHE STRING "") # ospray
if ("$ENV{CMAKE_CONFIGURATION}" MATCHES "cuda")
set(VTK_MODULE_ENABLE_VTK_fides NO CACHE STRING "") # needs support for CUDA-enabled VTK-m
endif ()
if ("$ENV{CMAKE_CONFIGURATION}" MATCHES "offscreen")
set(VTK_USE_X OFF CACHE BOOL "")
else ()
......
......@@ -35,6 +35,12 @@ endif ()
# cuda
configuration_flag(VTK_USE_CUDA "cuda")
if ("$ENV{CMAKE_CONFIGURATION}" MATCHES "cuda")
# Compile for a range of hardware to support testing on any available machine.
set(CMAKE_CUDA_ARCHITECTURES 60-real 70-real 75-real 80 CACHE STRING "")
# Lowest-common denominator.
set(VTKm_CUDA_Architecture "pascal" CACHE STRING "")
endif ()
# osmesa
configuration_flag(VTK_OPENGL_HAS_OSMESA "osmesa")
......
......@@ -11,6 +11,11 @@
extends: .linux
image: "kitware/vtk:ci-fedora33-20210419"
.fedora_cuda_addon:
variables:
CUDACC: "/usr/local/cuda-11.2/bin/nvcc"
CUDACXX: "/usr/local/cuda-11.2/bin/nvcc"
.fedora_mpich_addon:
variables:
MODULES: mpi/mpich-x86_64
......@@ -34,6 +39,25 @@
variables:
CMAKE_CONFIGURATION: fedora33_doxygen_mpi_python_qt_tbb
.fedora33_cuda_mpi:
extends:
- .fedora33
- .fedora_cuda_addon
- .fedora_mpich_addon
variables:
CMAKE_CONFIGURATION: fedora33_cuda_mpi
VTK_INSTALL: 1
.fedora33_cuda_mpi_ext_vtk:
extends:
- .fedora33
- .fedora_cuda_addon
- .fedora_mpich_addon
variables:
CMAKE_CONFIGURATION: fedora33_cuda_mpi_ext_vtk
.fedora33_mpi_offscreen_osmesa_python:
extends:
- .fedora33
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment