mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
refactor: add NonCopyableOrMovableClass to classes that don't need copy ctors
Related-To: NEO-9038 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
038c287656
commit
72182c28e9
@@ -8,6 +8,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "shared/source/device/device.h"
|
||||
#include "shared/source/helpers/non_copyable_or_moveable.h"
|
||||
#include "shared/source/helpers/topology_map.h"
|
||||
#include "shared/source/memory_manager/memadvise_flags.h"
|
||||
#include "shared/source/memory_manager/unified_memory_manager.h"
|
||||
@@ -29,7 +30,7 @@ struct SysmanDevice;
|
||||
struct FabricVertex;
|
||||
class CacheReservation;
|
||||
|
||||
struct DeviceImp : public Device {
|
||||
struct DeviceImp : public Device, NEO::NonCopyableOrMovableClass {
|
||||
DeviceImp();
|
||||
ze_result_t getStatus() override;
|
||||
ze_result_t submitCopyForP2P(ze_device_handle_t hPeerDevice, ze_bool_t *value);
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "shared/source/helpers/non_copyable_or_moveable.h"
|
||||
#include "shared/source/helpers/surface_format_info.h"
|
||||
|
||||
#include "level_zero/core/source/image/image.h"
|
||||
@@ -16,7 +17,7 @@
|
||||
|
||||
namespace L0 {
|
||||
|
||||
struct ImageImp : public Image {
|
||||
struct ImageImp : public Image, NEO::NonCopyableOrMovableClass {
|
||||
ze_result_t destroy() override;
|
||||
ze_result_t destroyPeerImages(const void *ptr, Device *device) override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user