I’m trying to implement vector code from C to cuda and using thrust instead of vectors. I’ve tried to make raw pointer and use thrust inside kernel but I’m stuck with vector push back function. How can I use vector push back like function using thrust? Thankyou.
This question/answer may be of interest:
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Passing my CPP vector of struct to thrust vector | 3 | 1234 | September 2, 2014 | |
Using thrust to handle vectors in Cuda classes | 0 | 1799 | April 13, 2011 | |
Vector Of Vecotrs Using Thrust | 3 | 2144 | February 27, 2023 | |
thrust performance? | 9 | 6536 | March 1, 2017 | |
Thrust multidimensional vectors passing vector of vectors to a cuda kernel | 1 | 2287 | June 14, 2011 | |
Question about Thrust Library with Kernel | 2 | 1002 | March 19, 2019 | |
CUDA with C++ | 5 | 3596 | May 28, 2009 | |
Vector Of Vecotrs | 2 | 2948 | March 6, 2017 | |
How to use strings in kernel functions or device functions | 2 | 8371 | July 6, 2019 | |
Passing thurst vector into kernel and pushing data into vector | 8 | 7938 | January 2, 2018 |