mirror of
https://github.com/jwinterm/xmr-stak.git
synced 2026-10-24 06:48:40 +02:00
fix max work size shown to user
The max work size shown to the user was the hardware maximum but not take in account thet some kernel spwning 8 times more threads per work group than configured by the user.
This commit is contained in:
@@ -226,6 +226,10 @@ size_t InitOpenCLGpu(cl_context opencl_ctx, GpuContext* ctx, const char* source_
|
||||
return ERR_OCL_API;
|
||||
}
|
||||
|
||||
/* Some kernel spawn 8 times more threads than the user is configuring.
|
||||
* To give the user the correct maximum work size we divide the hardware specific max by 8.
|
||||
*/
|
||||
MaximumWorkSize /= 8;
|
||||
printer::inst()->print_msg(L1,"Device %lu work size %lu / %lu.", ctx->deviceIdx, ctx->workSize, MaximumWorkSize);
|
||||
#ifdef CL_VERSION_2_0
|
||||
const cl_queue_properties CommandQueueProperties[] = { 0, 0, 0 };
|
||||
|
||||
Reference in New Issue
Block a user