mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-12 09:23:12 +08:00
Adding synchronisation to convolution kernel for sycl backend.
This commit is contained in:
parent
1b32a10053
commit
f499fe9496
@ -539,6 +539,11 @@ for (int iter = 0; iter < 10; ++iter) {
|
||||
if (Eigen::internal::is_same<Device, Eigen::GpuDevice>::value) {
|
||||
device_.synchronize();
|
||||
}
|
||||
#elif defined(EIGEN_USE_SYCL)
|
||||
if (Eigen::internal::is_same<Device, Eigen::SyclDevice>::value) {
|
||||
device_.synchronize();
|
||||
}
|
||||
|
||||
#endif
|
||||
StopBenchmarkTiming();
|
||||
SetBenchmarkFlopsProcessed(num_items);
|
||||
|
@ -425,6 +425,7 @@ struct TensorEvaluator<const TensorConvolutionOp<Indices, InputArgType, KernelAr
|
||||
}
|
||||
}
|
||||
});
|
||||
m_device.asynchronousExec();
|
||||
}
|
||||
|
||||
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE CoeffReturnType coeff(Index index) const
|
||||
|
Loading…
x
Reference in New Issue
Block a user