rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
memory_resource_kind.hpp
1// SPDX-License-Identifier: GPL-3.0-only
2
3#pragma once
4
5#include <rexlib/core/platform/dynamic_shared_object.h>
6
7namespace rexlib
8{
9
14{
17 unified,
18
22 managed,
23
27
31
35
38 host,
39};
40
53REXLIB_API
55
68REXLIB_API
70
79REXLIB_API
81
90REXLIB_API
92
93} // namespace rexlib
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10
int score_host_affinity(memory_resource_kind kind) noexcept
Assign a numeric affinity score for host use to a memory kind.
@ host
The memory resource can be optimally accessed by the host.
int score_device_affinity(memory_resource_kind kind) noexcept
Assign a numeric affinity score for device use to a memory kind.
bool is_host_accessible(memory_resource_kind kind) noexcept
Check if the memory kind can be directly accessed from the host.
memory_resource_kind
Describes the nature of a memory resource.
Definition memory_resource_kind.hpp:14
bool is_device_accessible(memory_resource_kind kind) noexcept
Check if the memory kind can be directly accessed from the device.