1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-07 07:55:04 -05:00

Use functions to get memory variables

This commit is contained in:
Anton Kamenov
2019-10-14 14:14:12 +03:00
parent ed08895d4a
commit 9e2b63890c

View File

@@ -76,7 +76,7 @@ public:
inline OclVendor vendorId() const { return m_vendorId; }
inline Type type() const { return m_type; }
inline uint32_t computeUnits() const { return m_computeUnits; }
inline size_t freeMemSize() const { return std::min(m_maxMemoryAlloc, m_globalMemory); }
inline size_t freeMemSize() const { return std::min(maxMemAllocSize(), globalMemSize()); }
inline size_t globalMemSize() const { return m_globalMemory; }
inline size_t maxMemAllocSize() const { return m_maxMemoryAlloc; }
inline uint32_t index() const { return m_index; }