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

Function main

examples/pde/boltzmann_cfd.cpp:554–570  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

552}
553
554int main(int argc, char** argv) {
555 int device = argc > 1 ? std::atoi(argv[1]) : 0;
556
557 try {
558 af::setDevice(device);
559 af::info();
560
561 std::cout << "** ArrayFire CFD Simulation Demo\n\n";
562
563 lattice_boltzmann_cfd_demo();
564 } catch (const af::exception& e) {
565 std::cerr << e.what() << std::endl;
566 return -1;
567 }
568
569 return 0;
570}

Callers

nothing calls this directly

Calls 3

infoFunction · 0.85
setDeviceFunction · 0.50

Tested by

no test coverage detected