Philippe Tillet <[email protected]>
writes:
> These kind of operations are supposed to be redirected to the generator,
> for temporaries removal. This should be included in 1.6.0. I just need to
> find some time to implement this.

OK, for now, I will have PyViennaCL create a temporary and dispatch the
sub-statement, until the generator pathway is ready :)

Thanks, Philippe,


T


> It's essentially just a matter of calling
> device_specific::matrix_axpy_template
> template(device_specific::builtin_database::get(device));
> device_specific::execute(template, statement, context)
>
> At the right place.
>
> Philippe
>
>
> 2014-07-24 18:28 GMT+02:00 Toby St Clere Smithe <[email protected]>:
>
>> Hi all,
>>
>> I'm rewriting my test suite, and am currently getting exceptions from
>> the scheduler when trying to do something like this pseudo-code:
>>
>>   A = matrix
>>   B = unary_sqrt(A)
>>   C = A + B
>>
>> The relevant exception is line 252 of scheduler/execute_axbx.hpp (I'm at
>> commit ca0c4d), and my statement looks like this:
>>
>> Node 0: LHS: DOUBLE_TYPE, DENSE_MATRIX_TYPE (0x167a880), OP:
>> OPERATION_BINARY_ASSIGN_TYPE, RHS: COMPOSITE_OPERATION_FAMILY(1)
>>  Node 1: LHS: DOUBLE_TYPE, DENSE_MATRIX_TYPE (0xae9260), OP:
>> OPERATION_BINARY_ADD_TYPE, RHS: COMPOSITE_OPERATION_FAMILY(2)
>>   Node 2: LHS: DOUBLE_TYPE, DENSE_MATRIX_TYPE (0xae9260), OP:
>> OPERATION_UNARY_SQRT_TYPE, RHS: INVALID_TYPE_FAMILY
>>
>> Because of the exception text, it looks like this kind of thing isn't
>> supported right now. Should I just force PyViennaCL to create an
>> explicit temporary when a composite operation node includes a unary
>> operation?
>>
>> Cheers,
>>
>>
>> Toby
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Want fast and easy access to all the code in your enterprise? Index and
>> search up to 200,000 lines of code with a free copy of Black Duck
>> Code Sight - the same software that powers the world's largest code
>> search on Ohloh, the Black Duck Open Hub! Try it now.
>> http://p.sf.net/sfu/bds
>> _______________________________________________
>> ViennaCL-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/viennacl-devel
>>
> ------------------------------------------------------------------------------
> Want fast and easy access to all the code in your enterprise? Index and
> search up to 200,000 lines of code with a free copy of Black Duck
> Code Sight - the same software that powers the world's largest code
> search on Ohloh, the Black Duck Open Hub! Try it now.
> http://p.sf.net/sfu/bds
> _______________________________________________
> ViennaCL-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/viennacl-devel

-- 
Toby St Clere Smithe
http://tsmithe.net


------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
ViennaCL-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/viennacl-devel

Reply via email to