Skip to content

Commit 90a453a

Browse files
Adjusted use of wrap/unwrap to templated as per changes in master
1 parent fe4294b commit 90a453a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

libsyclinterface/source/dpctl_sycl_kernel_bundle_interface.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ void DPCTLKernelBundle_Delete(__dpctl_take DPCTLSyclKernelBundleRef KBRef)
743743
__dpctl_give DPCTLSyclKernelBundleRef
744744
DPCTLKernelBundle_Copy(__dpctl_keep const DPCTLSyclKernelBundleRef KBRef)
745745
{
746-
auto Bundle = unwrap(KBRef);
746+
auto Bundle = unwrap<kernel_bundle<bundle_state::executable>>(KBRef);
747747
if (!Bundle) {
748748
error_handler(
749749
"Cannot copy DPCTLSyclKernelBundleRef as input is a nullptr",
@@ -753,7 +753,7 @@ DPCTLKernelBundle_Copy(__dpctl_keep const DPCTLSyclKernelBundleRef KBRef)
753753
try {
754754
auto CopiedBundle =
755755
new kernel_bundle<bundle_state::executable>(*Bundle);
756-
return wrap(CopiedBundle);
756+
return wrap<kernel_bundle<bundle_state::executable>>(CopiedBundle);
757757
} catch (std::exception const &e) {
758758
error_handler(e, __FILE__, __func__, __LINE__);
759759
return nullptr;

libsyclinterface/source/dpctl_sycl_kernel_interface.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ DPCTLKernel_GetName(__dpctl_keep const DPCTLSyclKernelRef KRef)
6262
return nullptr;
6363
}
6464

65-
auto sycl_kernel = unwrap(KRef);
65+
auto sycl_kernel = unwrap<kernel>(KRef);
6666
auto name = sycl_kernel->get_info<info::kernel::function_name>();
6767
return dpctl::helper::cstring_from_string(name);
6868
}
@@ -75,15 +75,15 @@ void DPCTLKernel_Delete(__dpctl_take DPCTLSyclKernelRef KRef)
7575
__dpctl_give DPCTLSyclKernelRef
7676
DPCTLKernel_Copy(__dpctl_keep const DPCTLSyclKernelRef KRef)
7777
{
78-
auto Kernel = unwrap(KRef);
78+
auto Kernel = unwrap<kernel>(KRef);
7979
if (!Kernel) {
8080
error_handler("Cannot copy DPCTLSyclKernelRef as input is a nullptr",
8181
__FILE__, __func__, __LINE__);
8282
return nullptr;
8383
}
8484
try {
8585
auto CopiedKernel = new kernel(*Kernel);
86-
return wrap(CopiedKernel);
86+
return wrap<kernel>(CopiedKernel);
8787
} catch (std::exception const &e) {
8888
error_handler(e, __FILE__, __func__, __LINE__);
8989
return nullptr;

0 commit comments

Comments
 (0)