* Sample clSPARSE initialization (C) * This is the simplest program using clSPARSE API calls. */
| 28 | * This is the simplest program using clSPARSE API calls. |
| 29 | */ |
| 30 | int main( int argc, char* argv[ ] ) |
| 31 | { |
| 32 | printf("Executing sample clSPARSE initalization C\n"); |
| 33 | |
| 34 | clsparseStatus status = clsparseSetup(); |
| 35 | |
| 36 | if (status != clsparseSuccess) |
| 37 | { |
| 38 | printf ("Problem with executing clsparseSetup()"); |
| 39 | return -1; |
| 40 | } |
| 41 | |
| 42 | |
| 43 | // Put the rest of clSPARSE calls between clsparseSetup / clsparseTeardown functions; |
| 44 | |
| 45 | |
| 46 | status = clsparseTeardown(); |
| 47 | if (status != clsparseSuccess) |
| 48 | { |
| 49 | printf ("Problem with executing clsparseTeardown()"); |
| 50 | return -1; |
| 51 | } |
| 52 | |
| 53 | printf ("Program completed\n"); |
| 54 | |
| 55 | return 0; |
| 56 | } |
nothing calls this directly
no test coverage detected