19 static __managed__ uint8_t
cmp[512*16*512];
20 static __managed__
fr_t fr_tmp[512*16*512];
35 int main(
int argc,
char **argv) {
56 for (
int i=0; i<5; i++) {
62 printf(
"=== RUN %s\n",
"fk20_poly2toeplitz_coefficients_fft: polynomial -> toeplitz_coefficients_fft");
65 fk20_poly2toeplitz_coefficients_fft<<<512, 256>>>(fr_tmp,
polynomial);
66 err = cudaDeviceSynchronize();
69 if (err != cudaSuccess)
70 printf(
"Error fk20_poly2toeplitz_coefficients_fft: %d (%s)\n", err, cudaGetErrorName(err));
72 printf(
" (%.3f s)\n", (end - start) * (1.0 / CLOCKS_PER_SEC));
76 for (
int i=0; i<512*16*512; i++)
81 err = cudaDeviceSynchronize();
82 if (err != cudaSuccess) printf(
"Error fr_eq_wrapper: %d (%s)\n", err, cudaGetErrorName(err));
86 for (
int i=0; pass && i<512*16*512; i++)
88 printf(
"poly2tc error %04x\n", i);
__managed__ uint8_t cmp[16 *512]
int main(int argc, char **argv)
Tests only fk20_poly2toeplitz_coefficients_fft, five successive times. This testing is to catch a con...
__managed__ fr_t polynomial[512 *4096]
__managed__ fr_t toeplitz_coefficients_fft[512 *16][512]
uint64_t fr_t[4]
Subgroup element stored as a 256-bit array (a 4-element little-endian array of uint64_t)....
void testinit()
Sets a global variable to true if the STDOUT is a terminal. Needs to be done like so because while a ...