octave-maintainers
[Top][All Lists]
Advanced

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

Re: Question of JITC


From: Max Brister
Subject: Re: Question of JITC
Date: Sun, 18 Aug 2013 12:04:03 -0700

On Fri, Aug 16, 2013 at 2:09 AM, lyh.kernel <address@hidden> wrote:
> Hello Max
>
>> I am wondering how to use built-in function with JITC. I write the
>> following script:
>>
>> $ cat builtin_func.m
>> A = [1, 2; 3, 4];
>>
>> i = 0;
>> do
>>   A = sin(A);
>>   i++;
>> until (i == 1)
>>
>> disp(A)
>>
>> However when I run this script:
>>
>> $ octave --debug-jit builtin_func.m
>> warning: function ./test.m shadows a core library function
>> GNU Octave, version 3.7.5
>> Copyright (C) 2013 John W. Eaton and others.
>> This is free software; see the source code for copying conditions.
>> There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
>> FITNESS FOR A PARTICULAR PURPOSE.  For details, type 'warranty'.
>>
>> Octave was configured for "x86_64-unknown-linux-gnu".
>>
>> Additional information about Octave is available at http://www.octave.org.
>>
>> Please contribute if you find this software useful.
>> For more information, visit http://www.octave.org/get-involved.html
>>
>> Read http://www.octave.org/bugs.html to learn how to submit bug reports.
>>
>> For information about changes from previous versions, type 'news'.
>>
>> jit fail: Missing overload in type inference for #2 = call  (any: sin#26)
>>    0.84147   0.90930
>>    0.14112  -0.75680
>
>
> I have some question about the JITC linear IR. Considered the example
> mentioned above, I am wondering whether the corresponding JITC linear IR of
> "sin(A)" should be "#2 = call sin (any: #26)" instead of "#2 = call  (any:
> sin#26)"?
>
> Thanks a lot

Yes, it is a bug. I'm planning on working on a fix next weekend.

-- 
Max Brister


reply via email to

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