FK20 CUDA
g1test.cu File Reference
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "g1.cuh"
#include "g1test.cuh"
Include dependency graph for g1test.cu:

Go to the source code of this file.

Macros

#define TEST(X)
 

Functions

void init ()
 initialization More...
 
int main (int argc, char **argv)
 Test for points in G1. More...
 

Variables

__managed__ testval_t testval [TESTVALS]
 

Macro Definition Documentation

◆ TEST

#define TEST (   X)
Value:
start = clock(); \
X <<<grid,block>>> (&testval[0]); \
err = cudaDeviceSynchronize(); \
end = clock(); \
if (err != cudaSuccess) printf("Error %d (%s)\n", err, cudaGetErrorName(err)); \
printf(" (%.2f s)\n", (end - start) * (1.0 / CLOCKS_PER_SEC));
__managed__ testval_t testval[TESTVALS]
Definition: g1test.cu:14

Definition at line 42 of file g1test.cu.

Function Documentation

◆ init()

void init ( )

initialization

Definition at line 22 of file g1test.cu.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char **  argv 
)

Test for points in G1.

Parameters
argc
argv
Returns
int

Definition at line 59 of file g1test.cu.

Here is the call graph for this function:

Variable Documentation

◆ testval

__managed__ testval_t testval[TESTVALS]

Definition at line 14 of file g1test.cu.