@Properties(inherit=cudart.class) public class cudaPointerAttributes extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
cudaPointerAttributes()
Default native constructor.
|
cudaPointerAttributes(long size)
Native array allocator.
|
cudaPointerAttributes(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
device()
The device against which the memory was allocated or registered.
|
cudaPointerAttributes |
device(int setter) |
Pointer |
devicePointer()
The address which may be dereferenced on the current device to access
the memory or NULL if no such address exists.
|
cudaPointerAttributes |
devicePointer(Pointer setter) |
cudaPointerAttributes |
getPointer(long i) |
Pointer |
hostPointer()
The address which may be dereferenced on the host to access the
memory or NULL if no such address exists.
|
cudaPointerAttributes |
hostPointer(Pointer setter) |
cudaPointerAttributes |
position(long position) |
int |
type()
The type of memory - ::cudaMemoryTypeUnregistered, ::cudaMemoryTypeHost,
::cudaMemoryTypeDevice or ::cudaMemoryTypeManaged.
|
cudaPointerAttributes |
type(int setter) |
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 cudaPointerAttributes()
public cudaPointerAttributes(long size)
Pointer.position(long)
.public cudaPointerAttributes(Pointer p)
Pointer(Pointer)
.public cudaPointerAttributes position(long position)
public cudaPointerAttributes getPointer(long i)
getPointer
in class Pointer
@Cast(value="cudaMemoryType") public int type()
public cudaPointerAttributes type(int setter)
public int device()
public cudaPointerAttributes device(int setter)
public Pointer devicePointer()
public cudaPointerAttributes devicePointer(Pointer setter)
public Pointer hostPointer()
public cudaPointerAttributes hostPointer(Pointer setter)
Copyright © 2024. All rights reserved.