Skip to content

Commit 5ae05ca

Browse files
committed
refector comment to preprocessor
1 parent ffb3b04 commit 5ae05ca

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

dpnp/backend/src/queue_sycl.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ static cl::sycl::device get_default_sycl_device()
9797
}
9898
#endif
9999

100+
#if defined(DPNPC_TOUCH_KERNEL_TO_LINK)
100101
/**
101102
* Function push the SYCL kernels to be linked (final stage of the compilation) for the current queue
102103
*
@@ -120,6 +121,7 @@ static long dpnp_kernels_link()
120121

121122
return result;
122123
}
124+
#endif
123125

124126
#if defined(DPNP_LOCAL_QUEUE)
125127
// Catch asynchronous exceptions
@@ -177,8 +179,10 @@ void backend_sycl::backend_sycl_queue_init(QueueOptions selector)
177179
#endif
178180

179181
std::chrono::high_resolution_clock::time_point t3 = std::chrono::high_resolution_clock::now();
182+
#if defined(DPNPC_TOUCH_KERNEL_TO_LINK)
180183
// Remove pre-link kernel library at startup time
181-
// dpnp_kernels_link();
184+
dpnp_kernels_link();
185+
#endif
182186
std::chrono::high_resolution_clock::time_point t4 = std::chrono::high_resolution_clock::now();
183187
std::chrono::duration<double> time_kernels_link =
184188
std::chrono::duration_cast<std::chrono::duration<double>>(t4 - t3);

0 commit comments

Comments
 (0)