Intel® oneAPI Data Parallel C++
Support for Intel® oneAPI DPC++ Compiler, Intel® oneAPI DPC++ Library, Intel ICX Compiler , Intel® DPC++ Compatibility Tool, and GDB*
584 Discussions

dpct not converting thrust::host_vector to std::vector at some places

Shukla__Gagandeep
1,074 Views

Hi,

I am converting libSGM repo using dpct and while converting some test files, I noticed that dpct is not converting thrust::host_vector to std::vector consistently.

For example for test/integrated.cu it successfully converted thrust::host_vector to std::vector but for test/census_transform_test.cu it left const thrust::host_vector<T>& src as is and also for test/winner_takes_all_test.cu, it left const thrust::host_vector<sgm::cost_type>& src as is at two places (parameter of function winner_takes_all_leftwinner_takes_all_right) .

cuda files and converted files are attached for reference.

Regards,
Gagan

 

0 Kudos
1 Reply
RahulV_intel
Moderator
1,058 Views

Hi Gagan,


The migration of thrurst library variables is a bit inconsistent like you said. Issue is reproducible at my end too.


I have escalated this issue to the concerned team.


Thanks for reporting this issue.


--Rahul


0 Kudos
Reply