CPPuddle
Loading...
Searching...
No Matches
Macros | Typedefs | Functions | Variables
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 = Kokkos::View< T **, Kokkos::HostSpace, Kokkos::MemoryUnmanaged >
 
template<class T >
using recycle_host_view = cppuddle::memory_recycling::recycling_view< kokkos_um_array< T >, cppuddle::memory_recycling::recycle_std< T >, T >
 
template<class T >
using kokkos_um_device_array = Kokkos::View< T **, Kokkos::CudaSpace, Kokkos::MemoryUnmanaged >
 
template<class T >
using recycle_device_view = cppuddle::memory_recycling::recycling_view< kokkos_um_device_array< T >, cppuddle::memory_recycling::recycle_allocator_cuda_device< T >, T >
 
template<class T >
using kokkos_um_pinned_array = Kokkos::View< T **, typename kokkos_um_device_array< T >::array_layout, Kokkos::CudaHostPinnedSpace, Kokkos::MemoryUnmanaged >
 
template<class T >
using recycle_pinned_view = cppuddle::memory_recycling::recycling_view< kokkos_um_pinned_array< T >, cppuddle::memory_recycling::recycle_allocator_cuda_host< T >, T >
 

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 = Kokkos::View<T **, Kokkos::HostSpace, Kokkos::MemoryUnmanaged>

◆ kokkos_um_device_array

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

◆ kokkos_um_pinned_array

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

◆ recycle_device_view

◆ recycle_host_view

◆ recycle_pinned_view

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

constexpr size_t view_size_0 = 10
constexpr

◆ view_size_1

constexpr size_t view_size_1 = 50
constexpr