MCPcopy Create free account
hub / github.com/QuEST-Kit/QuEST / printCmdArgInfo

Function printCmdArgInfo

examples/isolated/reporting_environments.cpp:102–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100
101
102int printCmdArgInfo() {
103
104 // we can only initialise the QuEST environment once, so
105 // we accept command-line arg 1-6 to choose the deployment
106
107 // all nodes must print because we've not yet setup MPI
108 std::cout << (
109 "Must pass single cmd-line argument:\n"
110 " 1 = serial\n"
111 " 2 = multithreaded\n"
112 " 3 = GPU-accelerated\n"
113 " 4 = distributed\n"
114 " 5 = all\n"
115 " 6 = auto") << std::endl;
116
117 // process return code, indicate error
118 return 1;
119}
120
121
122int main(int argc, char* argv[]) {

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected