Class cudaPointerAttributes

    • Constructor Detail

      • cudaPointerAttributes

        public cudaPointerAttributes()
        Default native constructor.
      • cudaPointerAttributes

        public cudaPointerAttributes​(long size)
        Native array allocator. Access with Pointer.position(long).
      • cudaPointerAttributes

        public cudaPointerAttributes​(Pointer p)
        Pointer cast constructor. Invokes Pointer(Pointer).
    • Method Detail

      • 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.
      • type

        @Cast("cudaMemoryType")
        public int type()
        The type of memory - ::cudaMemoryTypeUnregistered, ::cudaMemoryTypeHost, ::cudaMemoryTypeDevice or ::cudaMemoryTypeManaged.
      • 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).
      • 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.
      • 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.
      • isManaged

        @Deprecated
        public int isManaged()
        Deprecated.
        Indicates if this pointer points to managed memory