mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-21 12:52:53 -05:00
#2280 Disable GPU backends in benchmark mode.
This commit is contained in:
@@ -57,6 +57,12 @@ public:
|
||||
|
||||
Pools();
|
||||
|
||||
# ifdef XMRIG_FEATURE_BENCHMARK
|
||||
inline bool isBenchmark() const { return !!m_benchmark; }
|
||||
# else
|
||||
inline constexpr bool isBenchmark() const { return false; }
|
||||
# endif
|
||||
|
||||
inline const std::vector<Pool> &data() const { return m_data; }
|
||||
inline int retries() const { return m_retries; }
|
||||
inline int retryPause() const { return m_retryPause; }
|
||||
|
||||
Reference in New Issue
Block a user