gdrcopy icon indicating copy to clipboard operation
gdrcopy copied to clipboard

Manipulate Content with GDRCopy

Open aaltenbernd opened this issue 9 months ago • 1 comments

Hello,

I'm very new to this field. I would like know if it is possible to use GDRCopy to override content for a specific pointer. Is that possible? gdr_pin_buffer only works with cuMemAlloc and that gives me a new address.

Thank you!

aaltenbernd avatar Mar 28 '25 18:03 aaltenbernd

@aaltenbernd Not sure I understand your question. GDRCopy is used to create CPU mappings of cudaMalloc (and its family) buffers. The physical location is GPU memory. You can use the CPU mappings (the virtual addresses returned by GDRCopy) with the GDRCopy API to read/write the content of those buffers from CPU.

pakmarkthub avatar May 30 '25 20:05 pakmarkthub