diff --git a/library/src/rng/system.hpp b/library/src/rng/system.hpp index 3e17888b..c3b95018 100644 --- a/library/src/rng/system.hpp +++ b/library/src/rng/system.hpp @@ -38,7 +38,8 @@ #include #include -#ifdef ROCRAND_PARALLEL_STL +#if defined(ROCRAND_PARALLEL_STL) && __has_include() +#define ROCRAND_USE_PARALLEL_STL #include #endif #include @@ -130,7 +131,7 @@ struct rocrand_system_host }; std::for_each( -#ifdef ROCRAND_PARALLEL_STL +#ifdef ROCRAND_USE_PARALLEL_STL std::execution::par_unseq, #endif cpp_utils::threedim_iterator::begin(num_blocks),