CPPuddle
Loading...
Searching...
No Matches
allocator_kokkos_executor_for_loop_test.cpp File Reference
#include <hpx/hpx_init.hpp>
#include <hpx/include/async.hpp>
#include <hpx/include/lcos.hpp>
#include <hpx/kokkos.hpp>
#include <Kokkos_Core.hpp>
#include <cstdio>
#include <typeinfo>
#include <hpx/timing/high_resolution_timer.hpp>
#include <memory>
#include "cppuddle/memory_recycling/std_recycling_allocators.hpp"
#include "cppuddle/memory_recycling/cuda_recycling_allocators.hpp"
#include "cppuddle/memory_recycling/util/recycling_kokkos_view.hpp"
#include <cassert>
Include dependency graph for allocator_kokkos_executor_for_loop_test.cpp:

Macros

#define USE_HPX_MAIN

Typedefs

template<class T>
using kokkos_um_array
template<class T>
using recycle_host_view
template<class T>
using kokkos_um_device_array
template<class T>
using recycle_device_view
template<class T>
using kokkos_um_pinned_array
template<class T>
using recycle_pinned_view

Functions

template<typename Executor, typename ViewType>
auto get_iteration_policy (const Executor &&executor, const ViewType &view_to_iterate)
int hpx_main (int argc, char *argv[])
int main (int argc, char *argv[])

Variables

constexpr size_t view_size_0 = 10
constexpr size_t view_size_1 = 50

Macro Definition Documentation

◆ USE_HPX_MAIN

#define USE_HPX_MAIN

Typedef Documentation

◆ kokkos_um_array

template<class T>
using kokkos_um_array
Initial value:
Kokkos::View<T **, Kokkos::HostSpace, Kokkos::MemoryUnmanaged>

◆ kokkos_um_device_array

template<class T>
using kokkos_um_device_array
Initial value:
Kokkos::View<T **, Kokkos::CudaSpace, Kokkos::MemoryUnmanaged>

◆ kokkos_um_pinned_array

template<class T>
using kokkos_um_pinned_array
Initial value:
Kokkos::View<T **, typename kokkos_um_device_array<T>::array_layout,
Kokkos::CudaHostPinnedSpace, Kokkos::MemoryUnmanaged>

◆ recycle_device_view

template<class T>
using recycle_device_view
Initial value:
Kokkos::View< T **, Kokkos::CudaSpace, Kokkos::MemoryUnmanaged > kokkos_um_device_array
Definition allocator_kokkos_executor_for_loop_test.cpp:45
Definition recycling_kokkos_view.hpp:103
detail::recycle_allocator< T, detail::cuda_device_allocator< T > > recycle_allocator_cuda_device
Recycling allocator for CUDA device memory.
Definition cuda_recycling_allocators.hpp:55

◆ recycle_host_view

template<class T>
using recycle_host_view
Initial value:
Kokkos::View< T **, Kokkos::HostSpace, Kokkos::MemoryUnmanaged > kokkos_um_array
Definition allocator_kokkos_executor_for_loop_test.cpp:37
detail::recycle_allocator< T, std::allocator< T > > recycle_std
Recycling allocator for std memory.
Definition std_recycling_allocators.hpp:30

◆ recycle_pinned_view

template<class T>
using recycle_pinned_view
Initial value:
Kokkos::View< T **, typename kokkos_um_device_array< T >::array_layout, Kokkos::CudaHostPinnedSpace, Kokkos::MemoryUnmanaged > kokkos_um_pinned_array
Definition allocator_kokkos_executor_for_loop_test.cpp:54
detail::aggressive_recycle_allocator< T, detail::cuda_pinned_allocator< T > > recycle_allocator_cuda_host
Recycling allocator for CUDA pinned host memory.
Definition cuda_recycling_allocators.hpp:51

Function Documentation

◆ get_iteration_policy()

template<typename Executor, typename ViewType>
auto get_iteration_policy ( const Executor && executor,
const ViewType & view_to_iterate )

◆ hpx_main()

int hpx_main ( int argc,
char * argv[] )

◆ main()

int main ( int argc,
char * argv[] )

Variable Documentation

◆ view_size_0

size_t view_size_0 = 10
constexpr

◆ view_size_1

size_t view_size_1 = 50
constexpr