I have the following functor:
struct find_bias {
thrust::device_event event;
void operator()(thrust::device_ptr<float> bias, thrust::device_ptr<float> data, int size)
{
event = thrust::async::reduce_into(thrust::cuda::par.on(cudaStreamPerThread),
data, data + size, bias, 0.f, thrust::minimum<float>());
}
};
Compilation with Visual Studio 2019 and CUDA Toolkit 10.2 results in the following error:
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\include\thrust/system/cuda/detail/async/reduce.h(77): error : template parameter "thrust::detail::allocator_traits<Alloc>::rebind_traits [with Alloc=const auto]" may not have a template argument list
The error appears even if I explicitly provide allocator to the policy.
Thanks in advance.