List type on GPU?

Can anyone let me know if List type can be used inside a GPU function?

Hi @notooth, thanks for sharing this question!
I checked with the team, and the answer is mostly no – heap allocations must be explicitly enabled on GPUs, and they aren’t available cross-platform because most GPUs don’t support them. However, you can allocate on the host side and pass a span over.
Hope that helps clarify. Let me know if you have any follow-up questions!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.