Software Archive
Read-only legacy content
17060 Discussions

Cast a void* to COIBUFFER

Khaled_H_1
Beginner
359 Views

Hi,

I have a memory allocated on the host (void* A) and this memory is copyed in using the offload pragma (#pragma offload in (A)). and I want to have the coresponding adresse on the MIC. is there a way to have this adresse ?. Also I tired to use the  COIBufferGetSinkAddress (COIBUFFER in_Buffer, uint64_t ∗out_pAddress) how aver this function requires a COIBUFFER and not a void*. So if you think this can work, how can I casttype a void* to a COIBUFFER ?

Thanks

0 Kudos
3 Replies
Ravi_N_Intel
Employee
359 Views

The corresponding address on MIC is "A"

0 Kudos
Khaled_H_1
Beginner
359 Views

Thanks for your response.

But I want to have the coressponding adresse on the MIC  on the host process. I mean I want to have the MIC- adress of A on the Host process? (Sorry for the confusion).

Thanks.

0 Kudos
Ravi_N_Intel
Employee
359 Views

We currently don't expose the MIC address on host since the compiler and runtime does all the book keeping of the address when a buffer is on MIC is created in one offload and used later in a different offload.

0 Kudos
Reply