Overdub print/println
Can we overdub print and println as we do for sin, cos etc.? We may compromise with printed warnings instead of errors in #393.
@vchuravy is this an easy fix?
If I understand you right you want to be able to turn a println into a @cuprintln?
I am afraid that isn't easily overdubbed, since @cuprintln is a macro and not a function call.
There might be some way around this, but I am not sure how to make it pretty...
Hmmm, would it work with @printf and @cuprintln?
I guess still not pretty as they're different macro names and one adds a new line.
If I understand you right you want to be able to turn a println into a @cuprintln?
Yes, exactly.
There might be some way around this, but I am not sure how to make it pretty...
How ugly might a hacky version look? It would be used in a relatively isolated part of the code (famous last words).
No the issue is the macro nature of it. So we have to implement the macro again.
On Tue, Feb 4, 2020, 21:17 Ali Ramadhan [email protected] wrote:
Hmmm, would it work with @printf and @cuprintln?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/vchuravy/GPUifyLoops.jl/issues/104?email_source=notifications&email_token=AABDO2SKUVXSX76TTB4G53LRBIOUBA5CNFSM4KKIOKL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKZ472I#issuecomment-582209513, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABDO2QODKUXXSNRMLICKYDRBIOUBANCNFSM4KKIOKLQ .