MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / main

Function main

compute/example/hello_world.cpp:19–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17namespace compute = boost::compute;
18
19int main()
20{
21 // get the default device
22 compute::device device = compute::system::default_device();
23
24 // print the device's name and platform
25 std::cout << "hello from " << device.name();
26 std::cout << " (platform: " << device.platform().name() << ")" << std::endl;
27
28 return 0;
29}
30//]

Callers

nothing calls this directly

Calls 2

nameMethod · 0.45
platformMethod · 0.45

Tested by

no test coverage detected