File tree 1 file changed +5
-1
lines changed
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()
97
97
}
98
98
#endif
99
99
100
+ #if defined(DPNPC_TOUCH_KERNEL_TO_LINK)
100
101
/* *
101
102
* Function push the SYCL kernels to be linked (final stage of the compilation) for the current queue
102
103
*
@@ -120,6 +121,7 @@ static long dpnp_kernels_link()
120
121
121
122
return result;
122
123
}
124
+ #endif
123
125
124
126
#if defined(DPNP_LOCAL_QUEUE)
125
127
// Catch asynchronous exceptions
@@ -177,8 +179,10 @@ void backend_sycl::backend_sycl_queue_init(QueueOptions selector)
177
179
#endif
178
180
179
181
std::chrono::high_resolution_clock::time_point t3 = std::chrono::high_resolution_clock::now ();
182
+ #if defined(DPNPC_TOUCH_KERNEL_TO_LINK)
180
183
// Remove pre-link kernel library at startup time
181
- // dpnp_kernels_link();
184
+ dpnp_kernels_link ();
185
+ #endif
182
186
std::chrono::high_resolution_clock::time_point t4 = std::chrono::high_resolution_clock::now ();
183
187
std::chrono::duration<double > time_kernels_link =
184
188
std::chrono::duration_cast<std::chrono::duration<double >>(t4 - t3);
You can’t perform that action at this time.
0 commit comments