Package org.bytedeco.cuda.cudart
Class cudaPointerAttributes
- java.lang.Object
-
- org.bytedeco.javacpp.Pointer
-
- org.bytedeco.cuda.cudart.cudaPointerAttributes
-
- All Implemented Interfaces:
AutoCloseable
@Properties(inherit=cudart.class) public class cudaPointerAttributes extends Pointer
CUDA pointer attributes
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.bytedeco.javacpp.Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
-
-
Constructor Summary
Constructors Constructor Description cudaPointerAttributes()Default native constructor.cudaPointerAttributes(long size)Native array allocator.cudaPointerAttributes(Pointer p)Pointer cast constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intdevice()The device against which the memory was allocated or registered.cudaPointerAttributesdevice(int setter)PointerdevicePointer()The address which may be dereferenced on the current device to access the memory or NULL if no such address exists.cudaPointerAttributesdevicePointer(Pointer setter)cudaPointerAttributesgetPointer(long i)PointerhostPointer()The address which may be dereferenced on the host to access the memory or NULL if no such address exists.cudaPointerAttributeshostPointer(Pointer setter)intisManaged()Deprecated.Indicates if this pointer points to managed memorycudaPointerAttributesisManaged(int setter)intmemoryType()Deprecated.The physical location of the memory, ::cudaMemoryTypeHost or ::cudaMemoryTypeDevice.cudaPointerAttributesmemoryType(int setter)cudaPointerAttributesposition(long position)inttype()The type of memory - ::cudaMemoryTypeUnregistered, ::cudaMemoryTypeHost, ::cudaMemoryTypeDevice or ::cudaMemoryTypeManaged.cudaPointerAttributestype(int setter)-
Methods inherited from class org.bytedeco.javacpp.Pointer
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
-
-
-
-
Constructor Detail
-
cudaPointerAttributes
public cudaPointerAttributes()
Default native constructor.
-
cudaPointerAttributes
public cudaPointerAttributes(long size)
Native array allocator. Access withPointer.position(long).
-
cudaPointerAttributes
public cudaPointerAttributes(Pointer p)
Pointer cast constructor. InvokesPointer(Pointer).
-
-
Method Detail
-
position
public cudaPointerAttributes position(long position)
-
getPointer
public cudaPointerAttributes getPointer(long i)
- Overrides:
getPointerin classPointer
-
memoryType
@Cast("cudaMemoryType") @Deprecated public 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.
-
memoryType
public cudaPointerAttributes memoryType(int setter)
-
type
@Cast("cudaMemoryType") public int type()
The type of memory - ::cudaMemoryTypeUnregistered, ::cudaMemoryTypeHost, ::cudaMemoryTypeDevice or ::cudaMemoryTypeManaged.
-
type
public cudaPointerAttributes type(int setter)
-
device
public int device()
The device against which the memory was allocated or registered. If the memory type is ::cudaMemoryTypeDevice then this identifies the device on which the memory referred physically resides. If the memory type is ::cudaMemoryTypeHost or::cudaMemoryTypeManaged then this identifies the device which was current when the memory was allocated or registered (and if that device is deinitialized then this allocation will vanish with that device's state).
-
device
public cudaPointerAttributes device(int setter)
-
devicePointer
public Pointer devicePointer()
The address which may be dereferenced on the current device to access the memory or NULL if no such address exists.
-
devicePointer
public cudaPointerAttributes devicePointer(Pointer setter)
-
hostPointer
public Pointer hostPointer()
The address which may be dereferenced on the host to access the memory or NULL if no such address exists. \note CUDA doesn't check if unregistered memory is allocated so this field may contain invalid pointer if an invalid pointer has been passed to CUDA.
-
hostPointer
public cudaPointerAttributes hostPointer(Pointer setter)
-
isManaged
@Deprecated public int isManaged()
Deprecated.Indicates if this pointer points to managed memory
-
isManaged
public cudaPointerAttributes isManaged(int setter)
-
-