[libc-commits] [libc] [libc] Fix the GPU build for the hashing support (PR #73799)
Schrodinger ZHU Yifan via libc-commits
libc-commits at lists.llvm.org
Wed Nov 29 06:57:57 PST 2023
================
@@ -7,37 +7,46 @@
//===----------------------------------------------------------------------===//
#include "src/__support/endian.h"
+#include "src/__support/common.h"
namespace LIBC_NAMESPACE {
namespace internal {
+
+// FIXME: The GPU build cannot use 'uintptr_t' directly.
+#ifdef LIBC_TARGET_ARCH_IS_GPU
+ using bitmask_t = uint64_t;
----------------
SchrodingerZhu wrote:
Yeah. Good to know that on GPU `uintptr_t/size_t` does not resolve to register-wide types.
https://github.com/llvm/llvm-project/pull/73799
More information about the libc-commits
mailing list