Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling with NVHPC #1076

Merged
merged 8 commits into from
Oct 10, 2024
8 changes: 1 addition & 7 deletions src/tools/MergeVectorTools.h
Iximiel marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,7 @@ 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; }
const typename C::value_type & top() const { return *fwdIt; }
void next() { ++fwdIt;};
};

Expand Down
Loading