MCPcopy Create free account
hub / github.com/boostorg/compute / get_device

Method get_device

include/boost/compute/command_queue.hpp:216–219  ·  view source on GitHub ↗

Returns the device that the command queue issues commands to.

Source from the content-addressed store, hash-verified

214
215 /// Returns the device that the command queue issues commands to.
216 device get_device() const
217 {
218 return device(get_info<cl_device_id>(CL_QUEUE_DEVICE));
219 }
220
221 /// Returns the context for the command queue.
222 context get_context() const

Callers

nothing calls this directly

Calls 1

deviceClass · 0.85

Tested by

no test coverage detected