offset returns another pointer points to the address of current ptr + offset.
(offset int)
| 87 | |
| 88 | // offset returns another pointer points to the address of current ptr + offset. |
| 89 | func (p devicePointer) offset(offset int) devicePointer { |
| 90 | return devicePointer{ |
| 91 | device: p.device, |
| 92 | pointer: utils.MemAccess(p.getPointer(), offset), |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | // deviceAllocator is the interface to allocate and deallocate device memory for a specific device. |
| 97 | // Note this allocator only tracks memory usage as golang side. Any memory allocation/deallocation at |
no test coverage detected