Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong result in nd4j's CUDA backend #159

Open
Atry opened this issue Nov 16, 2017 · 2 comments
Open

Wrong result in nd4j's CUDA backend #159

Atry opened this issue Nov 16, 2017 · 2 comments

Comments

@Atry
Copy link
Collaborator

Atry commented Nov 16, 2017

Upstream bug https://github.com/deeplearning4j/nd4j/issues/2271

You can reproduce this bug in NaN-fix branch:

git clone https://github.com/ThoughtWorksInc/DeepLearning.scala.git --branch NaN-fix
cd DeepLearning.scala
sbt plugins-INDArrayLayers/testOnly com.thoughtworks.deeplearning.plugins.NaNSpec
@Atry
Copy link
Collaborator Author

Atry commented Nov 16, 2017

nd4j-bug.log

@Atry Atry changed the title Wrong result for CUDA backends Wrong result in the nd4j's CUDA backend Nov 16, 2017
@Atry Atry changed the title Wrong result in the nd4j's CUDA backend Wrong result in nd4j's CUDA backend Nov 16, 2017
@Atry
Copy link
Collaborator Author

Atry commented Nov 16, 2017

The workaround is using single thread only:

import java.util.concurrent.Executors
import scala.concurrent.ExecutionContext
val singleThreadExecutor = Executors.newSingleThreadExecutor()
implicit val singleThreadExecutionContext = ExecutionContext.fromExecutor(singleThreadExecutor)

// Don't import the default ExecutionContext!
// import scala.concurrent.ExecutionContext.Implicits.global

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant