- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi:
I want to transfer some structs to MIC, but it seems the structs cannot contain any pointer. Is there any infrastructure I can use to handle except manually extracting those pointers and transferring them alone?
Thanks
Guo
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Assume the pointer is a pointer to an array of double's. How is the compiler or runtime system to know the size of the array of doubles?
Note, if the pointer is to be a pointer to an array held locally within the MIC, then on first offload you can pass in a NULL pointer to the MIC, it can allocate in the MIC, then pass back the pointer to the Host at completion of (first) offload. The host could not directly use the pointer, other than passing the pointer back into the MIC (as-is) on a future offload. The pointer could also be used on a getter/putter offload.
Jim Dempsey

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page