MCPcopy Create free account
hub / github.com/NVIDIA/cuda-samples / main

Function main

cpp/5_Domain_Specific/marchingCubes/marchingCubes.cpp:405–427  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////////////// Program main ///////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

403// Program main
404////////////////////////////////////////////////////////////////////////////////
405int main(int argc, char **argv)
406{
407 pArgc = &argc;
408 pArgv = argv;
409
410#if defined(__linux__)
411 setenv("DISPLAY", ":0", 0);
412#endif
413
414 printf("[%s] - Starting...\n", argv[0]);
415
416 if (checkCmdLineFlag(argc, (const char **)argv, "file") && checkCmdLineFlag(argc, (const char **)argv, "dump")) {
417 animate = false;
418 fpsLimit = frameCheckNumber;
419 g_bValidate = true;
420 runAutoTest(argc, argv);
421 }
422 else {
423 runGraphicsTest(argc, argv);
424 }
425
426 exit(EXIT_SUCCESS);
427}
428
429////////////////////////////////////////////////////////////////////////////////
430// initialize marching cubes

Callers

nothing calls this directly

Calls 3

checkCmdLineFlagFunction · 0.85
runAutoTestFunction · 0.70
runGraphicsTestFunction · 0.70

Tested by

no test coverage detected