@@ -26,7 +26,9 @@ public class AcceleratorExample : IDisposable
2626 /// disposed.</remarks>
2727 public AcceleratorExample ( )
2828 {
29- Console . Clear ( ) ;
29+ Console . WriteLine ( "*******************" ) ;
30+ Console . WriteLine ( "* Example started *" ) ;
31+ Console . WriteLine ( "*******************" ) ;
3032 Console . WriteLine ( "Initializing ILGPU context..." ) ;
3133 _context = Context . CreateDefault ( ) ;
3234 Console . WriteLine ( "Context object obtained" ) ;
@@ -38,7 +40,7 @@ public AcceleratorExample()
3840 }
3941
4042 /// <summary>
41- /// Nothing special. Performs a grid-stride loop operation on a 2D source array, applying a neighborhood-based computation and
43+ /// Does nothing special. Performs a grid-stride loop operation on a 2D source array, applying a neighborhood-based computation and
4244 /// storing the results in a 2D destination array.
4345 /// </summary>
4446 /// <param name="srcArray">The 2D source array of bytes. Each element represents the input data for the computation.</param>
@@ -185,11 +187,11 @@ long PerformGPUWrappedAcceleratorPatternTest()
185187
186188 Console . WriteLine ( "GPUWrappedAccelerator pattern test started..." ) ;
187189 long gpuWrappedAcceleratorPatternTime = PerformGPUWrappedAcceleratorPatternTest ( ) ;
188- Console . WriteLine ( $ " Execution took { gpuWrappedAcceleratorPatternTime } ms.") ;
190+ Console . WriteLine ( $ " Load kernel calls took { gpuWrappedAcceleratorPatternTime } ms.") ;
189191
190192 Console . WriteLine ( "Classical pattern test started..." ) ;
191193 long classicalPatternTime = PerformClassicalPatternTest ( ) ;
192- Console . WriteLine ( $ " Execution took { classicalPatternTime } ms.") ;
194+ Console . WriteLine ( $ " Load kernel calls took { classicalPatternTime } ms.") ;
193195
194196 double ratio = Math . Round ( classicalPatternTime >= gpuWrappedAcceleratorPatternTime ?
195197 ( double ) classicalPatternTime / ( double ) gpuWrappedAcceleratorPatternTime
@@ -200,10 +202,6 @@ long PerformGPUWrappedAcceleratorPatternTest()
200202 string result = classicalPatternTime >= gpuWrappedAcceleratorPatternTime ? "faster" : "slower" ;
201203 Console . WriteLine ( $ "Using the GPUWrappedAccelerator pattern to load kernel is about { ratio } times { result } than when using Classical pattern.") ;
202204
203- Console . WriteLine ( ) ;
204- Console . WriteLine ( ) ;
205- Console . WriteLine ( "Press any key to exit..." ) ;
206- Console . ReadKey ( ) ;
207205 return ;
208206 }
209207
@@ -222,7 +220,6 @@ private void Dispose(bool disposing)
222220 _isDisposed = true ;
223221 if ( disposing )
224222 {
225- Console . WriteLine ( "Disposing ILGPU context..." ) ;
226223 _context . Dispose ( ) ;
227224 }
228225 }
0 commit comments