We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b03e840 commit 18218f0Copy full SHA for 18218f0
tensorflow/core/platform/prefetch.h
@@ -44,7 +44,9 @@ void prefetch(const void* x);
44
// ---------------------------------------------------------------------------
45
template <PrefetchHint hint>
46
inline void prefetch(const void* x) {
47
-#if defined(__llvm__) || defined(COMPILER_GCC)
+// Check of COMPILER_GCC macro below is kept only for backward-compatibility
48
+// reasons. COMPILER_GCC3 is the macro that actually enables prefetch.
49
+#if defined(__llvm__) || defined(COMPILER_GCC) || defined(COMPILER_GCC3)
50
__builtin_prefetch(x, 0, hint);
51
#else
52
// You get no effect. Feel free to add more sections above.
0 commit comments