@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) |
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()
Deprecated.
Indicates if this pointer points to managed memory
|
cudaPointerAttributes |
isManaged(int setter) |
int |
memoryType()
Deprecated.
The physical location of the memory, ::cudaMemoryTypeHost or
::cudaMemoryTypeDevice. Note that managed memory can return either
::cudaMemoryTypeDevice or ::cudaMemoryTypeHost regardless of it's
physical location.
|
cudaPointerAttributes |
memoryType(int 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, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, 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") @Deprecated public int memoryType()
public cudaPointerAttributes memoryType(int setter)
@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)
@Deprecated public int isManaged()
public cudaPointerAttributes isManaged(int setter)
Copyright © 2019. All rights reserved.