@Namespace(value="at") @Properties(inherit=torch.class) public class HIPHooksInterface extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
HIPHooksInterface()
Default native constructor.
|
HIPHooksInterface(long size)
Native array allocator.
|
HIPHooksInterface(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
current_device() |
int |
getNumGPUs() |
Allocator |
getPinnedMemoryAllocator() |
HIPHooksInterface |
getPointer(long i) |
boolean |
hasHIP() |
void |
initHIP() |
GeneratorImpl |
initHIPGenerator(Context arg0) |
HIPHooksInterface |
position(long position) |
void |
registerHIPTypes(Context arg0) |
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 HIPHooksInterface()
public HIPHooksInterface(long size)
Pointer.position(long)
.public HIPHooksInterface(Pointer p)
Pointer(Pointer)
.public HIPHooksInterface position(long position)
public HIPHooksInterface getPointer(long i)
getPointer
in class Pointer
public void initHIP()
@UniquePtr public GeneratorImpl initHIPGenerator(Context arg0)
public Allocator getPinnedMemoryAllocator()
public void registerHIPTypes(Context arg0)
public int getNumGPUs()
Copyright © 2024. All rights reserved.