Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for OpenCL 2.0 #41

Merged
merged 4 commits into from
Jun 30, 2021
Merged

Fix for OpenCL 2.0 #41

merged 4 commits into from
Jun 30, 2021

Conversation

thooton
Copy link
Contributor

@thooton thooton commented Jun 29, 2021

The default address space changed from private to generic in OpenCL 2.0, causing #40. This merges some OpenCL optimizations from Nano, and fixes the issue.

Copy link
Owner

@PlasmaPower PlasmaPower left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Does this still work with OpenCL 1.2?


static int blake2b_final( blake2b_state *S, uchar *out, uchar outlen )
/* Is this correct? */
static int blake2b_final( __private blake2b_state *S, uchar *out, uchar outlen )
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's this comment about? AFAIK it's correct.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, sorry about that, the comment was copy-pasted from Nano, removed

@thooton
Copy link
Contributor Author

thooton commented Jun 29, 2021

LGTM. Does this still work with OpenCL 1.2?

Just got a friend to test - works on OpenCL 1.2 - GeForce GTX 1070

@PlasmaPower
Copy link
Owner

Thanks!

@PlasmaPower PlasmaPower merged commit 7864cdb into PlasmaPower:master Jun 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants