| 110 | } |
| 111 | |
| 112 | int 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 | } |
nothing calls this directly
no test coverage detected