24 printf(
"%s\n", __func__);
44 X <<<grid,block>>> (&testval[0]); \
45 err = cudaDeviceSynchronize(); \
47 if (err != cudaSuccess) printf("Error %d (%s)\n", err, cudaGetErrorName(err)); \
48 printf(" (%.2f s)\n", (end - start) * (1.0 / CLOCKS_PER_SEC));
59 int main(
int argc,
char **argv) {
void init()
initialization
int main(int argc, char **argv)
Test for points in G1.
__managed__ testval_t testval[TESTVALS]
void G1TestFFT(unsigned rows)
Test for FFT and IFFT of points on the G1 curve. Checks self consistency with the following propertie...
__global__ void G1TestDbl(testval_t *)
Test for point doubling in G1:
__global__ void G1TestFibonacci(testval_t *)
Test addition and multiplication using a fibonacci sequence (cascading data dependency)
__global__ void G1TestKAT(testval_t *)
Test operation over G1 using KAT and self consistency:
void testinit()
Sets a global variable to true if the STDOUT is a terminal. Needs to be done like so because while a ...