diff options
Diffstat (limited to 'third-party/boost-math/include/boost/math/tools/array.hpp')
| -rw-r--r-- | third-party/boost-math/include/boost/math/tools/array.hpp | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/third-party/boost-math/include/boost/math/tools/array.hpp b/third-party/boost-math/include/boost/math/tools/array.hpp new file mode 100644 index 000000000000..23e666673c10 --- /dev/null +++ b/third-party/boost-math/include/boost/math/tools/array.hpp @@ -0,0 +1,41 @@ +// Copyright (c) 2024 Matt Borland +// Use, modification and distribution are subject to the +// Boost Software License, Version 1.0. (See accompanying file +// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +// +// Regular use of std::array functions can not be used on +// GPU platforms like CUDA since they are missing the __device__ marker +// Alias as needed to get correct support + +#ifndef BOOST_MATH_TOOLS_ARRAY_HPP +#define BOOST_MATH_TOOLS_ARRAY_HPP + +#include <boost/math/tools/config.hpp> + +#ifdef BOOST_MATH_ENABLE_CUDA + +#include <cuda/std/array> + +namespace boost { +namespace math { + +using cuda::std::array; + +} // namespace math +} // namespace boost + +#else + +#include <array> + +namespace boost { +namespace math { + +using std::array; + +} // namespace math +} // namespace boost + +#endif // BOOST_MATH_ENABLE_CUDA + +#endif // BOOST_MATH_TOOLS_ARRAY_HPP |
