mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-27 15:53:13 +08:00
Decouple cl_device_id from Device class. Related-To: NEO-3938 Change-Id: I68543a753aea562f3b47ba0d23a059ff3cffa906 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
27 lines
576 B
C++
27 lines
576 B
C++
/*
|
|
* Copyright (C) 2017-2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "runtime/api/cl_types.h"
|
|
|
|
#include <vector>
|
|
|
|
namespace NEO {
|
|
class ClDevice;
|
|
|
|
class ClDeviceVector : public std::vector<ClDevice *> {
|
|
public:
|
|
ClDeviceVector() = default;
|
|
ClDeviceVector(const ClDeviceVector &) = default;
|
|
ClDeviceVector &operator=(const ClDeviceVector &) = default;
|
|
ClDeviceVector(const cl_device_id *devices,
|
|
cl_uint numDevices);
|
|
void toDeviceIDs(std::vector<cl_device_id> &devIDs);
|
|
};
|
|
|
|
} // namespace NEO
|