MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / main

Function main

examples/benchmarks/cg.cpp:112–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112int main(int, char **) {
113 af::info();
114 setupInputs();
115
116 std::cout << "Verifying Dense Conjugate Gradient:" << std::endl;
117 checkConjugateGradient(A);
118
119 std::cout << "Verifying Sparse Conjugate Gradient:" << std::endl;
120 checkConjugateGradient(spA);
121
122 af::sync();
123
124 std::cout << "Dense Conjugate Gradient Time: "
125 << timeit(denseConjugateGradient) * 1000 << "ms" << std::endl;
126
127 std::cout << "Sparse Conjugate Gradient Time: "
128 << timeit(sparseConjugateGradient) * 1000 << "ms" << std::endl;
129
130 return 0;
131}

Callers

nothing calls this directly

Calls 5

infoFunction · 0.85
setupInputsFunction · 0.85
checkConjugateGradientFunction · 0.85
timeitFunction · 0.85
syncFunction · 0.50

Tested by

no test coverage detected