| 25 | */ |
| 26 | |
| 27 | int main(int argc, char* argv[]) |
| 28 | { |
| 29 | std::cout << "Executing sample clSPARSE initalization C++" << std::endl; |
| 30 | |
| 31 | clsparseStatus status = clsparseSetup(); |
| 32 | if (status != clsparseSuccess) |
| 33 | { |
| 34 | std::cerr << "Problem with executing clsparseSetup()" << std::endl; |
| 35 | return -1; |
| 36 | } |
| 37 | |
| 38 | |
| 39 | // Put the rest of clSPARSE calls between clsparseSetup / clsparseTeardown functions; |
| 40 | |
| 41 | |
| 42 | status = clsparseTeardown(); |
| 43 | if (status != clsparseSuccess) |
| 44 | { |
| 45 | std::cerr << "Problem with executing clsparseTeardown()" << std::endl; |
| 46 | return -2; |
| 47 | } |
| 48 | |
| 49 | std::cout << "Program completed" << std::endl; |
| 50 | return 0; |
| 51 | } |
nothing calls this directly
no test coverage detected