Replies: 6 comments 10 replies
-
You need to compile TornadoVM first. The TornadoVM build-script will create all JAR files as well as the dynamic libraries for OpenCL/PTX execution ( Besides, we have an easy-installer script for TornadoVM to be used from the terminal. Assuming you have a supported OS and OpenCL/CUDA installed, this should be fine. https://github.com/beehive-lab/tornadovm-installer We do not use Netbeans, so I can't tell the instructions to make it work. We use IntelliJ, and here we have the setup: All JAR files are available and can be found here: https://github.com/beehive-lab/TornadoVM/tree/maven-tornadovm https://github.com/beehive-lab/TornadoVM/tree/maven-tornadovm/tornado |
Beta Was this translation helpful? Give feedback.
-
So guys, I have followed the link you gave me about the COMPILATION of the TornadoVM under Windows using MySys2 and...voila: all seems to be done successfully and all tests form the MINGx64 I made passed! :-) Thank you - being very happy I managed at least to compile it incl. those native dlls for Windows I was searching for so desperatelly - in case you would care to include them into your zip file here in GitHub for others like me who are struggling to obtain them, I can send those two dlls to you gladly, just tell me how. Now, as I have those two, I will test it under my project in NetBeans finding out if that was really the case it did not work, missing those two native DLLs of TornadoVM - will give you update later today (fingers crossed once again that all will work in my NetBeans 12.4 x64)! UPDATE Unfortunately, despite now having those 2 TornadoVM native dyn libs ("tornado-opencl.dll" and "tornado-ptx.dll") included properly in the NetBenas project, I still get the error when trying to run test files from there:
So, to me it either means there are some other TornadoVM native dyn libs in need that were not compiled, OR something else like some other native dyn libs from some other JAR of different developer that are needed are not there (and I have feeling the latter might be the case, right? like maybe some DLLs from the Graal I downloaded and unpacked, hm?). If that is the true: could you tell me which other DLLs are needed to be included to my project so that the TornadoVM would work finally for me in NetBeans (as it works nicelly when run from the MINGx64 under MySys2)? What I think is although I have correct graal JARs included in my project, isn't there also some native dyn libs of its own too that your TornadoVM expects? So that if I would know which one exactly those are, I would include them into my project copied directly from the installed Graal in my PC (the one that I downloaded when I was prepariong for the Tornado's dyn libs compilation process). |
Beta Was this translation helpful? Give feedback.
-
It is nice that the I hope the following parts will be useful:
All these flags can be displayed by running: tornado --printFlags
|
Beta Was this translation helpful? Give feedback.
-
Hello Juan, Thanks to you and your team for the wonderful work. I have a different native library question. I have an Ubuntu VM running in WSL2 on Microsoft Windows 10 Professional. I installed TornadoVM successfully using your automated scripts but the simple test of tornado --devices
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f0f2f6af230, pid=3436, tid=3437
#
# JRE version: OpenJDK Runtime Environment GraalVM CE 21.3.0 (11.0.13+7) (build 11.0.13+7-jvmci-21.3-b05)
# Java VM: OpenJDK 64-Bit Server VM GraalVM CE 21.3.0 (11.0.13+7-jvmci-21.3-b05, mixed mode, tiered, jvmci, jvmci compiler, parallel gc, linux-amd64)
# Problematic frame:
# C 0x00007f0f2f6af230
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/vero/gpu/TornadoVM-master/hs_err_pid3436.log
#
# If you would like to submit a bug report, please visit:
# https://github.com/oracle/graal/issues
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
/home/vero/gpu/TornadoVM-master/bin/bin/tornado: line 321: 3436 Aborted ${JAVA_CMD} ${JAVA_FLAGS} $@ uk.ac.manchester.tornado.drivers.TornadoDeviceQuery verbose I am able to use the GPU with other applications without issues. |
Beta Was this translation helpful? Give feedback.
-
Thanks a million for that. I will take a look at that.
On Monday, 7 March 2022, 09:27:23 CET, Juan Fumero ***@***.***> wrote:
It seems OpenCL is still not supported to run on discrete GPUs.
microsoft/WSL#6951
However, Intel recently supported OpenCL to run on Intel HD Graphics (integrated GPUs)
https://devblogs.microsoft.com/commandline/oneapi-l0-openvino-and-opencl-coming-to-the-windows-subsystem-for-linux-for-intel-gpus/
As I said, we haven't tested this yet. If you want to run on Windows, we strongly recommend following the instructions here.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I presumed there was an integrated Intel Graphics but there is none in the laptop. Graphics says Add-in and none displayed in Device Manager. Thanks for drawing my attention to the hardware which I haven´t had a chance to look at for a very long time.
On Monday, 7 March 2022, 09:27:23 CET, Juan Fumero ***@***.***> wrote:
It seems OpenCL is still not supported to run on discrete GPUs.
microsoft/WSL#6951
However, Intel recently supported OpenCL to run on Intel HD Graphics (integrated GPUs)
https://devblogs.microsoft.com/commandline/oneapi-l0-openvino-and-opencl-coming-to-the-windows-subsystem-for-linux-for-intel-gpus/
As I said, we haven't tested this yet. If you want to run on Windows, we strongly recommend following the instructions here.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I am trying to load and test TornadoVM src in NetBeans 12.4 x64, I had to recreate whole src structure on my own as POM for some reason does not work for me (project is loaded, but no dependencies are solved/downloaded and a lot of other errors).
So I was "playing" with it whole day, after a head-ache situations I guess I made it to the point where all seems to be OK, nothing is missing (or it seems so in NetBeans = no errors of missing jars etc.).
But most of the examples ends up in errors , mostly with
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
.Those examples seems to be everytime such that are trying to use TaskSchedule().
For instance, example file/class BlackAndWhiteTransform.java: normally, when I just run the code as it is, it works great - it process the image. I think what it does is that it checks for itself if GPU can be used and if not switch to CPU. So I manually set it to do parallelComputation(g); instead of sequentialComputation(g); which it does on its own by default in my case. As soon as I did that and hit RUN, it ended up with lots of errors in Output window, like this one here:
But if I let it to chose on its own, that is switch to CPU ( ---> sequentialComputation(g); ), it works OK: it produces B&W image out of color one (BTW: there was no image.jpg included in the ZIP, I had to provide my own and also change the path value from "/tmp/" to "tmp/", else it would ends up in error saying it cannot find the image file!
SO NOW TO MY QUESTION: do I understand it right, that for the TornadoVM to work on GPU it needs its own native DLL to be included (just like other similar JAVA "products" that uses GPU, like JCuda)? If so, how to obtain them...where? They are not in the src master ZIP file, and Google was of no help at all too. Actually, under drivers, I saw some .cpp and .h files, but it is of no purpose for me as I have no knowledge how to use them and generate those system native DLLs (well, in case that is what they are).
Guys, it would be really helpfull a lot, if some of you would actually also provide COMPILED TornadoVM.jar file and TornadoVM-natives.jar (dlls) as well, cos it is really pain-in-da-eiss trying to make this work as it should...cos this has huge potential, like image renderers from 3D files - my case scenario (render that take several hours could be done in few minutes, right?)
Beta Was this translation helpful? Give feedback.
All reactions