nngn
Loading...
Searching...
No Matches
anonymous_namespace{opencl.cpp}::Platform Class Reference
Collaboration diagram for anonymous_namespace{opencl.cpp}::Platform:

Public Types

using Version = nngn::Compute::Version
 
using DeviceType = nngn::Compute::DeviceType
 
using Version = nngn::Compute::Version
 
using DeviceType = nngn::Compute::DeviceType
 

Public Member Functions

cl_platform_id id () const
 
bool init (cl_platform_id id, std::string *tmp)
 
cl_device_id find_device (Version min_version, DeviceType preferred, Version *version) const
 
std::size_t n_devices () const
 
cl_platform_id id () const
 
bool init (cl_platform_id id, std::string *tmp)
 
cl_device_id find_device (Version min_version, DeviceType preferred, Version *version) const
 
std::size_t n_devices () const
 

Private Member Functions

bool get_version_info (std::string *tmp)
 
bool get_device_info ()
 
bool get_version_info (std::string *tmp)
 
bool get_device_info ()
 

Private Attributes

cl_platform_id m_id = {}
 
Version version = {}
 
std::vector< Devicegpus = {}
 
std::vector< Devicecpus = {}
 

Member Typedef Documentation

◆ DeviceType [1/2]

using anonymous_namespace{opencl.cpp}::Platform::DeviceType = nngn::Compute::DeviceType

◆ DeviceType [2/2]

using anonymous_namespace{opencl.cpp}::Platform::DeviceType = nngn::Compute::DeviceType

◆ Version [1/2]

using anonymous_namespace{opencl.cpp}::Platform::Version = nngn::Compute::Version

◆ Version [2/2]

using anonymous_namespace{opencl.cpp}::Platform::Version = nngn::Compute::Version

Member Function Documentation

◆ find_device() [1/2]

cl_device_id anonymous_namespace{opencl.cpp}::Platform::find_device ( Version  min_version,
DeviceType  preferred,
Version version 
) const
Here is the call graph for this function:

◆ find_device() [2/2]

cl_device_id anonymous_namespace{opencl.cpp}::Platform::find_device ( Version  min_version,
DeviceType  preferred,
Version version 
) const

◆ get_device_info() [1/2]

bool anonymous_namespace{opencl.cpp}::Platform::get_device_info ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_device_info() [2/2]

bool anonymous_namespace{opencl.cpp}::Platform::get_device_info ( )
private

◆ get_version_info() [1/2]

bool anonymous_namespace{opencl.cpp}::Platform::get_version_info ( std::string *  tmp)
private
Here is the call graph for this function:

◆ get_version_info() [2/2]

bool anonymous_namespace{opencl.cpp}::Platform::get_version_info ( std::string *  tmp)
private

◆ id() [1/2]

cl_platform_id anonymous_namespace{opencl.cpp}::Platform::id ( ) const
inline

◆ id() [2/2]

cl_platform_id anonymous_namespace{opencl.cpp}::Platform::id ( ) const
inline

◆ init() [1/2]

bool anonymous_namespace{opencl.cpp}::Platform::init ( cl_platform_id  id,
std::string *  tmp 
)
Here is the call graph for this function:

◆ init() [2/2]

bool anonymous_namespace{opencl.cpp}::Platform::init ( cl_platform_id  id,
std::string *  tmp 
)

◆ n_devices() [1/2]

std::size_t anonymous_namespace{opencl.cpp}::Platform::n_devices ( ) const

◆ n_devices() [2/2]

std::size_t anonymous_namespace{opencl.cpp}::Platform::n_devices ( ) const

Member Data Documentation

◆ cpus

std::vector< Device > anonymous_namespace{opencl.cpp}::Platform::cpus = {}
private

◆ gpus

std::vector< Device > anonymous_namespace{opencl.cpp}::Platform::gpus = {}
private

◆ m_id

cl_platform_id anonymous_namespace{opencl.cpp}::Platform::m_id = {}
private

◆ version

Version anonymous_namespace{opencl.cpp}::Platform::version = {}
private

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