Example #1
0
 /// <summary>
 /// Specifies whether to enable caching explicitly (-dlcm)<para/>
 /// Choice is based on supplied <see cref="CUJITCacheMode"/>.
 /// <para>Option type: unsigned int for enumerated type <see cref="CUJITCacheMode"/></para>
 /// <para>Applies to: compiler only</para>
 /// </summary>
 /// <param name="value"></param>
 public CudaJOJITCacheMode(CUJITCacheMode value)
 {
     _option   = CUJITOption.GenerateLineInfo;
     _ptrValue = (IntPtr)(Convert.ToUInt32(value, System.Globalization.CultureInfo.InvariantCulture));
 }
Example #2
0
		/// <summary>
		/// Specifies whether to enable caching explicitly (-dlcm)<para/>
		/// Choice is based on supplied <see cref="CUJITCacheMode"/>.
		/// <para>Option type: unsigned int for enumerated type <see cref="CUJITCacheMode"/></para>
		/// <para>Applies to: compiler only</para>
		/// </summary>
		/// <param name="value"></param>
		public CudaJOJITCacheMode(CUJITCacheMode value)
		{
			_option = CUJITOption.GenerateLineInfo;
			_ptrValue = (IntPtr)(Convert.ToUInt32(value, System.Globalization.CultureInfo.InvariantCulture));
		}