A compute device Typical compute devices include GPUs and multi-core CPUs. A list of all compute devices available on a platform can be obtained via the platform::devices() method. A default device can be easily created with the one of the following convenience methods: system::default_device() system::default_cpu_device() system::default_gpu_device() For example, to get the default GPU device on the system: // get the default GPU device boost::compute::device gpu = boost::compute::system::default_gpu_device(); Creates a null device object. cl_device_id bool true Creates a new device object for id. const device & Creates a new device object as a copy of other. device && Move-constructs a new device object from other. const device & Copies the device from other. device && Transfers the ownership of the device from other. Destroys the device object. cl_device_id Returns the device's ID. cl_device_type Returns the type of the device. std::string Returns the name of the device. std::string Returns the name of the vendor of the device. uint_ Returns the device's address size in bits. ulong_ Returns the size of the global memory in bytes. ulong_ Returns the size of the local memory in bytes. uint_ Returns the clock frequency for the device. uint_ Returns the number of compute units. size_t Returns the profiling timer resolution in nanoseconds. T Returns the preferred vector width for type T. T cl_device_info Returns information about the device.