MemorySegment plugin and standalone usage of MemorySegment #491
-
Good day. I found out that if I use Vector API and TornadoVM, the last one stops working if I use it after the first. My flow of execution is the following.
That raises several questions:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Hello @andrii0lomakin , Thank you for the information. It is possible to share a reproducer of the work-flow that triggers this incosistency? I used extensively TornadoVM along with the VectorAPI in this LLM inference example without having any data incosistencies https://github.com/mikepapadim/llama2.tornadovm.java Also, how do you call TornadoVM with the MemorySegment? Did you have a look here: https://github.com/beehive-lab/TornadoVM/blob/master/tornado-unittests/src/main/java/uk/ac/manchester/tornado/unittests/vector/api/TestVectorAPI.java |
Beta Was this translation helpful? Give feedback.
-
@mikepapadim could you confirm that the usage of plugins for MemorySegment does not prevent its usage in Vector API or directly |
Beta Was this translation helpful? Give feedback.
Actually, for the JDK22 port we have a proxy class for the MemorySegments and we register/handle the plugins for accesses only through this proxy class