lion03 / thrust

Automatically exported from code.google.com/p/thrust
Apache License 2.0
0 stars 0 forks source link

How to export C++ STL containers to CUDA containers? #320

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I am working on HPC software and I am trying to parallelize some C++ STL lines 
to be computed on Tesla C2070.

The main issue is that originally I have several C++ containers based on STL 
libraries and I am not able to use this containers on CUDA code (.cu) to be 
computed on a kernel. It seems that nvcc can not compile STL containers.

I have been reading a lot about Thrust work, but as far as I know, I have to 
make new Thrust containers as similar as possible, and  then copy each element, 
one by one, from original container to Thurst containers.

Is this the solution? C++ compiler is going to work with Thrust .cpp archive?

Do you know any solution to work with STL containers under .cu archive to be 
compiled with nvcc?

Thanks.

Original issue reported on code.google.com by mamayab@gmail.com on 5 Mar 2011 at 7:27

GoogleCodeExporter commented 8 years ago
Please direct questions to the thrust-users mailing list [1].  The issue 
tracker is only for bugs and feature requests.

[1] http://groups.google.com/group/thrust-users

Original comment by wnbell on 5 Mar 2011 at 11:54