MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / main

Function main

examples/pde/bhrt.cpp:1120–1139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1118}
1119
1120int main(int argc, char** argv) {
1121 int device = argc > 1 ? std::atoi(argv[1]) : 0;
1122
1123 int width = argc > 2 ? std::atoi(argv[2]) : 200;
1124 int height = argc > 3 ? std::atoi(argv[3]) : 200;
1125
1126 try {
1127 af::setDevice(device);
1128 af::info();
1129
1130 std::cout << "** ArrayFire Black Hole Raytracing Demo\n\n";
1131
1132 raytracing(width, height);
1133 } catch (const af::exception& e) {
1134 std::cerr << e.what() << std::endl;
1135 return -1;
1136 }
1137
1138 return 0;
1139}

Callers

nothing calls this directly

Calls 3

infoFunction · 0.85
raytracingFunction · 0.85
setDeviceFunction · 0.50

Tested by

no test coverage detected