Skip to content

Automatically initialize Kokkos

Kenneth Moreland requested to merge kmorel/vtk-m:kokkos-auto-init into master

Calling vtkm::cont::Initialize() is supposed to be optional. However, Kokkos needs to have Kokkos::initialize() called before using some devices such as HIP. To make sure that Kokkos is properly initialized, the VTK-m allocation for the Kokkos device now checks to see if Kokkos::is_initialized() is true. If it is not, then vtkm::cont::Initialize() is called.

Fixes: fides#26

Edited by Kenneth Moreland

Merge request reports

Loading