Library/ManagedCuda/CudaContext.cs
/// <summary>
/// Initialize the profiling.<para/>
/// Using this API user can initialize the CUDA profiler by specifying
/// the configuration file, output file and output file format. This
/// API is generally used to profile different set of counters by
/// looping the kernel launch. The <c>configFile</c> parameter can be used
/// to select profiling options including profiler counters. Refer to
/// the "Compute Command Line Profiler User Guide" for supported
/// profiler options and counters.<para/>
/// Limitation: The CUDA profiler cannot be initialized with this API
/// if another profiling tool is already active, as indicated by the
/// exception <see cref="CUResult.ErrorProfilerDisabled"/>.
/// </summary>
/// <param name="configFile">Name of the config file that lists the counters/options for profiling.</param>
/// <param name="outputFile">Name of the outputFile where the profiling results will be stored.</param>
/// <param name="outputMode">outputMode</param>
Initialize the profiling.
Using this API user can initialize the CUDA profiler by specifying
the configuration file, output file and output file format. This
API is generally used to profile different set of counters by
looping the kernel launch. The configFile
Limitation: The CUDA profiler cannot be initialized with this API
if another profiling tool is already active, as indicated by the
exception .
Initialize the profiling . Using this API user can initialize the CUDA profiler by specifying the configuration file output file and output file format . This API is generally used to profile different set of counters by looping the kernel launch . The configFile Limitation : The CUDA profiler cannot be initialized with this API if another profiling tool is already active as indicated by the exception .
public static void ProfilerInitialize(string configFile, string outputFile, CUoutputMode outputMode)
		{
			CUResult res;
			res = DriverAPINativeMethods.Profiling.cuProfilerInitialize(configFile, outputFile, outputMode);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cuProfilerInitialize", res));
			if (res != CUResult.Success)
				throw new CudaException(res);
		}
public static void ProfilerInitialize ( string configFile , string outputFile , CUoutputMode outputMode ) { CUResult res ; res = DriverAPINativeMethods . Profiling . cuProfilerInitialize ( configFile , outputFile , outputMode ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != CUResult . Success ) throw new CudaException ( res ) ; }
Initialize the profiling.
Initialize the profiling .
configFile
string
Name of the config file that lists the counters/options for profiling.
Name of the config file that lists the counters / options for profiling .
outputFile
string
Name of the outputFile where the profiling results will be stored.
Name of the outputFile where the profiling results will be stored .
outputMode
CUoutputMode
None