|
@ -88,7 +88,7 @@ public: |
|
|
static unsigned instances() { return s_numInstances > 0 ? s_numInstances : std::thread::hardware_concurrency(); } |
|
|
static unsigned instances() { return s_numInstances > 0 ? s_numInstances : std::thread::hardware_concurrency(); } |
|
|
static std::string platformInfo(); |
|
|
static std::string platformInfo(); |
|
|
static void listDevices() {} |
|
|
static void listDevices() {} |
|
|
static bool configureGPU(unsigned, unsigned, unsigned, unsigned, unsigned, bool, unsigned, boost::optional<uint64_t>) { return false; } |
|
|
static bool configureGPU(unsigned, unsigned, unsigned, unsigned, unsigned, bool, unsigned, bool, uint64_t) { return false; } |
|
|
static void setNumInstances(unsigned _instances) { s_numInstances = std::min<unsigned>(_instances, std::thread::hardware_concurrency()); } |
|
|
static void setNumInstances(unsigned _instances) { s_numInstances = std::min<unsigned>(_instances, std::thread::hardware_concurrency()); } |
|
|
protected: |
|
|
protected: |
|
|
void kickOff() override |
|
|
void kickOff() override |
|
@ -125,7 +125,8 @@ public: |
|
|
unsigned _deviceId, |
|
|
unsigned _deviceId, |
|
|
bool _allowCPU, |
|
|
bool _allowCPU, |
|
|
unsigned _extraGPUMemory, |
|
|
unsigned _extraGPUMemory, |
|
|
boost::optional<uint64_t> _currentBlock |
|
|
bool _currentBlockGiven, |
|
|
|
|
|
uint64_t _currentBlock |
|
|
); |
|
|
); |
|
|
static void setNumInstances(unsigned _instances) { s_numInstances = std::min<unsigned>(_instances, getNumDevices()); } |
|
|
static void setNumInstances(unsigned _instances) { s_numInstances = std::min<unsigned>(_instances, getNumDevices()); } |
|
|
|
|
|
|
|
|