-
Notifications
You must be signed in to change notification settings - Fork 59
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
How to import existed data #4
Comments
Hi Terence -- you'd do it in a couple of steps. 1) mpz_export to export the mpz_t to cpu memory (take a look at from_mpz(...) in samples/utility/cpu_support.h). 2) copy the cpu memory to the GPU using cudaMalloc and cudaMemcpy(...) 3) launch your GPU kernel and use cgbn_load(...) to load up the data. In terms of computing a sequence, you'd have to give me some more detail about what exactly you're trying to compute. But samples/sample_03_powm essentially computes a sequence. Good luck, |
Thanks a lot! I have already figure out how to solve the second problem: I could just shift the position and let it become two sequence and do the addition inside the GPU. And, I would try |
@nemmart Actually, one more question, it is about the xmp library: When I import Integer by using |
In CGBN, it has a concept called Looking forward to your reply! |
Hi! I am using CUDA to accelerate the computing. However, by using CGBN, how could I import existed data generated by previous code, like I have already generated a 1024-bits number by using GMP Lib as mpz_t.${m_i}$ , how can I do the opertion like $m_i + m_{i+1}$
Also, if there is a sequence
Looking forward to your reply!
The text was updated successfully, but these errors were encountered: