mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
d348b11183
The reason why we did not support shared libraries when CUDA compiles were on is that virtual methods require a special linking step to pull together all virtual methods that might be called. I other words, you cannot call a virtual CUDA method defined inside a library. This requirement goes away when virtuals are removed. Also removed the necessity of using seprable compilation with cuda. Again, this is only needed when a CUDA function is defined in one translation unit and used in another. Now we can enforce that all translation units define their own CUDA functions. Also, suppress warnings in cuda/internal/ExecutionPolicy.h This is where we call the thrust algorithms. There must be some loop where it, on some code path, calls back a host function. This must be in an execution path that never happens. The thrust version has its own suppress, but that does not seem to actually suppress the warning (it just means that the warning does not tell you where the actual call is). Get around the problem by suppressing the warnings in VTK-m. Co-authored-by: Kenneth Moreland <morelandkd@ornl.gov> Co-authored-by: Vicente Adolfo Bolea Sanchez <vicente.bolea@kitware.com> Signed-off-by: Vicente Adolfo Bolea Sanchez <vicente.bolea@kitware.com>
223 lines
4.1 KiB
YAML
223 lines
4.1 KiB
YAML
|
|
# Build on ubuntu1804 with TBB and OpenMP and test on ubuntu1804
|
|
# Uses gcc 9
|
|
# Uses MPICH2
|
|
build:ubuntu1804_gcc9:
|
|
tags:
|
|
- build
|
|
- vtkm
|
|
- docker
|
|
- linux
|
|
extends:
|
|
- .ubuntu1804
|
|
- .cmake_build_linux
|
|
- .only-default
|
|
variables:
|
|
CC: "gcc-9"
|
|
CXX: "g++-9"
|
|
CMAKE_BUILD_TYPE: Debug
|
|
VTKM_SETTINGS: "benchmarks+tbb+openmp+mpi+shared+hdf5"
|
|
|
|
test:ubuntu1804_gcc9:
|
|
tags:
|
|
- test
|
|
- vtkm
|
|
- docker
|
|
- linux
|
|
extends:
|
|
- .ubuntu1804
|
|
- .cmake_test_linux
|
|
- .only-default
|
|
variables:
|
|
#Restrict OpenMP number of threads since multiple test stages
|
|
#execute on the same hardware concurrently
|
|
OMP_NUM_THREADS: 4
|
|
dependencies:
|
|
- build:ubuntu1804_gcc9
|
|
needs:
|
|
- build:ubuntu1804_gcc9
|
|
|
|
# Build on ubuntu1804 with CUDA + MPI and test on ubuntu1804
|
|
# Uses gcc 7
|
|
# Uses MPICH2
|
|
build:ubuntu1804_gcc7:
|
|
tags:
|
|
- build
|
|
- vtkm
|
|
- docker
|
|
- linux
|
|
- cuda-rt
|
|
- large-memory
|
|
extends:
|
|
- .ubuntu1804_cuda
|
|
- .cmake_build_linux
|
|
- .only-default
|
|
variables:
|
|
CC: "gcc-7"
|
|
CXX: "g++-7"
|
|
CUDAHOSTCXX: "g++-7"
|
|
VTKM_SETTINGS: "benchmarks+cuda+turing+mpi+64bit_floats+no_virtual+shared"
|
|
|
|
test:ubuntu1804_gcc7:
|
|
tags:
|
|
- test
|
|
- vtkm
|
|
- docker
|
|
- linux
|
|
- cuda-rt
|
|
- turing
|
|
extends:
|
|
- .ubuntu1804_cuda
|
|
- .cmake_test_linux
|
|
- .only-default
|
|
dependencies:
|
|
- build:ubuntu1804_gcc7
|
|
needs:
|
|
- build:ubuntu1804_gcc7
|
|
|
|
|
|
# Build on ubuntu1804 with CUDA+TBB and test on ubuntu1804
|
|
# Uses clang as CUDA host compiler
|
|
# Runs only on nightlies
|
|
build:ubuntu1804_clang_cuda:
|
|
tags:
|
|
- build
|
|
- vtkm
|
|
- docker
|
|
- linux
|
|
- cuda-rt
|
|
- large-memory
|
|
extends:
|
|
- .ubuntu1804_cuda
|
|
- .cmake_build_linux
|
|
- .only-default
|
|
# - .only-master
|
|
variables:
|
|
CC: "clang-8"
|
|
CXX: "clang++-8"
|
|
CUDAHOSTCXX: "clang++-8"
|
|
VTKM_SETTINGS: "cuda+pascal+tbb+examples+no_virtual+shared"
|
|
|
|
test:ubuntu1804_clang_cuda:
|
|
tags:
|
|
- test
|
|
- vtkm
|
|
- docker
|
|
- linux
|
|
- cuda-rt
|
|
- pascal
|
|
extends:
|
|
- .ubuntu1804_cuda
|
|
- .cmake_test_linux
|
|
- .only-default
|
|
# - .only-master
|
|
dependencies:
|
|
- build:ubuntu1804_clang_cuda
|
|
needs:
|
|
- build:ubuntu1804_clang_cuda
|
|
|
|
# Build on ubuntu1804 with OpenMP and test on ubuntu1804
|
|
# Uses gcc 6.5
|
|
build:ubuntu1804_gcc6:
|
|
tags:
|
|
- build
|
|
- vtkm
|
|
- docker
|
|
- linux
|
|
extends:
|
|
- .ubuntu1804
|
|
- .cmake_build_linux
|
|
- .only-default
|
|
variables:
|
|
CC: "gcc-6"
|
|
CXX: "g++-6"
|
|
VTKM_SETTINGS: "openmp+shared+examples"
|
|
|
|
test:ubuntu1804_gcc6:
|
|
tags:
|
|
- test
|
|
- vtkm
|
|
- docker
|
|
- linux
|
|
extends:
|
|
- .ubuntu1804
|
|
- .cmake_test_linux
|
|
- .only-default
|
|
variables:
|
|
#Restrict OpenMP number of threads since multiple test stages
|
|
#execute on the same hardware concurrently
|
|
OMP_NUM_THREADS: 3
|
|
dependencies:
|
|
- build:ubuntu1804_gcc6
|
|
needs:
|
|
- build:ubuntu1804_gcc6
|
|
|
|
# Build on ubuntu1804 with TBB and test on ubuntu1804
|
|
# Uses clang 8
|
|
build:ubuntu1804_clang8:
|
|
tags:
|
|
- build
|
|
- vtkm
|
|
- docker
|
|
- linux
|
|
extends:
|
|
- .ubuntu1804
|
|
- .cmake_build_linux
|
|
- .only-default
|
|
variables:
|
|
CC: "clang-8"
|
|
CXX: "clang++-8"
|
|
CMAKE_BUILD_TYPE: Debug
|
|
VTKM_SETTINGS: "tbb+shared+examples"
|
|
|
|
test:ubuntu1804_clang8:
|
|
tags:
|
|
- test
|
|
- vtkm
|
|
- docker
|
|
- linux
|
|
extends:
|
|
- .ubuntu1804
|
|
- .cmake_test_linux
|
|
- .only-default
|
|
dependencies:
|
|
- build:ubuntu1804_clang8
|
|
needs:
|
|
- build:ubuntu1804_clang8
|
|
|
|
# Build on ubuntu1804 with kokkos and test on ubuntu1804
|
|
# Uses CUDA 11
|
|
build:ubuntu1804_kokkos:
|
|
tags:
|
|
- build
|
|
- vtkm
|
|
- docker
|
|
- linux
|
|
- cuda-rt
|
|
- large-memory
|
|
extends:
|
|
- .ubuntu1804_cuda_kokkos
|
|
- .cmake_build_linux
|
|
- .only-default
|
|
variables:
|
|
CMAKE_GENERATOR: "Ninja"
|
|
CMAKE_BUILD_TYPE: Release
|
|
VTKM_SETTINGS: "benchmarks+kokkos+turing+64bit_floats+no_virtual+shared"
|
|
|
|
test:ubuntu1804_kokkos:
|
|
tags:
|
|
- test
|
|
- vtkm
|
|
- docker
|
|
- linux
|
|
- cuda-rt
|
|
- turing
|
|
extends:
|
|
- .ubuntu1804_cuda_kokkos
|
|
- .cmake_test_linux
|
|
- .only-default
|
|
dependencies:
|
|
- build:ubuntu1804_kokkos
|
|
needs:
|
|
- build:ubuntu1804_kokkos
|