Skip to content

Commit

Permalink
fix __builtin_prefetch guarding
Browse files Browse the repository at this point in the history
in dc3259f the guard for falconn::SparseVector was not introduced
  • Loading branch information
vigsterkr committed May 24, 2018
1 parent 6721b61 commit ee3da84
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/shogun/lib/external/falconn/core/prefetchers.h
Expand Up @@ -49,7 +49,9 @@ class StdVectorPrefetcher<std::vector<std::pair<IndexType, CoordinateType>>> {

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 ee3da84

Please sign in to comment.