Skip to content

Commit

Permalink
Use __builtin_prefetch only when compiling with GNUC
Browse files Browse the repository at this point in the history
  • Loading branch information
vigsterkr committed Jan 27, 2017
1 parent d061047 commit dc3259f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/shogun/lib/external/falconn/core/prefetchers.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ class StdVectorPrefetcher<

void prefetch(const std::vector<PointType>& points,
int_fast64_t prefetch_index) {
#ifdef __GNUC__
__builtin_prefetch((points[prefetch_index]).data(), 0, 1);
#endif
}
};

Expand Down

0 comments on commit dc3259f

Please sign in to comment.