BLAS and Vector API

Samuel Audet samuel.audet at gmail.com
Tue Jan 5 00:56:54 UTC 2021


Hi, Maurizio,

On 1/5/21 1:22 AM, Maurizio Cimadamore wrote:
> 
> On 04/01/2021 14:52, Samuel Audet wrote:
>> Hi, Ludovic,
>>
>> On 1/4/21 10:48 PM, Ludovic Henry wrote:
>>> I’ll also explore using the Foreign Linker API to wrap the OpenBLAS 
>>> library without going through JNI. I’m curious whether it’s going to 
>>> lead to performance improvements.
>>
>> No, not yet, it won't, since that still uses JNI:
>> https://github.com/microsoft/onnxruntime/pull/4329#issuecomment-673848183
> 
> Where did you get this information from? The comment you quote shows my 
> reply and then you somehow (erroneously) inferring that the linker API 
> is based on JNI.
> 
> The Foreign Linker API support has very little to do with JNI support. 
> Of course, since some of the stuff the VM has to do to go from Java to 
> native are the same, performances might not be too different (unless 
> state transitions are removed, which is possible with the linker API).

OpenJDK hasn't been providing a lot of updates about the status of the 
various Panama APIs for a year or so now, so I can only assume that 
things had not changed. Also, since you're not replying to messages 
containing information about what you said of the state of things in the 
past (that the foreign API was using JNI, I can dig up the specific 
message if you want), I simply assumed that things had not changed! 
Sorry about that

I'll say it again: Keeping all this information "internal" isn't helping 
the community. I understand that you probably don't have any say in 
this, that it's all about policies at Oracle, so please don't take it 
personally. As usual, thanks for updating us with the information you 
can provide.

Samuel


More information about the panama-dev mailing list