Skip to content

Commit

Permalink
Well, gcc9.0 implementes OpenMP 5.0 and there is no way to test for i…
Browse files Browse the repository at this point in the history
…t with _OPENMP right now; ugly hack
  • Loading branch information
spond committed Sep 3, 2019
1 parent 3e68050 commit e98a046
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ShortestPathTN93.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ void relaxDistanceEstimates (const unsigned long theSequence, const long firstSe
double my_distance_estimate = distanceEstimates.value (theSequence);
#ifdef _OPENMP

#if _OPENMP >= 201511
#if _OPENMP >= 201511 && __GNUC__ >= 9
#pragma omp parallel for default(none) shared(my_distance_estimate,nodeParents,workingNodes,distanceEstimates, step_penalty, min_overlap, resolutionOption, firstSequenceLength, theSequence, left_to_do)
#else
#pragma omp parallel for default(none) shared(my_distance_estimate,nodeParents,workingNodes,distanceEstimates)
Expand Down
2 changes: 1 addition & 1 deletion src/read_reducer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ void handle_a_sequence (StringBuffer& current_sequence, StringBuffer& current_cl
long try_cluster = -1;

#ifdef _OPENMP
#if _OPENMP >= 201511
#if _OPENMP >= 201511 && __GNUC__ >= 9
#pragma omp parallel for default(none) shared(currently_defined_clusters, try_cluster, sequence_lengths, current_sequence, current_clusters,min_overlap,firstSequenceLength)
#else
#if _OPENMP >= 200805
Expand Down

0 comments on commit e98a046

Please sign in to comment.