How to copy into scratch #506
-
What is the correct syntax to copy data of length N starting from position M in a host-side array, into position M in
but I get a compile error:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 13 replies
-
This is OCCA function btw. There are many different function interface for copyFrom.
Here is another example from (navierStokes/constantFlowRate.cpp) that we copies o_LMM into three components of the o_BF
If we write it into loops, it will be
|
Beta Was this translation helpful? Give feedback.
-
Thanks April for initiating the discussion here. Is there any smart way we can shift the velocity component location in nrs->o_usrwrk |
Beta Was this translation helpful? Give feedback.
You want to use