Skip to content

Commit

Permalink
__HIP__ is not defined when compiling host code with g++, but cmake does
Browse files Browse the repository at this point in the history
add the HIP_PLATFORM_AMD__ define so check on that as well for typedefs
  • Loading branch information
loostrum committed Jun 28, 2024
1 parent 008d71b commit f40f24e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/cudawrappers/cu.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include <cudawrappers/macros.hpp>

#ifdef __HIP__
#if defined(__HIP__) || defined(__HIP_PLATFORM_AMD__)
typedef uint32_t cuuint32_t;
#endif

Expand Down

0 comments on commit f40f24e

Please sign in to comment.