You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The CudaInternalVar object is a class which describes a function which takes a literal integer as an argument and returns a cuda property in the requested dimension. E.g. the subclass CudaThreadIdx returns the 1st, 2nd or 3rd thread index. I think that this is a sub-optimal solution as the resulting code is quite different from the syntax that users may be familiar with. Furthermore the use of an argument will encourage users to pass variables instead of literals so we will need robust error messages to explain why this is not possible.
I therefore recommend replacing CudaInternalVar by a class type similar to:
The
CudaInternalVar
object is a class which describes a function which takes a literal integer as an argument and returns a cuda property in the requested dimension. E.g. the subclassCudaThreadIdx
returns the 1st, 2nd or 3rd thread index. I think that this is a sub-optimal solution as the resulting code is quite different from the syntax that users may be familiar with. Furthermore the use of an argument will encourage users to pass variables instead of literals so we will need robust error messages to explain why this is not possible.I therefore recommend replacing
CudaInternalVar
by a class type similar to:and replacing the subclasses by simple variables. E.g:
This would allow the user to write the code as:
The text was updated successfully, but these errors were encountered: