I'm new to MIC programming, so this is probably a silly question, but I've searched and could not find a solution.
I have a struct with a pointer in it and I want to offload that pointer (the array) to MIC. AFAIK, I can't offload the whole struct, because it's not bitwise copyable. But I was hoping I could offload just the pointer, as a normal array. Below is a minimal example, which segfaults. What am I doing wrong?
As a side question, what are my options if I need to copy the whole struct?