How to copy a tetrahedron tree structure to CUDA device memory?

前端 未结 1 1067
不知归路
不知归路 2021-01-16 19:31

If I want to move the below structure TetrahedronStruct to CUDA device memory, how should I proceed?

struct TetrahedronStruct {
  int index;
  i         


        
相关标签:
1条回答
  • 2021-01-16 19:42

    It will be easier to linearize the structures and then copy them to device.

    In the new CUDA 6 deep copies will be much easier as long as your compute capability is 3.x or higher with the Unified Memory.

    0 讨论(0)
提交回复
热议问题