2
0
mirror of https://github.com/boostorg/odeint.git synced 2026-01-19 04:22:12 +00:00

Fix compatibility with Thrust 1.10.0 (#46)

This commit is contained in:
Lutz Hofmann
2024-01-02 22:14:49 +01:00
committed by GitHub
parent 01b7f0805b
commit 12913ce967
3 changed files with 35 additions and 3 deletions

View File

@@ -53,7 +53,18 @@ struct algebra_dispatcher< thrust::device_vector< T , A > >
#include <thrust/version.h>
#if THRUST_VERSION >= 100600
#if THRUST_VERSION >= 101000
#include <thrust/detail/vector_base.h>
namespace boost { namespace numeric { namespace odeint {
template< class T , class A >
struct algebra_dispatcher< thrust::detail::vector_base< T , A > >
{
typedef thrust_algebra algebra_type;
};
} } }
#elif THRUST_VERSION >= 100600
// specialization for thrust cpp vector
#include <thrust/system/cpp/vector.h>

View File

@@ -52,7 +52,18 @@ struct operations_dispatcher< thrust::device_vector< T , A > >
#include <thrust/version.h>
#if THRUST_VERSION >= 100600
#if THRUST_VERSION >= 101000
#include <thrust/detail/vector_base.h>
namespace boost { namespace numeric { namespace odeint {
template< class T , class A >
struct operations_dispatcher< thrust::detail::vector_base< T , A > >
{
typedef thrust_operations operations_type;
};
} } }
#elif THRUST_VERSION >= 100600
// specialization for thrust cpp vector
#include <thrust/system/cpp/vector.h>

View File

@@ -140,7 +140,17 @@ ODEINT_THRUST_COPY_IMPL( thrust::host_vector )
#include <thrust/version.h>
#if THRUST_VERSION >= 100600
#if THRUST_VERSION >= 101000
#include <thrust/detail/vector_base.h>
namespace boost { namespace numeric { namespace odeint {
ODEINT_THRUST_VECTOR_IS_RESIZEABLE( thrust::detail::vector_base )
ODEINT_TRHUST_VECTOR_RESIZE_IMPL( thrust::detail::vector_base )
ODEINT_THRUST_SAME_SIZE_IMPL( thrust::detail::vector_base )
ODEINT_THRUST_COPY_IMPL( thrust::detail::vector_base )
} } }
#elif THRUST_VERSION >= 100600
#include <thrust/system/cpp/vector.h>
namespace boost { namespace numeric { namespace odeint {