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
 

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
 

Private Member Functions

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

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

◆ Version

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

Member Function Documentation

◆ find_device()

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:

◆ get_device_info()

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_version_info()

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

◆ id()

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

◆ init()

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

◆ n_devices()

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 file: