[GH-ISSUE #12] in OpenCL formats find_best_workgroup() should start from 32 for GPU's #1

Closed
opened 2026-10-14 02:49:13 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @ghost on GitHub (Apr 19, 2012).
Original GitHub issue: https://github.com/openwall/john/issues/12

if(device_type==CL_DEVICE_TYPE_GPU) my_work_group=32;
for (; (int) my_work_group <= (int) max_group_size;

Originally created by @ghost on GitHub (Apr 19, 2012). Original GitHub issue: https://github.com/openwall/john/issues/12 if(device_type==CL_DEVICE_TYPE_GPU) my_work_group=32; for (; (int) my_work_group <= (int) max_group_size;
Author
Owner

@magnumripper commented on GitHub (Apr 19, 2012):

Isn't 32 nvidia specific, and even specific to current GPUs (as opposed to possible future models)? Is there a particular reason for not using CL_KERNEL_PREFERRED_WORK_GROUP_SIZE_MULTIPLE? I do not know but I suspect the latter would currently return 32 for nvidia and 64 for AMD.

<!-- gh-comment-id:5215827 --> @magnumripper commented on GitHub (Apr 19, 2012): Isn't 32 nvidia specific, and even specific to current GPUs (as opposed to possible future models)? Is there a particular reason for not using CL_KERNEL_PREFERRED_WORK_GROUP_SIZE_MULTIPLE? I do not know but I suspect the latter would currently return 32 for nvidia and 64 for AMD.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#1
No description provided.