FK20 CUDA
frtest.cu File Reference
#include "fr.cuh"
#include "frtest.cuh"
Include dependency graph for frtest.cu:

Go to the source code of this file.

Macros

#define TEST(X)
 

Functions

void init ()
 initialize test values More...
 
int main (int argc, char **argv)
 Self test of the functions over Fr. More...
 

Variables

__managed__ testval_t testval [TESTVALS]
 

Macro Definition Documentation

◆ TEST

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

Definition at line 77 of file frtest.cu.

Function Documentation

◆ init()

void init ( )

initialize test values

Definition at line 16 of file frtest.cu.

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

◆ main()

int main ( int  argc,
char **  argv 
)

Self test of the functions over Fr.

Parameters
argc
argv
Returns
int

Definition at line 94 of file frtest.cu.

Here is the call graph for this function:

Variable Documentation

◆ testval

__managed__ testval_t testval[TESTVALS]

Definition at line 8 of file frtest.cu.