From e98a046d53e2ca4a3e61b7b799a4234aa65efb2c Mon Sep 17 00:00:00 2001 From: Sergei Pond Date: Tue, 3 Sep 2019 12:21:33 -0400 Subject: [PATCH] Well, gcc9.0 implementes OpenMP 5.0 and there is no way to test for it with _OPENMP right now; ugly hack --- src/ShortestPathTN93.cpp | 2 +- src/read_reducer.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ShortestPathTN93.cpp b/src/ShortestPathTN93.cpp index a3ad2be..62824a6 100644 --- a/src/ShortestPathTN93.cpp +++ b/src/ShortestPathTN93.cpp @@ -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) diff --git a/src/read_reducer.cpp b/src/read_reducer.cpp index c748c40..80f3fe9 100644 --- a/src/read_reducer.cpp +++ b/src/read_reducer.cpp @@ -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