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:
committed by
Brecht Van Lommel
parent
03b1071bcb
commit
1692817b5e
2
extern/hipew/include/hipew.h
vendored
2
extern/hipew/include/hipew.h
vendored
@@ -87,7 +87,7 @@ typedef uint32_t hipuint32_t;
|
||||
typedef uint64_t hipuint64_t;
|
||||
#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;
|
||||
#else
|
||||
typedef unsigned int hipDeviceptr_t;
|
||||
|
||||
Reference in New Issue
Block a user