Skip to content

Commit 0101a4c

Browse files
committed
UTIL: Support for NVC in ucc_assume macro
1 parent f0384ad commit 0101a4c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/utils/ucc_compiler_def.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ static inline ucs_status_t ucc_status_to_ucs_status(ucc_status_t status)
127127

128128
#if defined(__clang__)
129129
#define ucc_assume(x) __builtin_assume(x)
130+
#elif defined(__NVCOMPILER)
131+
#define ucc_assume(x) __builtin_assume(x)
130132
#elif defined(__GNUC__)
131133
#if (__GNUC__ >= 13)
132134
/* GCC 13+ has __attribute__((assume)) */

0 commit comments

Comments
 (0)