diff options
author | Yaxun (Sam) Liu <yaxun.liu@amd.com> | 2024-02-27 10:52:55 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-27 10:52:55 -0500 |
commit | 55783bd0f9cfc30aa93c718919dab5419d86a2c6 (patch) | |
tree | 5a9b438f775d69bfda486a564cf3d11412d02697 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp | |
parent | 822142ffdfbe93f213c2c6b3f2aec7fe5f0af072 (diff) | |
download | llvm-55783bd0f9cfc30aa93c718919dab5419d86a2c6.zip llvm-55783bd0f9cfc30aa93c718919dab5419d86a2c6.tar.gz llvm-55783bd0f9cfc30aa93c718919dab5419d86a2c6.tar.bz2 |
[HIP] fix host min/max in header (#82956)
CUDA defines min/max functions for host in global namespace.
HIP header needs to define them too to be compatible.
Currently only min/max(int, int) is defined. This causes
wrong result for arguments that are out of range for int.
This patch defines host min/max functions to be compatible
with CUDA.
Also allows users to define
`__HIP_NO_HOST_MIN_MAX_IN_GLOBAL_NAMESPACE__` to disable
host max/min in global namespace.
min/max functions with mixed signed/unsigned integer
parameters are not defined unless
`__HIP_DEFINE_MIXED_HOST_MIN_MAX__` is defined.
Fixes: SWDEV-446564
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp')
0 files changed, 0 insertions, 0 deletions