mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 01:04:57 +08:00
Change-Id: I67a6919bbbff1d30c7d6cdb257b41c87bad51e7f Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
23 lines
446 B
C++
23 lines
446 B
C++
/*
|
|
* Copyright (C) 2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "shared/source/helpers/non_copyable_or_moveable.h"
|
|
|
|
namespace NEO {
|
|
|
|
class HwDeviceId : NonCopyableClass {
|
|
public:
|
|
HwDeviceId(int fileDescriptorIn) : fileDescriptor(fileDescriptorIn) {}
|
|
~HwDeviceId();
|
|
int getFileDescriptor() const { return fileDescriptor; }
|
|
|
|
protected:
|
|
const int fileDescriptor;
|
|
};
|
|
} // namespace NEO
|