Skip to content

Commit 2468f24

Browse files
authored
Merge pull request #209 from ThoughtWorksInc/optional
Set platform dependency as Optional instead of Test
2 parents 452dda7 + cfb9b3a commit 2468f24

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

plugins-CumulativeTensorLayers/build.sbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
libraryDependencies += ("org.lwjgl" % "lwjgl" % "3.1.6" % Test).jar().classifier {
1+
libraryDependencies += ("org.lwjgl" % "lwjgl" % "3.1.6" % Optional).jar().classifier {
22
import scala.util.Properties._
33
if (isMac) {
44
"natives-macos"

plugins-CumulativeTensorLayers/src/test/scala/com/thoughtworks/deeplearning/plugins/CumulativeTensorLayersSpec.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ final class CumulativeTensorLayersSpec extends AsyncFreeSpec with Matchers {
6666
"translate" in {
6767
Do.monadicCloseable {
6868
Factory[
69-
Logging with TensorLiterals with TensorWeights with CNNs with Operators with StrictLogging with Tensors.UnsafeMathOptimizations with OpenCL.LogContextNotification with OpenCL.GlobalExecutionContext with OpenCL.CommandQueuePool with OpenCL.UseAllCpuDevices with OpenCL.DontReleaseEventTooEarly with OpenCL.SynchronizedCreatingKernel with OpenCL.HandleEventInExecutionContextForIntelAndAMDPlatform with Tensors.WangHashingRandomNumberGenerator with ImplicitsSingleton]
69+
Logging with TensorLiterals with TensorWeights with CNNs with Operators with StrictLogging with OpenCL.UnsafeMathOptimizations with OpenCL.LogContextNotification with OpenCL.GlobalExecutionContext with OpenCL.CommandQueuePool with OpenCL.UseAllCpuDevices with OpenCL.DontReleaseEventTooEarly with OpenCL.SynchronizedCreatingKernel with OpenCL.HandleEventInExecutionContextForIntelAndAMDPlatform with Tensors.WangHashingRandomNumberGenerator with ImplicitsSingleton]
7070
.newInstance(numberOfCommandQueuesPerDevice = 5)
7171
}
7272
.flatMap { hyperparameters =>
@@ -130,7 +130,7 @@ final class CumulativeTensorLayersSpec extends AsyncFreeSpec with Matchers {
130130

131131
Do.monadicCloseable {
132132
Factory[
133-
Logging with TensorLiterals with TensorWeights with CNNs with Operators with StrictLogging with Tensors.UnsafeMathOptimizations with OpenCL.LogContextNotification with OpenCL.GlobalExecutionContext with OpenCL.CommandQueuePool with OpenCL.UseAllCpuDevices with OpenCL.DontReleaseEventTooEarly with OpenCL.SynchronizedCreatingKernel with OpenCL.HandleEventInExecutionContextForIntelAndAMDPlatform with Tensors.WangHashingRandomNumberGenerator with ImplicitsSingleton]
133+
Logging with TensorLiterals with TensorWeights with CNNs with Operators with StrictLogging with OpenCL.UnsafeMathOptimizations with OpenCL.LogContextNotification with OpenCL.GlobalExecutionContext with OpenCL.CommandQueuePool with OpenCL.UseAllCpuDevices with OpenCL.DontReleaseEventTooEarly with OpenCL.SynchronizedCreatingKernel with OpenCL.HandleEventInExecutionContextForIntelAndAMDPlatform with Tensors.WangHashingRandomNumberGenerator with ImplicitsSingleton]
134134
.newInstance(numberOfCommandQueuesPerDevice = 5)
135135
}
136136
.flatMap { hyperparameters =>

plugins-TensorLayers/build.sbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
libraryDependencies += ("org.lwjgl" % "lwjgl" % "3.1.6" % Test).jar().classifier {
1+
libraryDependencies += ("org.lwjgl" % "lwjgl" % "3.1.6" % Optional).jar().classifier {
22
import scala.util.Properties._
33
if (isMac) {
44
"natives-macos"

plugins-TensorLayers/src/test/scala/com/thoughtworks/deeplearning/plugins/TensorLayersSpec.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class TensorLayersSpec extends AsyncFreeSpec with Matchers {
2020

2121
Do.monadicCloseable {
2222
Factory[
23-
TensorWeights with TensorLayers with Operators with StrictLogging with Tensors.UnsafeMathOptimizations with OpenCL.LogContextNotification with OpenCL.GlobalExecutionContext with OpenCL.CommandQueuePool with OpenCL.UseAllCpuDevices with OpenCL.DontReleaseEventTooEarly with OpenCL.SynchronizedCreatingKernel with OpenCL.HandleEventInExecutionContextForIntelAndAMDPlatform with Tensors.WangHashingRandomNumberGenerator with ImplicitsSingleton]
23+
TensorWeights with TensorLayers with Operators with StrictLogging with OpenCL.UnsafeMathOptimizations with OpenCL.LogContextNotification with OpenCL.GlobalExecutionContext with OpenCL.CommandQueuePool with OpenCL.UseAllCpuDevices with OpenCL.DontReleaseEventTooEarly with OpenCL.SynchronizedCreatingKernel with OpenCL.HandleEventInExecutionContextForIntelAndAMDPlatform with Tensors.WangHashingRandomNumberGenerator with ImplicitsSingleton]
2424
.newInstance(numberOfCommandQueuesPerDevice = 5)
2525
}
2626
.flatMap { hyperparameters =>

plugins-TensorLiterals/build.sbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
libraryDependencies += ("org.lwjgl" % "lwjgl" % "3.1.6" % Test).jar().classifier {
1+
libraryDependencies += ("org.lwjgl" % "lwjgl" % "3.1.6" % Optional).jar().classifier {
22
import scala.util.Properties._
33
if (isMac) {
44
"natives-macos"

plugins-TensorTraining/build.sbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
libraryDependencies += ("org.lwjgl" % "lwjgl" % "3.1.6" % Test).jar().classifier {
1+
libraryDependencies += ("org.lwjgl" % "lwjgl" % "3.1.6" % Optional).jar().classifier {
22
import scala.util.Properties._
33
if (isMac) {
44
"natives-macos"

plugins-TensorWeights/build.sbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
libraryDependencies += ("org.lwjgl" % "lwjgl" % "3.1.6" % Test).jar().classifier {
1+
libraryDependencies += ("org.lwjgl" % "lwjgl" % "3.1.6" % Optional).jar().classifier {
22
import scala.util.Properties._
33
if (isMac) {
44
"natives-macos"

plugins-TensorWeights/src/main/scala/com/thoughtworks/deeplearning/plugins/TensorWeights.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ trait TensorWeights extends Tensors with Weights {
116116
* Factory[
117117
* TensorWeights
118118
* with StrictLogging
119-
* with Tensors.UnsafeMathOptimizations
119+
* with OpenCL.UnsafeMathOptimizations
120120
* with OpenCL.LogContextNotification
121121
* with OpenCL.GlobalExecutionContext
122122
* with OpenCL.CommandQueuePool

0 commit comments

Comments
 (0)