mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00

Change-Id: If965c79d70392db26597aea4c2f3b7ae2820fe96 Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
26 lines
555 B
C++
26 lines
555 B
C++
/*
|
|
* Copyright (C) 2017-2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "runtime/api/cl_types.h"
|
|
|
|
#include <vector>
|
|
|
|
namespace NEO {
|
|
class Device;
|
|
class DeviceVector : public std::vector<Device *> {
|
|
public:
|
|
DeviceVector() = default;
|
|
DeviceVector(const DeviceVector &) = default;
|
|
DeviceVector &operator=(const DeviceVector &) = default;
|
|
DeviceVector(const cl_device_id *devices,
|
|
cl_uint numDevices);
|
|
void toDeviceIDs(std::vector<cl_device_id> &devIDs);
|
|
};
|
|
|
|
} // namespace NEO
|