Vector arrays
#1328
Replies: 1 comment
-
@yslan Yes, you should be able to have both. There may be cases where how they are presented implies differences in copies needed to present the data internally to VTK-m, but both should be supported. The second case not working on the GPU is a bug. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I wonder what's the proper way to pass a vector field to Ascent.
3 scalars
I know we can break it into scalars like this.
And, we can composite back to vector in
ascent_actions.yaml
This approach is robust and well-tested in my code.
vector
I've also managed to send the vector like this (Is this the correct way?).
Then, from vector, it can extract components in
ascent_actions.yaml
Can we have both?
The question occurs when I have both vector and 3-scalars implementation with the same pointer.
The idea is to keep "vector of arrays" structure, but also make sure both vector and scalar components are visible in ascent_actions.yaml, which saves a lots of conversion.
This works when I run it on CPU backend but it gets SEGV when running with GPU. Both CPU and GPU are tested on Polaris.
I appreciate any suggestions.
Thanks,
Yu-Hsiang
Beta Was this translation helpful? Give feedback.
All reactions