Login  Register

Re: Multicore processors and linux?

Posted by Gabriel Landini on Aug 25, 2007; 10:25am
URL: http://imagej.273.s1.nabble.com/Multicore-processors-and-linux-tp3698537p3698540.html

On Friday 24 August 2007, Justin McGrath wrote:
> Using ImageJ 1.39d on SuSE 10.2 with an Intel Core Duo and I don't
> seem to have any problem with the convolver.  I ran the macro you
> provided about 10 times and nothing happened.  How often do you see
> the error?

Hi Justin,
Very often, after running the macro 2 or 3 times.
However version 1.39d (the one you are using now) includes a strange hack that
prevents the code to give the error.
More specifically the new code (1 line) just checks whether the indexes of the
kernel values are larger than the expected value when processing the borders
of the image:

     if (i>=kernel.length)
        IJ.log("filter kernel index error: "+i);

I do not know why this prevents the error, but my guess is that it may change
the execution sequence in the JIT compiler. (BTW the error message is never
printed to the log window).

Thanks for checking!

Gabriel