The function 'prefetch' did not work correctly on the win64 platform

This commit is contained in:
shrek1402 2020-12-04 17:18:08 +00:00 committed by Rasmus Munk Larsen
parent f23dc5b971
commit a9a2f2bebf

View File

@ -568,7 +568,7 @@ template<typename Scalar> EIGEN_DEVICE_FUNC inline void prefetch(const Scalar* a
#if defined(EIGEN_HIP_DEVICE_COMPILE)
// do nothing
#elif defined(EIGEN_CUDA_ARCH)
#if defined(__LP64__)
#if #if defined(__LP64__) || EIGEN_OS_WIN64
// 64-bit pointer operand constraint for inlined asm
asm(" prefetch.L1 [ %1 ];" : "=l"(addr) : "l"(addr));
#else