MCPcopy Create free account
hub / github.com/clMathLibraries/clSPARSE / main

Function main

samples/sample-initialization-c.c:30–56  ·  view source on GitHub ↗

* Sample clSPARSE initialization (C) * This is the simplest program using clSPARSE API calls. */

Source from the content-addressed store, hash-verified

28 * This is the simplest program using clSPARSE API calls.
29 */
30int 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}

Callers

nothing calls this directly

Calls 2

clsparseSetupFunction · 0.85
clsparseTeardownFunction · 0.85

Tested by

no test coverage detected