vernamlab / cuHE

CUDA Homomorphic Encryption Library
MIT License
194 stars 41 forks source link

cannot compile Base.cu #8

Closed andreaTP closed 8 years ago

andreaTP commented 8 years ago

I'm trying to check this awesome work!

Unfortunately now the problem is that I cannot compile Base.cu due to: Base.cu(253): error: calling a __device__ function("_add_modP") from a __host__ __device__ function("_ntt4") is not allowed and following.

I've checked and I can compile but not execute the dir developing in the ntt branch.

any hint?

WeiDaiWD commented 8 years ago

Sorry about that, I changed a little in ModP.h and forgot to submit Base.cu. It should work fine now. Ps: Remember to change Makefile according to ur gpu's computation capability. Mine is 5.2, which can be found in Makefile by searching for "52".

Best regards, Wei Dai Worcester Polytechnic Institute

On Feb 17, 2016, at 10:01 AM, Andrea Peruffo notifications@github.com wrote:

I'm trying to check this awesome work!

Unfortunately now the problem is that I cannot compile Base.cu due to: Base.cu(253): error: calling a device function("_add_modP") from a host device function("_ntt4") is not allowed and following.

I've checked and I can compile but not execute the dir developing in the ntt branch.

any hint?

— Reply to this email directly or view it on GitHubhttps://github.com/vernamlab/cuHE/issues/8.

andreaTP commented 8 years ago

Great, thanx a lot! I will play around this in the next days.

Super fast support!