Ask Your Question
0

Error on vector<cuda::HostMem> host_src_pl(768, 1024, CV_8UC1, cuda::HostMem::PAGE_LOCKED)

asked 2015-06-13 03:30:23 -0600

abhiguru gravatar image

When I try to create a vector of HostMem I get an error

 vector<cuda::HostMem> host_src_pl(768, 1024, CV_8UC1, cuda::HostMem::PAGE_LOCKED)

no matching function for call to ‘std::vector<cv::cuda::hostmem>::vector(int, int, int, cv::cuda::HostMem::AllocType)’

Is it not allowed to have a vector of HostMem ?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2015-06-14 15:48:18 -0600

Hello there! Well basically the second answer in this topic describes why trying to vectorize cuda memory is quite contra intuitive and probably not the best way to go.

However Thrust does have some cuda memory vectorization, described right here: http://stackoverflow.com/questions/17...

There is more information on this in the Thrust documentation on the device vector for memory management.

OpenCV doesnt allow this, well it is more C++ not standard supplying functionality for that.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-06-13 03:30:23 -0600

Seen: 222 times

Last updated: Jun 14 '15