| 109 | } |
| 110 | |
| 111 | int main(int argc, char** argv) { |
| 112 | int device = argc > 1 ? atoi(argv[1]) : 0; |
| 113 | bool console = argc > 2 ? argv[2][0] == '-' : false; |
| 114 | |
| 115 | try { |
| 116 | af::setDevice(device); |
| 117 | af::info(); |
| 118 | std::cout << "** ArrayFire template matching Demo **" << std::endl |
| 119 | << std::endl; |
| 120 | templateMatchingDemo(console); |
| 121 | |
| 122 | } catch (af::exception& ae) { |
| 123 | std::cerr << ae.what() << std::endl; |
| 124 | throw; |
| 125 | } |
| 126 | |
| 127 | return 0; |
| 128 | } |
nothing calls this directly
no test coverage detected