44 #ifndef KOKKOS_CORE_HPP 45 #define KOKKOS_CORE_HPP 50 #include <Kokkos_Core_fwd.hpp> 52 #if defined( KOKKOS_HAVE_SERIAL ) 56 #if defined( KOKKOS_HAVE_OPENMP ) 57 #include <Kokkos_OpenMP.hpp> 60 #if defined( KOKKOS_HAVE_PTHREAD ) 61 #include <Kokkos_Threads.hpp> 64 #if defined( KOKKOS_HAVE_CUDA ) 65 #include <Kokkos_Cuda.hpp> 68 #include <Kokkos_MemoryPool.hpp> 70 #include <Kokkos_Array.hpp> 71 #include <Kokkos_View.hpp> 74 #include <Kokkos_hwloc.hpp> 75 #include <Kokkos_Timer.hpp> 77 #ifdef KOKKOS_HAVE_CXX11 78 #include <Kokkos_Complex.hpp> 86 struct InitArguments {
98 void initialize(
int& narg,
char* arg[]);
100 void initialize(
const InitArguments& args = InitArguments());
121 template<
class Space =
typename Kokkos::DefaultExecutionSpace::memory_space >
123 void * kokkos_malloc(
const std::string & arg_alloc_label
124 ,
const size_t arg_alloc_size )
126 typedef typename Space::memory_space MemorySpace ;
127 return Impl::SharedAllocationRecord< MemorySpace >::
128 allocate_tracked( MemorySpace() , arg_alloc_label , arg_alloc_size );
131 template<
class Space =
typename Kokkos::DefaultExecutionSpace::memory_space >
133 void * kokkos_malloc(
const size_t arg_alloc_size )
135 typedef typename Space::memory_space MemorySpace ;
136 return Impl::SharedAllocationRecord< MemorySpace >::
137 allocate_tracked( MemorySpace() ,
"no-label" , arg_alloc_size );
140 template<
class Space =
typename Kokkos::DefaultExecutionSpace::memory_space >
142 void kokkos_free(
void * arg_alloc )
144 typedef typename Space::memory_space MemorySpace ;
145 return Impl::SharedAllocationRecord< MemorySpace >::
146 deallocate_tracked( arg_alloc );
149 template<
class Space =
typename Kokkos::DefaultExecutionSpace::memory_space >
151 void * kokkos_realloc(
void * arg_alloc ,
const size_t arg_alloc_size )
153 typedef typename Space::memory_space MemorySpace ;
154 return Impl::SharedAllocationRecord< MemorySpace >::
155 reallocate_tracked( arg_alloc , arg_alloc_size );
Declaration and definition of Kokkos::Vectorization interface.
Declaration and definition of Kokkos::pair.
Declaration and definition of Kokkos::Serial device.
void finalize_all()
Finalize all known execution spaces.
void finalize()
Finalize the spaces that were initialized via Kokkos::initialize.