octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Status of JIT compilet


From: Julien Bect
Subject: Re: Status of JIT compilet
Date: Wed, 29 Jan 2020 10:41:35 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1

Le 29/01/2020 à 04:00, Kai Torben Ohlhus a écrit :
On 1/29/20 12:11 AM, José Luis García Pallero wrote:
Hello:

I'm going to compile the alpha version 5.1.90. Which is the status of
the JIT compiler? Is safe to use it?

Thanks

To my knowledge there has been little/no work on the JIT project [1] in
the past years.

This is not completely true...

Some recent work can be found there : https://savannah.gnu.org/bugs/index.php?56425.

These patches, however, never found their way to the development branch as far as I know.  Not to mention the stable branch (since the question is about 5.x).


If Octave is configured/compiled with an appropriate llvm version, some for-loops could be speed up, but I cannot provide a reliable guide how to do it.


Unless you try to (update and) use the above-mentioned patches (not sure they apply to stable), you would have to use a very old LLVM version.  Something like LLVM 3.8 would be my first choice.

Furthermore, even if you manage to build it, the existing jit is only able to speed some very simple loops.

And, since José asks whether it is safe, I should add that there are, as far as I know, some very serious problems.   In particular, exceptions are not handled properly and simply crash octave.  (Not sure if Harvey's patches solve that.)

So, no, unless things have changed (a lot) rather recently, I wouldn't say that it is safe.

HTH...

@++
Julien.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]