Skip to content

Commit 83901f4

Browse files
committed
Enable HandleEventInExecutionContext workaround for Intel OpenCL SDK, too
1 parent 377ff90 commit 83901f4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

OpenCL/src/main/scala/com/thoughtworks/compute/OpenCL.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,10 @@ object OpenCL {
363363
* (e.g. https://travis-ci.org/Atry/DeepLearning.scala/jobs/318466522),
364364
* no matter if they are blocking or not.
365365
*
366-
* As a workaround, always enable this [[HandleEventInExecutionContext]] for AMD's OpenCL implementation.
366+
* There is also similar bug in Intel's OpenCL implementation
367+
*
368+
* As a workaround, always enable this [[HandleEventInExecutionContext]] for
369+
* Intel's and AMD's OpenCL implementation.
367370
*/
368371
trait HandleEventInExecutionContext extends OpenCL {
369372
val executionContext: ExecutionContext

benchmarks/src/jmh/scala/com/thoughtworks/compute/benchmarks.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ object benchmarks {
3737
with OpenCL.CommandQueuePool
3838
with OpenCL.DontReleaseEventTooEarly
3939
with OpenCL.SynchronizedCreatingKernel
40+
with OpenCL.HandleEventInExecutionContext
4041
with Tensors.WangHashingRandomNumberGenerator {
4142
@transient
4243
protected lazy val (platformId: PlatformId, deviceIds: Seq[DeviceId]) = {

0 commit comments

Comments
 (0)