From 2e6a4b32f345b1994e12b702ec45e1df1232f442 Mon Sep 17 00:00:00 2001 From: CoreRasurae <luis.p.mendes@gmail.com> Date: Tue, 31 Oct 2023 19:36:41 +0000 Subject: [PATCH] Officially assume Aparapi support for the Scala language as broken --- CHANGELOG.md | 2 ++ README.md | 3 +++ src/test/scala/com/aparapi/SimpleScalaTest.scala | 8 ++++++-- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d15acff5..b12680aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ * Fix code generation for Private memory space arrays * Fix regression with NoCL annotated methods called from Kernel.run() method * Add support for mad24 OpenCL call as a mapped Kernel method +* Aparapi support for the Scala language is officially declared as broken +* SimpleScalaTest unit tests are now disabled ## v3.0.0 * Add support for getKernelMaxWorkGroupSize(), getKernelCompileWorkGroupSize(), getKernelPreferredWorkGroupSizeMultiple(), getKernelMinimumPrivateMemSizeInUsePerWorkItem() and getKernelLocalMemSizeInUse() diff --git a/README.md b/README.md index c2e541f9..79fb792b 100644 --- a/README.md +++ b/README.md @@ -119,3 +119,6 @@ Kernel kernel = new Kernel() { Range range = Range.create(result.length); kernel.execute(range); ``` + +## Known Issues +- Aparapi support for the Scala language is officially declared as broken \ No newline at end of file diff --git a/src/test/scala/com/aparapi/SimpleScalaTest.scala b/src/test/scala/com/aparapi/SimpleScalaTest.scala index 20e76faa..69164334 100644 --- a/src/test/scala/com/aparapi/SimpleScalaTest.scala +++ b/src/test/scala/com/aparapi/SimpleScalaTest.scala @@ -44,13 +44,17 @@ class SimpleScalaTest { KernelWriter.writeToString(entryPoint) } - @Test def testKernel(): Unit = { + //Unit test intentionally disabled until Scala support is fixed in Aparapi + //@Test def testKernel(): Unit = { + def testKernel(): Unit = { val a = Array.fill(50000)(Random.nextFloat()) val b = Array.fill(50000)(Random.nextFloat()) assertTrue(runKernel(a, b).length == 50000) } - @Test def testCL(): Unit = { + //Unit test intentionally disabled until Scala support is fixed in Aparapi + //@Test def testCL(): Unit = { + def testCL(): Unit = { val a = Array.fill(50000)(Random.nextFloat()) val b = Array.fill(50000)(Random.nextFloat()) val expected = -- GitLab