New user self-registration is currently disabled. Please email eigen-core-team @ lists.tuxfamily.org if you need an account.
Bug 1249 - Protect __builtin_prefetch
Protect __builtin_prefetch
Status: RESOLVED FIXED
Product: Eigen
Classification: Unclassified
Component: Core - vectorization
3.3 (current stable)
All All
: Normal Unknown
Assigned To: Nobody
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-07-01 11:48 UTC by Marc Glisse
Modified: 2016-07-25 13:18 UTC (History)
4 users (show)



Attachments

Description Marc Glisse 2016-07-01 11:48:11 UTC
Hello,

Eigen/src/Core/GenericPacketMath.h currently calls __builtin_prefetch with !EIGEN_COMP_MSVC as the only check. This fails for instance with Oracle's compiler, which doesn't seem to know this builtin. Maybe a slightly more restrictive test would help?
Comment 1 Gael Guennebaud 2016-07-25 13:18:29 UTC
I've enabled it for gcc, icc, and clang only.
devel: https://bitbucket.org/eigen/eigen/commits/68ddbdbf359e/
3.2:   https://bitbucket.org/eigen/eigen/commits/4cafb84ba074/

Note You need to log in before you can comment on or make changes to this bug.