Readjust OclDevice logic and add OCL_VENDOR_APPLE
This commit is contained in:
parent
4bd94a79a4
commit
67e29c1af1
3 changed files with 75 additions and 11 deletions
|
@ -64,11 +64,14 @@ public:
|
|||
|
||||
inline bool isValid() const { return m_id != nullptr && m_platform != nullptr; }
|
||||
inline cl_device_id id() const { return m_id; }
|
||||
inline const String &platformVendor() const { return m_platformVendor; }
|
||||
inline OclVendor platformVendorId() const { return m_vendorId; }
|
||||
inline const PciTopology &topology() const { return m_topology; }
|
||||
inline const String &board() const { return m_board.isNull() ? m_name : m_board; }
|
||||
inline const String &name() const { return m_name; }
|
||||
inline const String &vendor() const { return m_vendor; }
|
||||
inline OclVendor vendorId() const { return m_vendorId; }
|
||||
inline const String &extensions() const { return m_extensions; }
|
||||
inline Type type() const { return m_type; }
|
||||
inline uint32_t computeUnits() const { return m_computeUnits; }
|
||||
inline size_t freeMemSize() const { return std::min(maxMemAllocSize(), globalMemSize()); }
|
||||
|
@ -83,13 +86,16 @@ public:
|
|||
private:
|
||||
cl_device_id m_id = nullptr;
|
||||
cl_platform_id m_platform = nullptr;
|
||||
const String m_board;
|
||||
const String m_platformVendor;
|
||||
String m_board;
|
||||
const String m_name;
|
||||
const String m_vendor;
|
||||
String m_extensions;
|
||||
const size_t m_maxMemoryAlloc = 0;
|
||||
const size_t m_globalMemory = 0;
|
||||
const uint32_t m_computeUnits = 1;
|
||||
const uint32_t m_index = 0;
|
||||
OclVendor m_platformVendorId = OCL_VENDOR_UNKNOWN;
|
||||
OclVendor m_vendorId = OCL_VENDOR_UNKNOWN;
|
||||
PciTopology m_topology;
|
||||
Type m_type = Unknown;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue