@Namespace(value="at") @Properties(inherit=torch.class) public class MPSHooksInterface extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
MPSHooksInterface()
Default native constructor.
|
MPSHooksInterface(long size)
Native array allocator.
|
MPSHooksInterface(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
acquireEvent(boolean enable_timing) |
void |
commitStream() |
void |
deviceSynchronize() |
double |
elapsedTimeOfEvents(int start_event_id,
int end_event_id) |
void |
emptyCache() |
Pointer |
getCommandBuffer() |
long |
getCurrentAllocatedMemory() |
Generator |
getDefaultMPSGenerator() |
Pointer |
getDispatchQueue() |
long |
getDriverAllocatedMemory() |
Allocator |
getMPSDeviceAllocator() |
MPSHooksInterface |
getPointer(long i) |
boolean |
hasMPS() |
void |
initMPS() |
boolean |
isOnMacOS13orNewer() |
boolean |
isOnMacOS13orNewer(int minor) |
MPSHooksInterface |
position(long position) |
void |
profilerStartTrace(BytePointer mode,
boolean waitUntilCompleted) |
void |
profilerStartTrace(String mode,
boolean waitUntilCompleted) |
void |
profilerStopTrace() |
boolean |
queryEvent(int event_id) |
void |
recordEvent(int event_id) |
void |
releaseEvent(int event_id) |
void |
setMemoryFraction(double arg0) |
void |
synchronizeEvent(int event_id) |
void |
waitForEvent(int event_id) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public MPSHooksInterface()
public MPSHooksInterface(long size)
Pointer.position(long)
.public MPSHooksInterface(Pointer p)
Pointer(Pointer)
.public MPSHooksInterface position(long position)
public MPSHooksInterface getPointer(long i)
getPointer
in class Pointer
public void initMPS()
@Cast(value="bool") public boolean isOnMacOS13orNewer(@Cast(value="unsigned") int minor)
public Allocator getMPSDeviceAllocator()
public void deviceSynchronize()
public void commitStream()
public Pointer getCommandBuffer()
public Pointer getDispatchQueue()
public void emptyCache()
public void setMemoryFraction(double arg0)
public void profilerStartTrace(@StdString BytePointer mode, @Cast(value="bool") boolean waitUntilCompleted)
public void profilerStartTrace(@StdString String mode, @Cast(value="bool") boolean waitUntilCompleted)
public void profilerStopTrace()
@Cast(value="uint32_t") public int acquireEvent(@Cast(value="bool") boolean enable_timing)
Copyright © 2024. All rights reserved.