Skip to content

Commit

Permalink
Fix typo in Distance.cpp in omp initialisation
Browse files Browse the repository at this point in the history
this caused serious data race condition
  • Loading branch information
vigsterkr committed Feb 28, 2017
1 parent b8012f1 commit caa0009
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shogun/distance/Distance.cpp
Expand Up @@ -282,7 +282,7 @@ SGMatrix<T> CDistance::get_distance_matrix()
#pragma omp parallel shared(num_threads, step)
{
#ifdef HAVE_OPENMP
#pragma opm single
#pragma omp single
{
num_threads=omp_get_num_threads();
step=total_num/num_threads;
Expand Down

0 comments on commit caa0009

Please sign in to comment.