Click or drag to resize
SoCudaApiSetSharedMemorySize Method

This function sets the size of the shared memory allocated for each thread block when the kernel is launched.

Namespace: OIV.Inventor.Cuda
Assembly: OIV.Inventor.Cuda (in OIV.Inventor.Cuda.dll) Version: 9.9.36.0 (9.9.36.0)
Syntax
public static SoCudaSoCudaErrors SetSharedMemorySize(
	SoCudaHandle handle,
	int size
)

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: SoCudaSoCudaErrors

Operation result error code.

Remarks

See SoCudaDevice to know the max size for a specific device.

See Also