Fix: Wrong HIP device pointer size on riscv64 and loongarcg64

Add __LP64__ to 64-bit platform detection, to ensure hipDeviceptr_t has the
correct size on these platforms.

Pull Request: https://projects.blender.org/blender/blender/pulls/140528
This commit is contained in:
Zhou Qiankang
2025-06-17 20:18:00 +02:00
committed by Brecht Van Lommel
parent 03b1071bcb
commit 1692817b5e

View File

@@ -87,7 +87,7 @@ typedef uint32_t hipuint32_t;
typedef uint64_t hipuint64_t; typedef uint64_t hipuint64_t;
#endif #endif
#if defined(__x86_64) || defined(AMD64) || defined(_M_AMD64) || defined (__aarch64__) || defined(_M_ARM64) || defined(__ppc64__) || defined(__PPC64__) #if defined(__x86_64) || defined(AMD64) || defined(_M_AMD64) || defined (__aarch64__) || defined(_M_ARM64) || defined(__ppc64__) || defined(__PPC64__) || defined(__LP64__)
typedef unsigned long long hipDeviceptr_t; typedef unsigned long long hipDeviceptr_t;
#else #else
typedef unsigned int hipDeviceptr_t; typedef unsigned int hipDeviceptr_t;