UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Explorer
Explorer
134 Views
Registered: ‎03-22-2017

SDS data copy|zero_copy and struct

The following struct

typedef struct {
  int a;
  int b;
  int c;
  int big_array[2000000];
} my_struct_t;

is a parameter of a function to be synthesized

void my_funct(my_struct_t * par1, ....);

Can I apply  #pragma SDS data zero_copy to the fields a, b, and c of the struct and #pragma SDS data copy to the big_array in the struct?

In other words, does #pragma SDS data copy|zero_copy have a finer granularity than the examples in:

https://www.xilinx.com/html_docs/xilinx2018_3/sdaccel_doc/sds-pragmas-nmc1504034362475.html#csh1504034362862

 

0 Kudos