|
| void | xpu::initialize (settings={}) |
| | Initialize xpu.
|
| |
| template<typename I > |
| void | xpu::preload () |
| | Preload the given device image.
|
| |
| void * | xpu::malloc_device (size_t size_bytes) |
| | Allocate memory on the device.
|
| |
| template<typename T > |
| T * | xpu::malloc_device (size_t elems) |
| | Allocate memory on the device.
|
| |
| void * | xpu::malloc_pinned (size_t size_bytes) |
| | Allocate pinned memory on the host that can be accessed by the device.
|
| |
| template<typename T > |
| T * | xpu::malloc_pinned (size_t elems) |
| | Allocate pinned memory on the host that can be accessed by the device.
|
| |
| template<typename T > |
| T * | xpu::malloc_host (size_t elems) |
| | Allocate pinned memory on the host that can be accessed by the device.
|
| |
| void * | xpu::malloc_managed (size_t size_bytes) |
| | Allocate memory that can be accessed by the device and the host.
|
| |
| template<typename T > |
| T * | xpu::malloc_managed (size_t elems) |
| | Allocate memory that can be accessed by the device and the host.
|
| |
| void | xpu::free (void *) |
| | Free memory allocated with malloc_device, malloc_pinned or malloc_managed.
|
| |
| void | xpu::stack_alloc (size_t size) |
| | Allocate the stack memory on the device.
|
| |
| void | xpu::stack_pop (void *head=nullptr) |
| | Pop entries from the stack.
|
| |
| template<typename Kernel > |
| const char * | xpu::get_name () |
| |
| template<typename Func , typename... Args> |
| void | xpu::call (Args &&... args) |
| |
| template<typename C > |
| void | xpu::set (const typename C::data_t &symbol) |
| |
| void | xpu::push_timer (std::string_view name) |
| |
| timings | xpu::pop_timer () |
| |
| void | xpu::t_add_bytes (size_t bytes) |
| |
| template<typename Kernel > |
| void | xpu::k_add_bytes (size_t bytes) |
| |
Host API.
This file contains the host API of xpu.
Include as #include <xpu/host.h>.