diff --git a/conda/recipe/build.sh b/conda/recipe/build.sh index a9e86b1f32..c32b234c41 100644 --- a/conda/recipe/build.sh +++ b/conda/recipe/build.sh @@ -32,8 +32,8 @@ fi ln -s $CC $BUILD_PREFIX/bin/gcc ln -s $CXX $BUILD_PREFIX/bin/g++ -# Force -std=c++14 in CXXFLAGS -export CXXFLAGS=${CXXFLAGS/-std=c++??/-std=c++14} +# Force -std=c++17 in CXXFLAGS +export CXXFLAGS=${CXXFLAGS/-std=c++??/-std=c++17} # For some reason `aligned_alloc` is present when we use compiler version 5.4.x # Adding NO_ALIGNED_ALLOC definition for cutt diff --git a/include/dali/core/mm/cuda_memory_resource.h b/include/dali/core/mm/cuda_memory_resource.h index 0bdbd84c21..057ea6d979 100644 --- a/include/dali/core/mm/cuda_memory_resource.h +++ b/include/dali/core/mm/cuda_memory_resource.h @@ -33,14 +33,13 @@ #include #endif -// #if __has_include() +#if __has_include() #include #define _DALI_STD_PMR_NS ::std::pmr -// #elif __has_include() -// #include -// #define _DALI_STD_PMR_NS ::std::experimental::pmr -// #endif // __has_include() - +#elif __has_include() +#include +#define _DALI_STD_PMR_NS ::std::experimental::pmr +#endif // __has_include() // no-op-define, #define _DALI_TEMPLATE_VIS