#2280 Disable GPU backends in benchmark mode.

This commit is contained in:
XMRig 2021-04-25 15:28:45 +07:00
parent a403c53543
commit 695fbc013b
No known key found for this signature in database
GPG key ID: 446A53638BE94409
2 changed files with 12 additions and 2 deletions

View file

@ -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; }