data61 / cuda-fixnum

Extended-precision modular arithmetic library that targets CUDA.
Other
41 stars 28 forks source link

Benchmarking program fails when no parameter specified #66

Closed unzvfu closed 5 years ago

unzvfu commented 5 years ago

Problem is the default value for nelts is 1, but this is integer divided by 100 -- giving zero -- when calling the modexp functions. The bench function doesn't protect against nelts being zero.

unzvfu commented 5 years ago

Fixed in c90eb7791c0f3d7f85fc70cc6795ffc5dc017d1a.