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

Function is_apple_device

compute/test/quirks.hpp:29–32  ·  view source on GitHub ↗

returns true if the device is from Apple OpenCL platform

Source from the content-addressed store, hash-verified

27
28// returns true if the device is from Apple OpenCL platform
29inline bool is_apple_device(const boost::compute::device &device)
30{
31 return device.platform().name() == "Apple";
32}
33
34// AMD platforms have a bug when using struct assignment. this affects
35// algorithms like fill() when used with pairs/tuples.

Callers 2

is_apple_cpu_deviceFunction · 0.85
bug_in_clcreatebufferFunction · 0.85

Calls 2

nameMethod · 0.45
platformMethod · 0.45

Tested by

no test coverage detected