MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / main

Function main

test/benchmark/linpack2.c:22–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20/******************************************************************************/
21
22int main(int argc, char **argv) {
23
24/******************************************************************************/
25/*
26 Purpose:
27
28 MAIN is the main program for LINPACK_BENCH.
29
30 Discussion:
31
32 LINPACK_BENCH drives the double precision LINPACK benchmark program.
33
34 Modified:
35
36 25 July 2008
37
38 Parameters:
39
40 N is the problem size.
41*/
42# define N 2000
43# define LDA ( N + 1 )
44
45 double *a;
46 double a_max;
47 double *b;
48 double b_max;
49 double cray = 0.056;
50 double eps;
51 int i;
52 int info;
53 int *ipvt;
54 int j;
55 int job;
56 double ops;
57 double *resid;
58 double resid_max;
59 double residn;
60 double *rhs;
61 double t1;
62 double t2;
63 double time[6];
64 double total;
65 double *x;
66
67 int arg = argc > 1 ? argv[1][0] - '0' : 3;
68 if (arg == 0) return 0;
69
70 timestamp ( );
71 printf ( "\n" );
72 printf ( "LINPACK_BENCH\n" );
73 printf ( " C version\n" );
74 printf ( "\n" );
75 printf ( " The LINPACK benchmark.\n" );
76 printf ( " Language: C\n" );
77 printf ( " Datatype: Double precision real\n" );
78 printf ( " Matrix order N = %d\n", N );
79 printf ( " Leading matrix dimension LDA = %d\n", LDA );

Callers

nothing calls this directly

Calls 11

printfFunction · 0.85
r8mat_genFunction · 0.85
r8_maxFunction · 0.85
cpu_timeFunction · 0.85
dgefaFunction · 0.85
dgeslFunction · 0.85
r8_absFunction · 0.85
r8_epsilonFunction · 0.85
timestampFunction · 0.70
mallocFunction · 0.50
freeFunction · 0.50

Tested by

no test coverage detected