FK20 CUDA
fptest.cu File Reference
#include "fp.cuh"
#include "fptest.cuh"
Include dependency graph for fptest.cu:

Go to the source code of this file.

Macros

#define TEST(X)
 

Functions

void init ()
 Variable initialization for the tests. More...
 
int main (int argc, char **argv)
 Run tests on Fp functions. 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: fptest.cu:8

Definition at line 91 of file fptest.cu.

Function Documentation

◆ init()

void init ( )

Variable initialization for the tests.

Definition at line 16 of file fptest.cu.

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

◆ main()

int main ( int  argc,
char **  argv 
)

Run tests on Fp functions.

Parameters
argc
argv
Returns
int

Definition at line 108 of file fptest.cu.

Here is the call graph for this function:

Variable Documentation

◆ testval

__managed__ testval_t testval[TESTVALS]

Definition at line 8 of file fptest.cu.