Hi, I am trying to do this:--multiply(csr_matrix_view, array2d_row_view, array2d_row_view)but it seems that the array2d as the result vector is not changed by the multiplication. Does this show that the result, i.e. y, must not be a view?Thanks,Lifeng
You received this message because you are subscribed to the Google Groups "cusp-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cusp-users+...@googlegroups.com.
To post to this group, send email to cusp-...@googlegroups.com.
Visit this group at https://groups.google.com/group/cusp-users.
For more options, visit https://groups.google.com/d/optout.
/usr/local/cuda/bin/../include/cusp/detail/multiply.inl(48): error: no instance of overloaded function "multiply" matches the argument list
argument types are: (thrust::system::cuda::detail::tag, const cusp::array2d_view<cusp::array1d_view<thrust::detail::normal_iterator<thrust::device_ptr<float>>>, cusp::row_major>, const cusp::array2d_view<cusp::array1d_view<thrust::detail::normal_iterator<thrust::device_ptr<float>>>, cusp::row_major>, cusp::array2d_view<cusp::array1d_view<thrust::detail::normal_iterator<thrust::device_ptr<float>>>, cusp::row_major>, Format1, Format2, Format3)
detected during:
instantiation of "void cusp::multiply(const thrust::detail::execution_policy_base<DerivedPolicy> &, const LinearOperator &, const MatrixOrVector1 &, MatrixOrVector2 &) [with DerivedPolicy=thrust::system::cuda::detail::tag, LinearOperator=cusp::array2d_view<cusp::array1d_view<thrust::detail::normal_iterator<thrust::device_ptr<float>>>, cusp::row_major>, MatrixOrVector1=cusp::array2d_view<cusp::array1d_view<thrust::detail::normal_iterator<thrust::device_ptr<float>>>, cusp::row_major>, MatrixOrVector2=cusp::array2d_view<cusp::array1d_view<thrust::detail::normal_iterator<thrust::device_ptr<float>>>, cusp::row_major>]"
(70): here
instantiation of "void cusp::multiply(const LinearOperator &, const MatrixOrVector1 &, MatrixOrVector2 &) [with LinearOperator=cusp::array2d_view<cusp::array1d_view<thrust::detail::normal_iterator<thrust::device_ptr<float>>>, cusp::row_major>, MatrixOrVector1=cusp::array2d_view<cusp::array1d_view<thrust::detail::normal_iterator<thrust::device_ptr<float>>>, cusp::row_major>, MatrixOrVector2=cusp::array2d_view<cusp::array1d_view<thrust::detail::normal_iterator<thrust::device_ptr<float>>>, cusp::row_major>]"
version.cu(51): here
1 error detected in the compilation of "/var/folders/bq/02vpb7v14q589sb3mq27kl8w0000gn/T//tmpxft_0001730f_00000000-9_version.cpp1.ii".
/usr/local/cuda/bin/../include/cusp/system/detail/generic/multiply.inl(131): error: no instance of overloaded function "cusp::system::detail::generic::multiply" matches the argument list
argument types are: (cusp::system::cuda::detail::par_t, const cusp::array2d_view<cusp::array1d_view<thrust::detail::normal_iterator<thrust::device_ptr<float>>>, cusp::row_major>, const cusp::csr_matrix_view<cusp::array1d_view<thrust::detail::normal_iterator<thrust::device_ptr<int>>>, cusp::array1d_view<thrust::detail::normal_iterator<thrust::device_ptr<int>>>, cusp::array1d_view<thrust::detail::normal_iterator<thrust::device_ptr<float>>>, int, float, cusp::device_memory>, cusp::array2d_view<cusp::array1d_view<thrust::detail::normal_iterator<thrust::device_ptr<float>>>, cusp::row_major>, cusp::constant_functor<float>, thrust::multiplies<float>, thrust::plus<float>, Format1, Format2, Format3)
detected during:
instantiation of "thrust::detail::disable_if_convertible<UnaryFunction, cusp::known_format, void>::type cusp::system::detail::generic::multiply(thrust::execution_policy<DerivedPolicy> &, const LinearOperator &, const MatrixOrVector1 &, MatrixOrVector2 &, UnaryFunction, BinaryFunction1, BinaryFunction2) [with DerivedPolicy=cusp::system::cuda::detail::par_t, LinearOperator=cusp::array2d_view<cusp::array1d_view<thrust::detail::normal_iterator<thrust::device_ptr<float>>>, cusp::row_major>, MatrixOrVector1=cusp::csr_matrix_view<cusp::array1d_view<thrust::detail::normal_iterator<thrust::device_ptr<int>>>, cusp::array1d_view<thrust::detail::normal_iterator<thrust::device_ptr<int>>>, cusp::array1d_view<thrust::detail::normal_iterator<thrust::device_ptr<float>>>, int, float, cusp::device_memory>, MatrixOrVector2=cusp::array2d_view<cusp::array1d_view<thrust::detail::normal_iterator<thrust::device_ptr<float>>>, cusp::row_major>, UnaryFunction=cusp::constant_functor<float>, BinaryFunction1=thrust::multiplies<float>, BinaryFunction2=thrust::plus<float>]"
/usr/local/cuda/bin/../include/cusp/detail/multiply.inl(78): here
instantiation of "void cusp::multiply(const thrust::detail::execution_policy_base<DerivedPolicy> &, const LinearOperator &, const MatrixOrVector1 &, MatrixOrVector2 &, UnaryFunction, BinaryFunction1, BinaryFunction2) [with DerivedPolicy=cusp::system::cuda::detail::par_t, LinearOperator=cusp::array2d_view<cusp::array1d_view<thrust::detail::normal_iterator<thrust::device_ptr<float>>>, cusp::row_major>, MatrixOrVector1=cusp::csr_matrix_view<cusp::array1d_view<thrust::detail::normal_iterator<thrust::device_ptr<int>>>, cusp::array1d_view<thrust::detail::normal_iterator<thrust::device_ptr<int>>>, cusp::array1d_view<thrust::detail::normal_iterator<thrust::device_ptr<float>>>, int, float, cusp::device_memory>, MatrixOrVector2=cusp::array2d_view<cusp::array1d_view<thrust::detail::normal_iterator<thrust::device_ptr<float>>>, cusp::row_major>, UnaryFunction=cusp::constant_functor<float>, BinaryFunction1=thrust::multiplies<float>, BinaryFunction2=thrust::plus<float>]"
(104): here
instantiation of "thrust::detail::disable_if_convertible<LinearOperator::format, cusp::unknown_format, void>::type cusp::system::detail::generic::multiply(thrust::execution_policy<DerivedPolicy> &, const LinearOperator &, const MatrixOrVector1 &, MatrixOrVector2 &) [with DerivedPolicy=cusp::system::cuda::detail::par_t, LinearOperator=cusp::array2d_view<cusp::array1d_view<thrust::detail::normal_iterator<thrust::device_ptr<float>>>, cusp::row_major>, MatrixOrVector1=cusp::csr_matrix_view<cusp::array1d_view<thrust::detail::normal_iterator<thrust::device_ptr<int>>>, cusp::array1d_view<thrust::detail::normal_iterator<thrust::device_ptr<int>>>, cusp::array1d_view<thrust::detail::normal_iterator<thrust::device_ptr<float>>>, int, float, cusp::device_memory>, MatrixOrVector2=cusp::array2d_view<cusp::array1d_view<thrust::detail::normal_iterator<thrust::device_ptr<float>>>, cusp::row_major>]"
/usr/local/cuda/bin/../include/cusp/detail/multiply.inl(38): here
instantiation of "void cusp::multiply(const thrust::detail::execution_policy_base<DerivedPolicy> &, const LinearOperator &, const MatrixOrVector1 &, MatrixOrVector2 &) [with DerivedPolicy=cusp::system::cuda::detail::par_t, LinearOperator=cusp::array2d_view<cusp::array1d_view<thrust::detail::normal_iterator<thrust::device_ptr<float>>>, cusp::row_major>, MatrixOrVector1=cusp::csr_matrix_view<cusp::array1d_view<thrust::detail::normal_iterator<thrust::device_ptr<int>>>, cusp::array1d_view<thrust::detail::normal_iterator<thrust::device_ptr<int>>>, cusp::array1d_view<thrust::detail::normal_iterator<thrust::device_ptr<float>>>, int, float, cusp::device_memory>, MatrixOrVector2=cusp::array2d_view<cusp::array1d_view<thrust::detail::normal_iterator<thrust::device_ptr<float>>>, cusp::row_major>]"
/usr/local/cuda/bin/../include/cusp/detail/multiply.inl(58): here
instantiation of "void cusp::multiply(const LinearOperator &, const MatrixOrVector1 &, MatrixOrVector2 &) [with LinearOperator=cusp::array2d_view<cusp::array1d_view<thrust::detail::normal_iterator<thrust::device_ptr<float>>>, cusp::row_major>, MatrixOrVector1=cusp::csr_matrix_view<cusp::array1d_view<thrust::detail::normal_iterator<thrust::device_ptr<int>>>, cusp::array1d_view<thrust::detail::normal_iterator<thrust::device_ptr<int>>>, cusp::array1d_view<thrust::detail::normal_iterator<thrust::device_ptr<float>>>, int, float, cusp::device_memory>, MatrixOrVector2=cusp::array2d_view<cusp::array1d_view<thrust::detail::normal_iterator<thrust::device_ptr<float>>>, cusp::row_major>]"