40 template<
typename TPlatform,
typename TSfinae>
60 DevCpu() : m_spDevCpuImpl(
std::make_shared<cpu::detail::DevCpuImpl>())
72 return !((*this) == rhs);
77 return m_spDevCpuImpl->getAllExistingQueues();
84 m_spDevCpuImpl->registerQueue(spQueue);
105 std::shared_ptr<cpu::detail::DevCpuImpl> m_spDevCpuImpl;
117 return dev.m_spDevCpuImpl->deviceProperties(dev)->name;
127 return dev.m_spDevCpuImpl->deviceProperties(dev)->totalGlobalMem;
#define ALPAKA_DEBUG_FULL_LOG_SCOPE
auto operator!=(DevCpu const &rhs) const -> bool
static void setDeviceProperties(alpaka::DevCpu const &, alpaka::DeviceProperties &devProperties)
auto getNativeHandle() const noexcept
auto operator==(DevCpu const &) const -> bool
ALPAKA_FN_HOST auto getAllQueues() const -> std::vector< std::shared_ptr< cpu::ICpuQueue > >
ALPAKA_FN_HOST auto registerQueue(std::shared_ptr< cpu::ICpuQueue > spQueue) const -> void
Registers the given queue on this device. NOTE: Every queue has to be registered for correct function...
auto getTotalGlobalMemSizeBytes() -> std::size_t
auto getFreeGlobalMemSizeBytes() -> std::size_t
auto getCpuName() -> std::string
The alpaka accelerator library.
QueueGenericThreadsBlocking< DevCpu > QueueCpuBlocking
QueueGenericThreadsNonBlocking< DevCpu > QueueCpuNonBlocking
std::size_t totalGlobalMem
The CPU/GPU device queue registry implementation.
Tag used in class inheritance hierarchies that describes that a specific interface (TInterface) is im...
static ALPAKA_FN_HOST auto getFreeMemBytes(DevCpu const &) -> std::size_t
The device free memory size get trait.
static ALPAKA_FN_HOST auto getMemBytes(DevCpu const &dev) -> std::size_t
The device memory size get trait.
static ALPAKA_FN_HOST auto getName(DevCpu const &dev) -> std::string
The device name get trait.
static ALPAKA_FN_HOST constexpr auto getPreferredWarpSize(DevCpu const &) -> std::size_t
The device preferred warp size get trait.
static ALPAKA_FN_HOST auto getWarpSizes(DevCpu const &) -> std::vector< std::size_t >
The device warp size get trait.
static auto getNativeHandle(DevCpu const &dev)
Queue for an accelerator.
static ALPAKA_FN_HOST auto reset(DevCpu const &) -> void