alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
alpaka::onHost::cpu::Platform< T_DeviceKind > Struct Template Reference

#include <Platform.hpp>

Inheritance diagram for alpaka::onHost::cpu::Platform< T_DeviceKind >:

Public Member Functions

 Platform ()=default
 Platform (Platform &&)=delete
 Platform (Platform const &)=delete
Platformoperator= (Platform &&)=delete
Platformoperator= (Platform const &)=delete

Private Member Functions

void _ ()
uint32_t getDeviceCount ()
T_DeviceKind getDeviceKind () const
std::string getName () const
std::shared_ptr< PlatformgetSharedPtr ()
Handle< cpu::Device< Platform > > makeDevice (uint32_t const &idx)

Private Attributes

std::mutex deviceGuard
std::vector< std::weak_ptr< cpu::Device< Platform > > > devices

Friends

struct alpaka::internal::GetDeviceType
struct alpaka::internal::GetName
struct internal::GetDeviceCount
struct internal::GetDeviceProperties
struct internal::MakeDevice

Detailed Description

template<alpaka::concepts::DeviceKind T_DeviceKind>
struct alpaka::onHost::cpu::Platform< T_DeviceKind >

Definition at line 26 of file Platform.hpp.

Constructor & Destructor Documentation

◆ Platform() [1/3]

template<alpaka::concepts::DeviceKind T_DeviceKind>
alpaka::onHost::cpu::Platform< T_DeviceKind >::Platform ( )
default

◆ Platform() [2/3]

template<alpaka::concepts::DeviceKind T_DeviceKind>
alpaka::onHost::cpu::Platform< T_DeviceKind >::Platform ( Platform< T_DeviceKind > const & )
delete

◆ Platform() [3/3]

template<alpaka::concepts::DeviceKind T_DeviceKind>
alpaka::onHost::cpu::Platform< T_DeviceKind >::Platform ( Platform< T_DeviceKind > && )
delete

Member Function Documentation

◆ _()

template<alpaka::concepts::DeviceKind T_DeviceKind>
void alpaka::onHost::cpu::Platform< T_DeviceKind >::_ ( )
inlineprivate

Definition at line 38 of file Platform.hpp.

◆ getDeviceCount()

template<alpaka::concepts::DeviceKind T_DeviceKind>
uint32_t alpaka::onHost::cpu::Platform< T_DeviceKind >::getDeviceCount ( )
inlineprivate

Definition at line 60 of file Platform.hpp.

◆ getDeviceKind()

template<alpaka::concepts::DeviceKind T_DeviceKind>
T_DeviceKind alpaka::onHost::cpu::Platform< T_DeviceKind >::getDeviceKind ( ) const
inlineprivate

Definition at line 118 of file Platform.hpp.

◆ getName()

template<alpaka::concepts::DeviceKind T_DeviceKind>
std::string alpaka::onHost::cpu::Platform< T_DeviceKind >::getName ( ) const
inlineprivate

Definition at line 53 of file Platform.hpp.

◆ getSharedPtr()

template<alpaka::concepts::DeviceKind T_DeviceKind>
std::shared_ptr< Platform > alpaka::onHost::cpu::Platform< T_DeviceKind >::getSharedPtr ( )
inlineprivate

Definition at line 46 of file Platform.hpp.

◆ makeDevice()

template<alpaka::concepts::DeviceKind T_DeviceKind>
Handle< cpu::Device< Platform > > alpaka::onHost::cpu::Platform< T_DeviceKind >::makeDevice ( uint32_t const & idx)
inlineprivate

Definition at line 85 of file Platform.hpp.

◆ operator=() [1/2]

template<alpaka::concepts::DeviceKind T_DeviceKind>
Platform & alpaka::onHost::cpu::Platform< T_DeviceKind >::operator= ( Platform< T_DeviceKind > && )
delete

◆ operator=() [2/2]

template<alpaka::concepts::DeviceKind T_DeviceKind>
Platform & alpaka::onHost::cpu::Platform< T_DeviceKind >::operator= ( Platform< T_DeviceKind > const & )
delete

◆ alpaka::internal::GetDeviceType

template<alpaka::concepts::DeviceKind T_DeviceKind>
friend struct alpaka::internal::GetDeviceType
friend

Definition at line 116 of file Platform.hpp.

◆ alpaka::internal::GetName

template<alpaka::concepts::DeviceKind T_DeviceKind>
friend struct alpaka::internal::GetName
friend

Definition at line 51 of file Platform.hpp.

◆ internal::GetDeviceCount

template<alpaka::concepts::DeviceKind T_DeviceKind>
friend struct internal::GetDeviceCount
friend

Definition at line 58 of file Platform.hpp.

◆ internal::GetDeviceProperties

template<alpaka::concepts::DeviceKind T_DeviceKind>
friend struct internal::GetDeviceProperties
friend

Definition at line 114 of file Platform.hpp.

◆ internal::MakeDevice

template<alpaka::concepts::DeviceKind T_DeviceKind>
friend struct internal::MakeDevice
friend

Definition at line 83 of file Platform.hpp.

Member Data Documentation

◆ deviceGuard

template<alpaka::concepts::DeviceKind T_DeviceKind>
std::mutex alpaka::onHost::cpu::Platform< T_DeviceKind >::deviceGuard
private

Definition at line 44 of file Platform.hpp.

◆ devices

template<alpaka::concepts::DeviceKind T_DeviceKind>
std::vector<std::weak_ptr<cpu::Device<Platform> > > alpaka::onHost::cpu::Platform< T_DeviceKind >::devices
private

Definition at line 43 of file Platform.hpp.


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