lanl/singularity-eos
Consider replacing ternary expressions with multiplicative conditionals
Aberta
#319 aberto em 27 de out. de 2023
Performancegood first issue
Métricas do repositório
- Stars
- (36 estrelas)
- Métricas de merge de PR
- (Métricas PR pendentes)
Description
Per @Yurlungur we may want to replace
x = cond ? a : b
with
x = (cond) * a + (1 - cond) * b
to reduce branching and improve GPU performance.
This might be premature optimization, but it also might be a good way to specify default handling of NaNs as well.