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

Is cgbn_cuda.h used? #21

Open
QinbinLi opened this issue Mar 25, 2022 · 0 comments
Open

Is cgbn_cuda.h used? #21

QinbinLi opened this issue Mar 25, 2022 · 0 comments

Comments

@QinbinLi
Copy link

Hi,

Thanks for providing the useful library! I found that cgbn.h uses macro __CUDA_ARCH__ to decide whether include cgbn_cuda.h or cgbn_mpz.h (lines 67-82 in cgbn.h). However, this macro is only defined in a device code (see here). Thus, I think cgbn_cuda.h never be included. I checked that with the provided samples and found that the samples always include cgbn_mpz.h during compilation. Is cgbn_cuda.h useful? Looking forward to your reply!

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

No branches or pull requests

1 participant