Skip to content

Commit

Permalink
Address review comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
griwes committed Feb 7, 2024
1 parent a7e1ec9 commit 8121bba
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,10 @@
#include <cuda_fp16.h>
#endif
#ifndef _LIBCUDACXX_HAS_NO_NVBF16
#ifdef _LIBCUDACXX_COMPILER_CLANG
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-function"
#endif
_CCCL_DIAG_PUSH
_CCCL_DIAG_SUPPRESS_CLANG("-Wunused-function")
#include <cuda_bf16.h>
#ifdef _LIBCUDACXX_COMPILER_CLANG
#pragma clang diagnostic pop
#endif
_CCCL_DIAG_POP
#endif
#endif

Expand All @@ -54,9 +50,9 @@ struct __numeric_type
_LIBCUDACXX_INLINE_VISIBILITY static __half __test(__half);
#ifndef _LIBCUDACXX_HAS_NO_NVBF16
_LIBCUDACXX_INLINE_VISIBILITY static __nv_bfloat16 __test(__nv_bfloat16);
#endif
#endif
#endif
#endif // !defined(_LIBCUDACXX_HAS_NO_NVBF16)
#endif // !defined(_LIBCUDACXX_HAS_NO_NVFP16)
#endif // defined(__cuda_std__) && defined(_LIBCUDACXX_CUDACC)
_LIBCUDACXX_INLINE_VISIBILITY static float __test(float);
_LIBCUDACXX_INLINE_VISIBILITY static double __test(char);
_LIBCUDACXX_INLINE_VISIBILITY static double __test(int);
Expand Down
10 changes: 3 additions & 7 deletions libcudacxx/include/cuda/std/detail/libcxx/include/cmath
Original file line number Diff line number Diff line change
Expand Up @@ -326,14 +326,10 @@ long double truncl(long double x);
#endif

#ifndef _LIBCUDACXX_HAS_NO_NVBF16
#ifdef _LIBCUDACXX_COMPILER_CLANG
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-function"
#endif
_CCCL_DIAG_PUSH
_CCCL_DIAG_SUPPRESS_CLANG("-Wunused-function")
#include <cuda_bf16.h>
#ifdef _LIBCUDACXX_COMPILER_CLANG
#pragma clang diagnostic pop
#endif
_CCCL_DIAG_POP
#endif
#endif

Expand Down

0 comments on commit 8121bba

Please sign in to comment.