-
|
See this code, After #3333 , I do not know how to use |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
|
The compile error you are receiving is correct.
Luckily for you you can just use |
Beta Was this translation helpful? Give feedback.
-
|
Oh now I see the issue in the code. Previously we would use However, that design is broken because any user calling "unqualified" swap, aka For example |
Beta Was this translation helpful? Give feedback.
-
|
I think you were unfortunate to run into a problem due to our improvement. As @miscco said, the previous design, where we just called |
Beta Was this translation helpful? Give feedback.
The compile error you are receiving is correct.
std::arrayis a host only type and all accessor methods are host only. Consequently,thrust::device_vector<::std::array<...>>is an invalid type.Luckily for you you can just use
cuda::std::arrayfrom#include <cuda/std/array>as a drop in replacement.