Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Workaround MSVC 2015 error by introducing a meaningless semicolon aft…
Browse files Browse the repository at this point in the history
…er omp barrier

Fixes #817
  • Loading branch information
Evghenii Gaburov committed Jul 26, 2016
1 parent f7f2075 commit 52b558b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions thrust/system/omp/detail/sort.inl
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ void stable_sort(execution_policy<DerivedPolicy> &exec,

#pragma omp barrier

// XXX For some reason, MSVC 2015 yields an error unless we include this meaningless semicolon here
;

IndexType nseg = decomp.size();
IndexType h = 2;

Expand Down Expand Up @@ -209,6 +212,9 @@ void stable_sort_by_key(execution_policy<DerivedPolicy> &exec,

#pragma omp barrier

// XXX For some reason, MSVC 2015 yields an error unless we include this meaningless semicolon here
;

IndexType nseg = decomp.size();
IndexType h = 2;

Expand Down

0 comments on commit 52b558b

Please sign in to comment.