NVIDIA / NVIDIA/cccl

Use `NV_IF_ELSE_TARGET`

Open
#929 0 comments 1 reaction 1 assignee Claimed by @davebayer View on GitHub
Dominant language
C++
Stars
2.5k
Forks
487
Avg merge
2d 7h
Merged PRs (30d)
296

Description

We use `NV_IF_TARGET` even for cases with more than one branches. Per @miscco, we should switch to the following scheme to improve readability:

```cpp
NV_IF_TARGET(CONDITION, STATEMENTS_IF_TRUE) ;
NV_IF_ELSE_TARGET(CONDITION, STATEMENTS_IF_TRUE, STATEMENTS_IF_FALSE);
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.