Added OclDevice and partially autoconfig.

This commit is contained in:
XMRig 2019-08-22 22:39:36 +07:00
parent 166a68244e
commit ed7216575c
16 changed files with 697 additions and 100 deletions

View file

@ -47,7 +47,13 @@ public:
inline bool isExist(const Algorithm &algo) const { return isDisabled(algo) || m_aliases.count(algo) > 0 || has(algo.shortName()); }
inline const T &get(const Algorithm &algo, bool strict = false) const { return get(profileName(algo, strict)); }
inline void disable(const Algorithm &algo) { m_disabled.insert(algo); }
inline void move(const char *profile, T &&threads) { m_profiles.insert({ profile, threads }); }
inline void move(const char *profile, T &&threads)
{
if (!threads.isEmpty()) {
m_profiles.insert({ profile, std::move(threads) });
}
}
const T &get(const String &profileName) const;
size_t read(const rapidjson::Value &value);