Skip to content

Commit fa084d0

Browse files
committed
Add hProgram in kernel copy constructor
1 parent d6ae2a9 commit fa084d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/adapters/native_cpu/kernel.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ struct ur_kernel_handle_t_ : RefCounted {
4545
HasReqdWGSize(false) {}
4646

4747
ur_kernel_handle_t_(const ur_kernel_handle_t_ &other)
48-
: _name(other._name), _subhandler(other._subhandler), _args(other._args),
48+
: hProgram(other.hProgram), _name(other._name),
49+
_subhandler(other._subhandler), _args(other._args),
4950
_localArgInfo(other._localArgInfo), _localMemPool(other._localMemPool),
5051
_localMemPoolSize(other._localMemPoolSize),
5152
HasReqdWGSize(other.HasReqdWGSize), ReqdWGSize(other.ReqdWGSize) {

0 commit comments

Comments
 (0)