Skip to content

Commit

Permalink
Merge branch 'compileWithNVHPC' of https://github.com/Iximiel/plumed2
Browse files Browse the repository at this point in the history
…into compileWithNVHPC
  • Loading branch information
Iximiel committed May 16, 2024
2 parents aa4266e + cec19bf commit 378fb88
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/tools/MergeVectorTools.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,8 @@ static void mergeSortedVectors(const C* const* vecs, std::size_t size, std::vect
/// to allow using a priority_queu, which selects the highest element.
/// we here (counterintuitively) define < as >
bool operator< (Entry const& rhs) const { return top() > rhs.top(); }
#ifdef __NVCOMPILER
#define PLMDAUTO typename C::value_type
#else
//I prefer letting gcc doing his work
#define PLMDAUTO auto
#endif
const PLMDAUTO & top() const { return *fwdIt; }
// TODO: revert "typename C::value_type" to "auto": nvc++ and icpc seems to do not deduce automatically the return type
const typename C::value_type & top() const { return *fwdIt; }
void next() { ++fwdIt;};
};

Expand Down

0 comments on commit 378fb88

Please sign in to comment.