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

Function main

samples/sample-initialization.cpp:27–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25 */
26
27int 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}

Callers

nothing calls this directly

Calls 2

clsparseSetupFunction · 0.85
clsparseTeardownFunction · 0.85

Tested by

no test coverage detected