diff --git a/src/core/impl/comp_node/cuda/comp_node.cpp b/src/core/impl/comp_node/cuda/comp_node.cpp index 8132644456ecb6ab3c9e3d85a6436c7b527e956c..afb110baea6eedd49c0ac51ac69fdddcbba1f396 100644 --- a/src/core/impl/comp_node/cuda/comp_node.cpp +++ b/src/core/impl/comp_node/cuda/comp_node.cpp @@ -279,7 +279,7 @@ public: return m_mem_alloc->get_free_left_and_right(begin_ptr, end_ptr); } - size_t get_max_block_size_available() { + size_t get_max_block_size_available() override { activate(); return m_mem_alloc->get_max_block_size_available(); } diff --git a/src/core/impl/graph/seq_sublinear_memory.cpp b/src/core/impl/graph/seq_sublinear_memory.cpp index a4075a01382e750205df6bc5c60ee3a3130a776c..f215897fdd23a422b9a4da6eb9c6e27badd67451 100644 --- a/src/core/impl/graph/seq_sublinear_memory.cpp +++ b/src/core/impl/graph/seq_sublinear_memory.cpp @@ -33,7 +33,7 @@ class RNGxorshf { uint64_t s[2]; public: -#if __cplusplus >= 201703L +#if __cplusplus >= 201703L || (defined(__APPLE__) && __cplusplus >= 201402L) typedef uint64_t result_type; static constexpr uint64_t min() { return 0; } static constexpr uint64_t max() { return UINT64_MAX; } @@ -766,7 +766,7 @@ void SeqModifierForSublinearMemory::ActionSearcherSingleCN::search_genetic() { } } m_cur_records = records; -#if __cplusplus >= 201703L +#if __cplusplus >= 201703L || (defined(__APPLE__) && __cplusplus >= 201402L) std::shuffle(perm.begin(), perm.end(), rng); #else std::random_shuffle(perm.begin(), perm.end(), @@ -1119,4 +1119,4 @@ SeqModifierForSublinearMemory::SeqModifierForSublinearMemory( #endif // !MGB_ENABLE_SUBLINEAR -// vim: syntax=cpp.doxygen foldmethod=marker foldmarker=f{{{,f}}} \ No newline at end of file +// vim: syntax=cpp.doxygen foldmethod=marker foldmarker=f{{{,f}}}