Closed abouteiller closed 2 months ago
Where are these macros used as functions ? As I commented on the other PR, the compound expressions with values is a GNU extensions, and the correct format is with the
({ ... })
.
They will be in the trsm code (you saw that later), and there will also be more of these uses when we switch to cublas_v2 as passing the literal 'N' will not work anymore.
We do not need the GNU extension for macro-functions (we don't have local variables), so I just used the serial composition operator (,) and that is just regular C.
Rework:
What's the problem here? (I remember you told me sometime 😅 @abouteiller )
They would cause compilation error when used as functions (e.g. as parameters in a cublass kernel) due to having semicolons etc. Reworded so that they operate as functions (not made them inline because that would cause pulling a bunch of includes when not used.