mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-28 00:03:14 +08:00
20 lines
400 B
C++
20 lines
400 B
C++
/*
|
|
* Copyright (C) 2021 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "opencl/source/kernel/multi_device_kernel.h"
|
|
namespace NEO {
|
|
|
|
MultiDeviceKernel::~MultiDeviceKernel() {
|
|
kernel->decRefInternal();
|
|
}
|
|
MultiDeviceKernel::MultiDeviceKernel(Kernel *pKernel) : kernel(pKernel) {
|
|
pKernel->incRefInternal();
|
|
pKernel->setMultiDeviceKernel(this);
|
|
};
|
|
|
|
} // namespace NEO
|