mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #909] Add driver version macro logic to common-opencl.c #511
Labels
No labels
bug
core branch
documentation
enhancement
enhancement
fixed - pending verify
fuzz bug
good first issue
invalid
invalid
maintenance/cleanup
new cracking mode
new format
new tool
non-trivial
notes/external issues
portability
question
RFC / discussion
testing
WONTFIX
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
openwall/john#511
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @magnumripper on GitHub (Dec 18, 2014).
Original GitHub issue: https://github.com/openwall/john/issues/909
Query for CL_DRIVER_VERSION, process it a little (see below) and pass the information to run-time compiler as integer macros -DDEV_VER_MAJOR=number, -DDEV_VER_MINOR=number.
Actually in the nvidia OSX case, it would be better to catch the "310.41" string but we want to keep this simple. Easiest is to scan for a number and when found, parse it until something other than "." or a digit.
The Intel 1.2.0.76921 is also tricky. Should we only have MAJOR/MINOR and report it just as 1, 2? As I'm mostly interested in AMD and nvidia, I think DEV_VER_MAJOR and DEV_VER_MINOR will suffice.