mirror of
https://github.com/xmrig/xmrig.git
synced 2024-12-23 12:09:22 +00:00
Cap max threads to 4096 with nVidia OpenCL
This commit is contained in:
parent
ca8bef3ade
commit
c6a68c3e51
1 changed files with 4 additions and 0 deletions
|
@ -39,6 +39,10 @@ static inline uint32_t getMaxThreads(const OclDevice &device, const Algorithm &a
|
||||||
return 40000U;
|
return 40000U;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (device.vendorId() == OCL_VENDOR_NVIDIA) {
|
||||||
|
return 4096U;
|
||||||
|
}
|
||||||
|
|
||||||
const uint32_t ratio = (algorithm.l3() <= oneMiB) ? 2U : 1U;
|
const uint32_t ratio = (algorithm.l3() <= oneMiB) ? 2U : 1U;
|
||||||
|
|
||||||
if (device.vendorId() == OCL_VENDOR_INTEL) {
|
if (device.vendorId() == OCL_VENDOR_INTEL) {
|
||||||
|
|
Loading…
Reference in a new issue