File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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);
You can’t perform that action at this time.
0 commit comments