Skip to content

Commit 96dcc7a

Browse files
authored
Merge pull request #8 from ThoughtWorksInc/public-kernel
Make the type Kernel public
2 parents 183a609 + 9cb5b29 commit 96dcc7a

File tree

3 files changed

+3
-81
lines changed

3 files changed

+3
-81
lines changed

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

Lines changed: 0 additions & 77 deletions
This file was deleted.

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ object OpenCL {
590590
}
591591
}
592592

593-
private[compute] final case class Kernel[Owner <: OpenCL with Singleton](handle: Long)
593+
final case class Kernel[Owner <: OpenCL with Singleton](handle: Long)
594594
extends AnyVal
595595
with MonadicCloseable[UnitContinuation] {
596596

@@ -781,6 +781,7 @@ object OpenCL {
781781
trait OpenCL extends MonadicCloseable[UnitContinuation] with ImplicitsSingleton {
782782
type Program = OpenCL.Program[this.type]
783783
type Event = OpenCL.Event[this.type]
784+
type Kernel = OpenCL.Kernel[this.type]
784785
protected def createProgramWithSource(sourceCode: TraversableOnce[CharSequence]): Program = {
785786
val stack = stackPush()
786787
try {

build.sbt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ organization in ThisBuild := "com.thoughtworks.compute"
44

55
lazy val Memory = project
66

7-
lazy val Closeables = project
8-
9-
lazy val OpenCL = project.dependsOn(Closeables, Memory)
7+
lazy val OpenCL = project.dependsOn(Memory)
108

119
lazy val OpenCLCodeGenerator = project.dependsOn(Memory)
1210

0 commit comments

Comments
 (0)