@Properties(inherit=cudart.class) public class cudaPointerAttributes extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| 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) |
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) |
int |
isManaged()
Indicates if this pointer points to managed memory
|
cudaPointerAttributes |
isManaged(int setter) |
int |
memoryType()
The physical location of the memory, ::cudaMemoryTypeHost or
::cudaMemoryTypeDevice.
|
cudaPointerAttributes |
memoryType(int setter) |
cudaPointerAttributes |
position(long position) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic cudaPointerAttributes()
public cudaPointerAttributes(long size)
Pointer.position(long).public cudaPointerAttributes(Pointer p)
Pointer.Pointer(Pointer).public cudaPointerAttributes position(long position)
@Cast(value="cudaMemoryType") public int memoryType()
public cudaPointerAttributes memoryType(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)
public int isManaged()
public cudaPointerAttributes isManaged(int setter)
Copyright © 2019. All rights reserved.