Line data Source code
1 : //* This file is part of the MOOSE framework 2 : //* https://mooseframework.inl.gov 3 : //* 4 : //* All rights reserved, see COPYRIGHT for full restrictions 5 : //* https://github.com/idaholab/moose/blob/master/COPYRIGHT 6 : //* 7 : //* Licensed under LGPL 2.1, please see LICENSE for details 8 : //* https://www.gnu.org/licenses/lgpl-2.1.html 9 : 10 : #include "KokkosDispatcher.h" 11 : 12 : namespace Moose::Kokkos 13 : { 14 : 15 : DispatcherRegistry & 16 24878332 : DispatcherRegistry::getRegistry() 17 : { 18 : static DispatcherRegistry * registry = nullptr; 19 24878332 : if (!registry) 20 40355 : registry = new DispatcherRegistry(); 21 24878332 : return *registry; 22 : } 23 : 24 : } // namespace Moose::Kokkos