Skip to content

error about wrap a viennacl vector with an existing device vector.  #290

@ztdepztdep

Description

@ztdepztdep

when i wrap the vector with an thrust device vector as follows.
viennacl::vector vcl_rhs(thrust::raw_pointer_cast(d_b.data()), viennacl::CUDA_MEMORY, vcl_size);

I have include the
#ifndef VIENNACL_WITH_CUDA
#define VIENNACL_WITH_CUDA
#endif
in the head file ,but i still get the errors. What does it means.

terminate called after throwing an instance of 'viennacl::cuda_not_available_exception'
what(): ViennaCL was compiled without CUDA support, but CUDA functionality required for this operation.
Caught signal 6 - SIGABRT (abort)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions