Hello, Since uniform pointers to varying types are permitted for an exported function, I don't understand why this warrants a warning. What was the motivation for adding this warning?
Thank you, Marianna On Monday, November 9, 2020 at 5:36:42 PM UTC-8 Deepak Rajendrakumaran wrote: > Hello, > > Yes, this was an expected change - > https://github.com/ispc/ispc/commit/761de37d076c64dbf8f74226a3b1f88fcb8fdc1e > > Functionally there is not change but a warning got added. You should still > be able to compile and run your code, but it'll print the warning . > 'Warning: Exported function parameter "ptr" points to varying type' merely > lets the user know they are dealing with a varying type. > > -Deepak > > On Monday, November 9, 2020 at 2:33:16 PM UTC-8 [email protected] > wrote: > >> >> An exported function (at least up to 1.12) happily accepted parameters of >> the form: >> >> varying TYPE * uniform ptr >> >> I am trying out 1.14.1 and get the following error: >> >> test.ispc:2:19: Warning: Exported >> function parameter "ptr" points >> to varying type >> run(varying float * uniform ptr) >> >> From this code: >> >> export void >> run(varying float * uniform ptr) >> { >> } >> >> The code compiles as expected at least up to 1.12. >> >> Is this an expected change? I didn't see anything about it in the >> release notes. >> >> Cheers, >> -Brian >> >> -- You received this message because you are subscribed to the Google Groups "Intel SPMD Program Compiler Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ispc-users/3240f3c9-1fc2-462e-b3de-6f07ffc61a93n%40googlegroups.com.
