You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried the experimental branch of TornadoVM working with JDK 22, and noticed that the result of the generated OpenCL kernels for FPGAs are not result.
and I have used the oneAPI base toolkit to see also the Intel FPGA in emulation mode:
tornado --devices
WARNING: Using incubator modules: jdk.incubator.vector
Number of Tornado drivers: 1
Driver: OpenCL
Total number of OpenCL devices : 4
Tornado device=0:0 (DEFAULT)
OPENCL -- [NVIDIA CUDA] -- NVIDIA RTX A2000 8GB Laptop GPU
Global Memory Size: 7.8 GB
Local Memory Size: 48.0 KB
Workgroup Dimensions: 3
Total Number of Block Threads: [1024]
Max WorkGroup Configuration: [1024, 1024, 64]
Device OpenCL C version: OpenCL C 1.2
Tornado device=0:1
OPENCL -- [Intel(R) OpenCL HD Graphics] -- Intel(R) Graphics [0x46a6]
Global Memory Size: 24.8 GB
Local Memory Size: 64.0 KB
Workgroup Dimensions: 3
Total Number of Block Threads: [512]
Max WorkGroup Configuration: [512, 512, 512]
Device OpenCL C version: OpenCL C 1.2
Tornado device=0:2
OPENCL -- [Intel(R) OpenCL] -- 12th Gen Intel(R) Core(TM) i9-12900H
Global Memory Size: 31.0 GB
Local Memory Size: 32.0 KB
Workgroup Dimensions: 3
Total Number of Block Threads: [8192]
Max WorkGroup Configuration: [8192, 8192, 8192]
Device OpenCL C version: OpenCL C 3.0
Tornado device=0:3
OPENCL -- [Intel(R) FPGA Emulation Platform for OpenCL(TM)] -- Intel(R) FPGA Emulation Device
Global Memory Size: 31.0 GB
Local Memory Size: 256.0 KB
Workgroup Dimensions: 3
Total Number of Block Threads: [67108864]
Max WorkGroup Configuration: [67108864, 67108864, 67108864]
Device OpenCL C version: OpenCL C 1.2
Then, I ran the DFTMT.java class from the dynamic examples (uk.ac.manchester.tornado.examples.dynamic) on the FPGA emulation platform, and got the output as follows:
I did a diff with the kernel for the same test as generated in the develop branch. The first observation is that there is a casting on the values used to calculate the address (ul_14) that is used for loading the data. See variable l_12, in the following screenshot.
I guess, the expected behavior would be to avoid this casting.
Computing system setup (please complete the following information):
OS: Ubuntu 23.10
OpenCL version: OpenCL 1.2
Driver: 2023.16.10.0.17_160000
TornadoVM commit id: dec5a87 from branch feat/jdk22_2nd_iteration
The text was updated successfully, but these errors were encountered:
Describe the bug
I tried the experimental branch of TornadoVM working with JDK 22, and noticed that the result of the generated OpenCL kernels for FPGAs are not result.
How To Reproduce
I have built TornadoVM as follows:
returns
and I have used the oneAPI base toolkit to see also the Intel FPGA in emulation mode:
Then, I ran the
DFTMT.java
class from the dynamic examples (uk.ac.manchester.tornado.examples.dynamic
) on the FPGA emulation platform, and got the output as follows:Expected behavior
I did a diff with the kernel for the same test as generated in the
develop
branch. The first observation is that there is a casting on the values used to calculate the address (ul_14
) that is used for loading the data. See variablel_12
, in the following screenshot.I guess, the expected behavior would be to avoid this casting.
Computing system setup (please complete the following information):
Ubuntu 23.10
OpenCL 1.2
2023.16.10.0.17_160000
dec5a87
from branchfeat/jdk22_2nd_iteration
The text was updated successfully, but these errors were encountered: