beehive-lab / TornadoVM

TornadoVM: A practical and efficient heterogeneous programming framework for managed languages
https://www.tornadovm.org
Apache License 2.0
1.2k stars 114 forks source link

How to configure Tornado correctly in IDEA ? #303

Open Index-DiLing opened 10 months ago

Index-DiLing commented 10 months ago

After installation and compilation,I passed the test and it shows I made it But when I try to use it in IDEA,it doesn't work correctly There is my configuration JKNGRWYF}{XW_ 9F$KL5TEG FVZFI@H(XT@N~Y1}~3Q 2%N NVX6ULH4ZSP_922G %CAPSG 7P9EJM{9IZ`GA@1C03I3XIB F(ADMO9NN9I{4F GMU_8J S4IX}SF$6B3~)DB@NKDW8VU (Code source example): 5 AY%C7L3G)S(P%)4_H%VVO I should have followed the instructions and add the libs to my project Acturally,I'm a beginner at this,So please forgive me for asking for help in this way

jjfumero commented 10 months ago

Having a quick look at your config files, it seems to be correct. The error is related to the OpenCL installation (as no driver is present). Did you install the OpenCL driver/runtime? We can give you some pointers to do so, which OS are you using?

Note that you do not need the Eclipse code formatter to run TornadoVM, this is just for as to develop the core of TornadoVM.

Index-DiLing commented 10 months ago

Thanks! My OS is Windows11,I think OpenCL drivers should be included in the video driver(It's probably worth mentioning that the graphics card I used was Intel A380,is it incompatible?) What particularly confused me was that I passed the test and no errors were reported...

jjfumero commented 10 months ago

Yes, ARC GPUs are compatible with TornadoVM. I also use an ARC 750 for Windows 11. Apart from the Intel GPU driver, you need Intel oneAPI to get OpenCL and Level Zero runtimes/APIs. The oneAPI base toolkit is enough for TornadoVM: https://www.intel.com/content/www/us/en/developer/tools/oneapi/base-toolkit-download.html

Index-DiLing commented 10 months ago

Thanks again.... I download the oneAPI base toolkit except for the complier in it But it doen't work...... If only OpenCL driver is missing, OpenCL should be included in the graphics card driver....right? Is there anything else going wrong...? I've been trying for a long time, and I'm getting frustrated.Your support is very helpful for me

jjfumero commented 10 months ago

No problem. GPU drivers/runtimes are always a bit difficult to install, especially on Linux. Usually, you need two things to make OpenCL/CUDA, oneAPI, etc running.

1) GPU drivers from the GPU vendor. This will install the low-level OS driver in your system. 2) APIs and runtimes to be able to program the GPUs (this includes the OpenCL runtime, SPIR-V, etc.)

So, If you are running on ARC GPUs, you need a) the ARC GPU Driver: https://www.intel.com/content/www/us/en/products/docs/discrete-gpus/arc/software/drivers.html b) the oneAPI toolkit: https://www.intel.com/content/www/us/en/developer/tools/oneapi/base-toolkit-download.html

This should be enough to run any OpenCL. SPIR-V program, thus, should be enough for TornadoVM.

stratika commented 10 months ago

hi, last week @jjfumero published a video that is relevant to this thread.