spla
Public Member Functions | List of all members
spla::CLAlloc Class Referenceabstract

Base class for any device-local opencl buffer allocator. More...

#include <cl_alloc.hpp>

Inheritance diagram for spla::CLAlloc:
Inheritance graph
[legend]

Public Member Functions

virtual ~CLAlloc ()=default
 
virtual cl::Buffer alloc (std::size_t size)=0
 
virtual void free (cl::Buffer buffer)=0
 
virtual void free_all ()=0
 

Detailed Description

Base class for any device-local opencl buffer allocator.

Constructor & Destructor Documentation

◆ ~CLAlloc()

virtual spla::CLAlloc::~CLAlloc ( )
virtualdefault

Member Function Documentation

◆ alloc()

virtual cl::Buffer spla::CLAlloc::alloc ( std::size_t  size)
pure virtual

◆ free()

virtual void spla::CLAlloc::free ( cl::Buffer  buffer)
pure virtual

◆ free_all()

virtual void spla::CLAlloc::free_all ( )
pure virtual

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