@Properties(inherit=cudart.class) public class CUdevResource_st extends Pointer
struct {
CUdevResourceType type;
union {
CUdevSmResource sm;
};
};
- If \p type is \p CU_DEV_RESOURCE_TYPE_INVALID, this resoure is not valid and cannot be further accessed.
- If \p type is \p CU_DEV_RESOURCE_TYPE_SM, the ::CUdevSmResource structure \p sm is filled in. For example,
\p sm.smCount will reflect the amount of streaming multiprocessors available in this resource.Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
CUdevResource_st()
Default native constructor.
|
CUdevResource_st(long size)
Native array allocator.
|
CUdevResource_st(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
BytePointer |
_internal_padding() |
byte |
_internal_padding(int i) |
CUdevResource_st |
_internal_padding(int i,
byte setter) |
BytePointer |
_oversize() |
byte |
_oversize(int i) |
CUdevResource_st |
_oversize(int i,
byte setter) |
CUdevResource_st |
getPointer(long i) |
CUdevResource_st |
position(long position) |
CUdevSmResource_st |
sm()
Resource corresponding to CU_DEV_RESOURCE_TYPE_SM \p type.
|
CUdevResource_st |
sm(CUdevSmResource_st setter) |
int |
type()
Type of resource, dictates which union field was last set
|
CUdevResource_st |
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, zeropublic CUdevResource_st()
public CUdevResource_st(long size)
Pointer.position(long).public CUdevResource_st(Pointer p)
Pointer(Pointer).public CUdevResource_st position(long position)
public CUdevResource_st getPointer(long i)
getPointer in class Pointer@Cast(value="CUdevResourceType") public int type()
public CUdevResource_st type(int setter)
public CUdevResource_st _internal_padding(int i, byte setter)
@MemberGetter @Cast(value="unsigned char*") public BytePointer _internal_padding()
@ByRef public CUdevSmResource_st sm()
public CUdevResource_st sm(CUdevSmResource_st setter)
public CUdevResource_st _oversize(int i, byte setter)
@MemberGetter @Cast(value="unsigned char*") public BytePointer _oversize()
Copyright © 2025. All rights reserved.