Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Do not define alias macros for __half
Browse files Browse the repository at this point in the history
Neither `__fp16` and `_Float16` are used internally but may potentially clash with outside definitions.

Do not define what we do not use
  • Loading branch information
miscco committed Jun 1, 2023
1 parent c59f36a commit b76325f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions include/cuda/std/detail/__config
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,8 @@
#define __cuda_std__

#ifdef __CUDACC__
#if defined(__clang__)
#if defined(__clang__) || defined(__FLT16_MANT_DIG__)
#include <cuda_fp16.h>
#define __fp16 __half
#endif
#if defined(__FLT16_MANT_DIG__)
#include <cuda_fp16.h>
#define _Float16 __half
#endif
#define _LIBCUDACXX_CUDACC_VER_MAJOR __CUDACC_VER_MAJOR__
#define _LIBCUDACXX_CUDACC_VER_MINOR __CUDACC_VER_MINOR__
Expand Down

0 comments on commit b76325f

Please sign in to comment.