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

Function bug_in_clcreatebuffer

compute/test/quirks.hpp:70–73  ·  view source on GitHub ↗

On Apple devices clCreateBuffer does not return NULL and does no set error to CL_INVALID_BUFFER_SIZE when size of the buffer memory object is greater than CL_DEVICE_MAX_MEM_ALLOC_SIZE.

Source from the content-addressed store, hash-verified

68// to CL_INVALID_BUFFER_SIZE when size of the buffer memory object is greater
69// than CL_DEVICE_MAX_MEM_ALLOC_SIZE.
70inline bool bug_in_clcreatebuffer(const boost::compute::device &device)
71{
72 return is_apple_device(device);
73}
74
75// returns true if the device supports image samplers.
76inline bool supports_image_samplers(const boost::compute::device &device)

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 1

is_apple_deviceFunction · 0.85

Tested by

no test coverage detected