| 1118 | } |
| 1119 | |
| 1120 | int 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 | } |
nothing calls this directly
no test coverage detected