-
Hi all, I am working on a fluid–structure interaction case. I added a solid solver ( I need to copy the positions and velocities of these boundary points into AMReX particles. The relevant code looks like this:
This works fine without CUDA, but when I enable CUDA I get a segfault at this line: My question:What is the recommended way to copy external data (from a solid solver) into AMReX particles when using GPU? Or is there a better AMReX-native approach? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I would try adding the particles to a temporary ParticleTile that lives in host memory:
Then, after adding the particles to the host_tile, you can copy them to the permanent one.
|
Beta Was this translation helpful? Give feedback.
I would try adding the particles to a temporary ParticleTile that lives in host memory:
Then, after adding the particles to the host_tile, you can copy them to the permanent one.