Library/ManagedCuda/CudaContext.cs
/// <summary>
/// Sets the shared memory configuration for the current context.<para/>
/// On devices with configurable shared memory banks, this function will set
/// the context's shared memory bank size which is used for subsequent kernel 
/// launches. <para/> 
/// Changed the shared memory configuration between launches may insert a device
/// side synchronization point between those launches.<para/>
/// Changing the shared memory bank size will not increase shared memory usage
/// or affect occupancy of kernels, but may have major effects on performance. 
/// Larger bank sizes will allow for greater potential bandwidth to shared memory,
/// but will change what kinds of accesses to shared memory will result in bank 
/// conflicts.<para/>
/// This function will do nothing on devices with fixed shared memory bank size.
/// <para/>
/// The supported bank configurations are:
/// - <see cref="CUsharedconfig.DefaultBankSize"/>: set bank width to the default initial
///   setting (currently, four bytes).
/// - <see cref="CUsharedconfig.FourByteBankSize"/>: set shared memory bank width to
///   be natively four bytes.
/// - <see cref="CUsharedconfig.EightByteBankSize"/>: set shared memory bank width to
///   be natively eight bytes.
/// </summary>
Sets the shared memory configuration for the current context.
On devices with configurable shared memory banks, this function will set
the context's shared memory bank size which is used for subsequent kernel
launches.
Changed the shared memory configuration between launches may insert a device
side synchronization point between those launches.
Changing the shared memory bank size will not increase shared memory usage
or affect occupancy of kernels, but may have major effects on performance.
Larger bank sizes will allow for greater potential bandwidth to shared memory,
but will change what kinds of accesses to shared memory will result in bank
conflicts.
This function will do nothing on devices with fixed shared memory bank size.

The supported bank configurations are:
: set bank width to the default initial
setting (currently, four bytes).
: set shared memory bank width to
be natively four bytes.
: set shared memory bank width to
be natively eight bytes.
Sets the shared memory configuration for the current context . On devices with configurable shared memory banks this function will set the context ' s shared memory bank size which is used for subsequent kernel launches . Changed the shared memory configuration between launches may insert a device side synchronization point between those launches . Changing the shared memory bank size will not increase shared memory usage or affect occupancy of kernels but may have major effects on performance . Larger bank sizes will allow for greater potential bandwidth to shared memory but will change what kinds of accesses to shared memory will result in bank conflicts . This function will do nothing on devices with fixed shared memory bank size . The supported bank configurations are : : set bank width to the default initial setting ( currently four bytes ) . : set shared memory bank width to be natively four bytes . : set shared memory bank width to be natively eight bytes .
public void SetSharedMemConfig(CUsharedconfig config)
		{
			if (disposed) throw new ObjectDisposedException(this.ToString());
			CUResult res;
			res = DriverAPINativeMethods.ContextManagement.cuCtxSetSharedMemConfig(config);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cuCtxSetSharedMemConfig", res));
			if (res != CUResult.Success)
				throw new CudaException(res);
		}
public void SetSharedMemConfig ( CUsharedconfig config ) { if ( disposed ) throw new ObjectDisposedException ( this . ToString ( ) ) ; CUResult res ; res = DriverAPINativeMethods . ContextManagement . cuCtxSetSharedMemConfig ( config ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != CUResult . Success ) throw new CudaException ( res ) ; }
Sets the shared memory configuration for the current context.
Sets the shared memory configuration for the current context .
config
CUsharedconfig