Package | Description |
---|---|
org.bytedeco.cuda.cudart | |
org.bytedeco.cuda.global |
Modifier and Type | Method and Description |
---|---|
CUDA_ARRAY_DESCRIPTOR_v2 |
CUDA_ARRAY_DESCRIPTOR_v2.Format(int setter) |
CUDA_ARRAY_DESCRIPTOR_v2 |
CUDA_ARRAY_DESCRIPTOR_v2.getPointer(long i) |
CUDA_ARRAY_DESCRIPTOR_v2 |
CUDA_ARRAY_DESCRIPTOR_v2.Height(long setter) |
CUDA_ARRAY_DESCRIPTOR_v2 |
CUDA_ARRAY_DESCRIPTOR_v2.NumChannels(int setter) |
CUDA_ARRAY_DESCRIPTOR_v2 |
CUDA_ARRAY_DESCRIPTOR_v2.position(long position) |
CUDA_ARRAY_DESCRIPTOR_v2 |
CUDA_ARRAY_DESCRIPTOR_v2.Width(long setter) |
Modifier and Type | Method and Description |
---|---|
static int |
cudart.cuArrayCreate(CUarray_st pHandle,
CUDA_ARRAY_DESCRIPTOR_v2 pAllocateArray)
\brief Creates a 1D or 2D CUDA array
Creates a CUDA array according to the ::CUDA_ARRAY_DESCRIPTOR structure
\p pAllocateArray and returns a handle to the new CUDA array in \p *pHandle.
|
static int |
cudart.cuArrayGetDescriptor(CUDA_ARRAY_DESCRIPTOR_v2 pArrayDescriptor,
CUarray_st hArray)
\brief Get a 1D or 2D CUDA array descriptor
Returns in \p *pArrayDescriptor a descriptor containing information on the
format and dimensions of the CUDA array \p hArray.
|
static int |
cudart.cuTexRefSetAddress2D(CUtexref_st hTexRef,
CUDA_ARRAY_DESCRIPTOR_v2 desc,
long dptr,
long Pitch)
Deprecated.
Binds a linear address range to the texture reference \p hTexRef. Any
previous address or CUDA array state associated with the texture reference
is superseded by this function. Any memory previously bound to \p hTexRef
is unbound.
Using a ::tex2D() function inside a kernel requires a call to either
::cuTexRefSetArray() to bind the corresponding texture reference to an
array, or ::cuTexRefSetAddress2D() to bind the texture reference to linear
memory.
Function calls to ::cuTexRefSetFormat() cannot follow calls to
::cuTexRefSetAddress2D() for the same texture reference.
It is required that \p dptr be aligned to the appropriate hardware-specific
texture alignment. You can query this value using the device attribute
::CU_DEVICE_ATTRIBUTE_TEXTURE_ALIGNMENT. If an unaligned \p dptr is
supplied, ::CUDA_ERROR_INVALID_VALUE is returned.
\p Pitch has to be aligned to the hardware-specific texture pitch alignment.
This value can be queried using the device attribute
::CU_DEVICE_ATTRIBUTE_TEXTURE_PITCH_ALIGNMENT. If an unaligned \p Pitch is
supplied, ::CUDA_ERROR_INVALID_VALUE is returned.
Width and Height, which are specified in elements (or texels), cannot exceed
::CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LINEAR_WIDTH and
::CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LINEAR_HEIGHT respectively.
\p Pitch, which is specified in bytes, cannot exceed
::CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LINEAR_PITCH.
|
Copyright © 2024. All rights reserved.