Open
Description
Describe the bug
I noticed that one of the unit-tests that belongs to the white-list group, has a problem with a closing bracket only for the OpenCL backend. The PTX and SPIRV backends are working.
How To Reproduce
I have built TornadoVM as follows:
git checkout develop
./bin/tornadovm-installer --jdk jdk-21 --backend opencl && source setvars.sh
tornado --version
returns
version=1.0.7-dev
branch=develop
commit=4a2a072
Backends installed:
- opencl
I ran the test06()
test from the TestIf.java class, and got the output as follows:
tornado --jvm "-Xmx6g -Dtornado.recover.bailout=False -Dtornado.unittests.verbose=True " -m tornado.unittests/uk.ac.manchester.tornado.unittests.tools.TornadoTestRunner --params "uk.ac.manchester.tornado.unittests.foundation.TestIf#test06"
WARNING: Using incubator modules: jdk.incubator.vector
2 errors generated.
[TornadoVM-OCL-JNI] ERROR : clBuildProgram -> Returned: -11
[ERROR] TornadoVM JIT Compiler - OpenCL Build Error Log:
<kernel>:52:1: error: expected identifier or '('
return;
^
<kernel>:53:1: error: extraneous closing brace ('}')
} // kernel
^
Test: class uk.ac.manchester.tornado.unittests.foundation.TestIf#test06
Running test: test06 ................ [FAILED]
\_[REASON] Bailout is disabled.
Expected behavior
The expected behavior is to generate the OpenCL kernel which will be able to be built.
Computing system setup (please complete the following information):
- OS:
Ubuntu 23.10
- OpenCL version:
OpenCL 1.2
- Driver:
n/a
- TornadoVM commit id:
4a2a072
from branchdevelop