mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-30 10:15:13 +08:00
The function 'prefetch' did not work correctly on the win64 platform
This commit is contained in:
parent
f23dc5b971
commit
a9a2f2bebf
@ -568,7 +568,7 @@ template<typename Scalar> EIGEN_DEVICE_FUNC inline void prefetch(const Scalar* a
|
|||||||
#if defined(EIGEN_HIP_DEVICE_COMPILE)
|
#if defined(EIGEN_HIP_DEVICE_COMPILE)
|
||||||
// do nothing
|
// do nothing
|
||||||
#elif defined(EIGEN_CUDA_ARCH)
|
#elif defined(EIGEN_CUDA_ARCH)
|
||||||
#if defined(__LP64__)
|
#if #if defined(__LP64__) || EIGEN_OS_WIN64
|
||||||
// 64-bit pointer operand constraint for inlined asm
|
// 64-bit pointer operand constraint for inlined asm
|
||||||
asm(" prefetch.L1 [ %1 ];" : "=l"(addr) : "l"(addr));
|
asm(" prefetch.L1 [ %1 ];" : "=l"(addr) : "l"(addr));
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user