Skip to content

Commit

Permalink
Work around OMP barrier issue with MSVC (pytorch#2918)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: pytorch#2918

Differential Revision: D60601583

Pulled By: q10
  • Loading branch information
q10 authored and facebook-github-bot committed Aug 1, 2024
1 parent e3db758 commit df77f14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions fbgemm_gpu/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jinja2
mpmath==1.3.0
ninja
numpy
pyre-extensions
scikit-build
setuptools
setuptools_git_versioning
Expand Down
1 change: 1 addition & 0 deletions src/Utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -801,6 +801,7 @@ std::pair<K*, V*> radix_sort_parallel(
std::swap(input_keys, output_keys);
std::swap(input_values, output_values);
#pragma omp barrier
{}
}
}
#ifdef _MSC_VER
Expand Down

0 comments on commit df77f14

Please sign in to comment.