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

Tezos-opencl: Workaround for buggy nvidia driver #5550

Merged

Conversation

magnumripper
Copy link
Member

Closes #5546

@@ -121,6 +121,9 @@ ge25519_scalarmult_base_choose_niels(ge25519_niels *t, uint32_t pos, signed char

/* computes [s]basepoint */
static void
#if gpu_nvidia(DEVICE_INFO) && DEV_VER_MAJOR > 500
Copy link
Member

Choose a reason for hiding this comment

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

The strict > 500 is a bit weird, meaning 501 or higher. Perhaps you meant >= 500.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think I had it working with 525.xx so maybe we should use that. Also I now confirmed the 560 or higher CUDA drivers work fine without the noinline, which is great! I'll amend it.

@@ -121,6 +121,9 @@ ge25519_scalarmult_base_choose_niels(ge25519_niels *t, uint32_t pos, signed char

/* computes [s]basepoint */
static void
#if gpu_nvidia(DEVICE_INFO) && DEV_VER_MAJOR > 525 && DEV_VER_MAJOR < 560
Copy link
Member

Choose a reason for hiding this comment

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

Again, you probably mean >= 525, not > 525.

Copy link
Member

Choose a reason for hiding this comment

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

Oh, I see you wrote you saw the issue with 535 and 550. But apparently not with 525, nor 560. If so, the check is right.

Copy link
Member

Choose a reason for hiding this comment

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

Generic, but very appropriate to the situation: it's documenting that anything after 525 and before 560 is or could be bad.

@magnumripper magnumripper merged commit cfbeb5e into openwall:bleeding-jumbo Nov 2, 2024
27 of 31 checks passed
@magnumripper magnumripper deleted the tezos-nvidia-fix branch November 2, 2024 01:12
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.

tezos-opencl kernel build takes longer than 10 hours with recent nvidia drivers
3 participants