We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acdde8c commit a0acf0bCopy full SHA for a0acf0b
benchmarks/build.sbt
@@ -2,9 +2,13 @@ enablePlugins(JmhPlugin)
2
3
libraryDependencies += "org.nd4j" % "nd4j-api" % "0.8.0"
4
5
-libraryDependencies += "org.nd4j" % "nd4j-cuda-8.0-platform" % "0.8.0"
+val nd4jRuntime = settingKey[String]("\"cuda-8.0\" to run benchmark on GPU, \"native\" to run benchmark on CPU.")
6
7
-libraryDependencies += "org.nd4j" % "nd4j-native-platform" % "0.8.0"
+nd4jRuntime in Global := "native"
8
+
9
+libraryDependencies += {
10
+ "org.nd4j" % s"nd4j-${nd4jRuntime.value}-platform" % "0.8.0"
11
+}
12
13
libraryDependencies += ("org.lwjgl" % "lwjgl" % "3.1.6").jar().classifier {
14
import scala.util.Properties._
0 commit comments