|
|
|
|
|
by bee_rider
811 days ago
|
|
Sometimes it is fine. For example, reference BLAS will check if the input scalars in DGEMM are exactly zero, for C <- alpha*AB + beta*C
If beta is exactly 0, you don’t have to read C, just write to it.The key here is that beta is likely to be an exact value that is entered as a constant, and detecting it allows for a worthwhile optimization. |
|