Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions unified-runtime/source/adapters/opencl/context.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ struct ur_context_handle_t_ : ur::opencl::handle_base {
bool IsNativeHandleOwned = true;
ur::RefCount RefCount;

ur_context_handle_t_(const ur_context_handle_t_ &) = delete;
ur_context_handle_t_ &operator=(const ur_context_handle_t_ &) = delete;

ur_context_handle_t_(native_type Ctx, uint32_t DevCount,
const ur_device_handle_t *phDevices)
: handle_base(), CLContext(Ctx), DeviceCount(DevCount) {
Expand Down
3 changes: 3 additions & 0 deletions unified-runtime/source/adapters/opencl/device.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ struct ur_device_handle_t_ : ur::opencl::handle_base {
bool IsNativeHandleOwned = true;
ur::RefCount RefCount;

ur_device_handle_t_(const ur_device_handle_t_ &) = delete;
ur_device_handle_t_ &operator=(const ur_device_handle_t_ &) = delete;

ur_device_handle_t_(native_type Dev, ur_platform_handle_t Plat,
ur_device_handle_t Parent)
: handle_base(), CLDevice(Dev), Platform(Plat), ParentDevice(Parent) {
Expand Down
3 changes: 3 additions & 0 deletions unified-runtime/source/adapters/opencl/kernel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ struct ur_kernel_handle_t_ : ur::opencl::handle_base {
clSetKernelArgMemPointerINTEL_fn clSetKernelArgMemPointerINTEL = nullptr;
ur::RefCount RefCount;

ur_kernel_handle_t_(const ur_kernel_handle_t_ &) = delete;
ur_kernel_handle_t_ &operator=(const ur_kernel_handle_t_ &) = delete;

ur_kernel_handle_t_(native_type Kernel, ur_program_handle_t Program,
ur_context_handle_t Context)
: handle_base(), CLKernel(Kernel), Program(Program), Context(Context) {
Expand Down
3 changes: 3 additions & 0 deletions unified-runtime/source/adapters/opencl/memory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ struct ur_mem_handle_t_ : ur::opencl::handle_base {
bool IsNativeHandleOwned = true;
ur::RefCount RefCount;

ur_mem_handle_t_(const ur_mem_handle_t_ &) = delete;
ur_mem_handle_t_ &operator=(const ur_mem_handle_t_ &) = delete;

ur_mem_handle_t_(native_type Mem, ur_context_handle_t Ctx)
: handle_base(), CLMemory(Mem), Context(Ctx) {
urContextRetain(Context);
Expand Down
3 changes: 3 additions & 0 deletions unified-runtime/source/adapters/opencl/platform.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ struct ur_platform_handle_t_ : ur::opencl::handle_base {
std::map<cl_device_id, ur_device_handle_t> SubDevices;
std::mutex SubDevicesLock;

ur_platform_handle_t_(const ur_platform_handle_t_ &) = delete;
ur_platform_handle_t_ &operator=(const ur_platform_handle_t_ &) = delete;

ur_platform_handle_t_(native_type Plat) : handle_base(), CLPlatform(Plat) {}

~ur_platform_handle_t_() {
Expand Down
3 changes: 3 additions & 0 deletions unified-runtime/source/adapters/opencl/queue.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ struct ur_queue_handle_t_ : ur::opencl::handle_base {
ur_event_handle_t LastEvent = nullptr;
ur::RefCount RefCount;

ur_queue_handle_t_(const ur_queue_handle_t_ &) = delete;
ur_queue_handle_t_ &operator=(const ur_queue_handle_t_ &) = delete;

ur_queue_handle_t_(native_type Queue, ur_context_handle_t Ctx,
ur_device_handle_t Dev, bool InOrder)
: handle_base(), CLQueue(Queue), Context(Ctx), Device(Dev),
Expand Down
3 changes: 3 additions & 0 deletions unified-runtime/source/adapters/opencl/sampler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ struct ur_sampler_handle_t_ : ur::opencl::handle_base {
bool IsNativeHandleOwned = false;
ur::RefCount RefCount;

ur_sampler_handle_t_(const ur_sampler_handle_t_ &) = delete;
ur_sampler_handle_t_ &operator=(const ur_sampler_handle_t_ &) = delete;

ur_sampler_handle_t_(native_type Sampler, ur_context_handle_t Ctx)
: handle_base(), CLSampler(Sampler), Context(Ctx) {
urContextRetain(Context);
Expand Down
Loading