CPPuddle
Public Member Functions | List of all members
cppuddle::memory_recycling::device_selection::select_device_functor< T, Allocator > Struct Template Reference

Default device selector - No MultGPU support. More...

#include <buffer_management.hpp>

Public Member Functions

void operator() (const size_t device_id)
 

Detailed Description

template<typename T, typename Allocator>
struct cppuddle::memory_recycling::device_selection::select_device_functor< T, Allocator >

Default device selector - No MultGPU support.

Throws a runtime error if max_number_gpus > 1 (defined by cmake variable CPPUDDLE_WITH_MAX_NUMBER_GPUS). Needs to be specialized for an allocator to provide MultiGPU support (see CPPuddle CUDA/HIP allocators for examples)

Member Function Documentation

◆ operator()()

template<typename T , typename Allocator >
void cppuddle::memory_recycling::device_selection::select_device_functor< T, Allocator >::operator() ( const size_t  device_id)
inline

The documentation for this struct was generated from the following file: