Skip to content

Commit a091ac4

Browse files
Explicitely delete move ctor for HostKernelRef.
1 parent 79d19a9 commit a091ac4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sycl/include/sycl/detail/cg_types.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ class HostKernelRef : public HostKernelRefBase {
256256

257257
public:
258258
HostKernelRef(KernelType &&Kernel) : MKernel(std::move(Kernel)) {}
259+
HostKernelRef(const KernelType &Kernel) = delete;
259260

260261
virtual char *getPtr() override { return reinterpret_cast<char *>(&MKernel); }
261262
virtual std::unique_ptr<HostKernelBase> takeOrCopyOwnership() const override {
@@ -291,7 +292,7 @@ class HostKernelRef<KernelType, KernelTypeUniversalRef &, KernelArgType, Dims>
291292
};
292293

293294
// This function is needed for host-side compilation to keep kernels
294-
// instantitated. This is important for debuggers to be able to associate
295+
// instantiated. This is important for debuggers to be able to associate
295296
// kernel code instructions with source code lines.
296297
template <class KernelType, class KernelArgType, int Dims>
297298
constexpr void *GetInstantiateKernelOnHostPtr() {

0 commit comments

Comments
 (0)