lanl/singularity-eos

Consider replacing ternary expressions with multiplicative conditionals

オープン

#319 opened on 2023/10/27

 (2 件のコメント) (1 件のリアクション) (0 人の担当者)C++ (21 件のフォーク)auto 404
Performancegood first issue

Repository metrics

Stars
 (36 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド