-
Notifications
You must be signed in to change notification settings - Fork 18
/
build.sbt
45 lines (26 loc) · 1.09 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
organization in ThisBuild := "com.thoughtworks.compute"
lazy val Memory = project
lazy val OpenCL = project.dependsOn(Memory)
lazy val benchmarks = project.dependsOn(Tensors)
lazy val Expressions = project.dependsOn(NDimensionalAffineTransform)
lazy val Trees = project.dependsOn(Expressions)
lazy val NDimensionalAffineTransform = project
lazy val OpenCLKernelBuilder = project.dependsOn(Expressions, Trees % Test)
lazy val Tensors = project.dependsOn(OpenCLKernelBuilder, OpenCL, Trees)
lazy val gpu = project.dependsOn(Tensors)
lazy val cpu = project.dependsOn(Tensors)
publish / skip := true
enablePlugins(ScalaUnidocPlugin)
unidocProjectFilter in ScalaUnidoc in unidoc := inAggregates(LocalRootProject)
addCompilerPlugin("org.spire-math" %% "kind-projector" % "0.9.10")
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.1" cross CrossVersion.full)
scalacOptions += "-Xexperimental"
scalacOptions += "-Ypartial-unification"
scalacOptions in ThisBuild ++= {
if (scalaBinaryVersion.value == "2.11") {
Some("-Ybackend:GenBCode")
} else {
None
}
}
ThisBuild / useCoursier := false