Skip to content
Snippets Groups Projects

Automatically initialize Kokkos (backport)

Merged Kenneth Moreland requested to merge kmorel/vtk-m:kokkos-auto-init-backport into release

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.

This is a backport of !3286 (merged)

Backport: release-2.0
Backport: release-2.1

Edited by Vicente Bolea

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading