SoCudaApiSetSharedMemorySize Method |
This function sets the size of the shared memory allocated for each thread block when the kernel is launched.
Namespace: OIV.Inventor.CudaAssembly: OIV.Inventor.Cuda (in OIV.Inventor.Cuda.dll) Version: 9.9.36.0 (9.9.36.0)
Syntaxpublic static SoCudaSoCudaErrors SetSharedMemorySize(
SoCudaHandle handle,
int size
)
Public Shared Function SetSharedMemorySize (
handle As SoCudaHandle,
size As Integer
) As SoCudaSoCudaErrors
public:
static SoCudaSoCudaErrors SetSharedMemorySize(
SoCudaHandle^ handle,
int size
)
static member SetSharedMemorySize :
handle : SoCudaHandle *
size : int -> SoCudaSoCudaErrors
Parameters
- handle
- Type: OIV.Inventor.CudaSoCudaHandle
The Cuda handle of the function for which we setup the block size.
- size
- Type: SystemInt32
The size in bytes.
Return Value
Type:
SoCudaSoCudaErrorsOperation result error code.
RemarksSee SoCudaDevice to know the max size for a specific device.
See Also