@@ -51,14 +51,14 @@ fn main() -> Result<(), cust::error::CudaError> {
5151 let stop_event = Event :: new ( EventFlags :: DEFAULT ) ?;
5252
5353 // Create buffers for data on host-side
54- // Ideally must be page-locked for efficiency
54+ // Ideally should be page-locked for efficiency
5555 let mut host_a = LockedBuffer :: new ( & 0u32 , N ) . expect ( "host array couldn't be initialized!" ) ;
5656 let mut device_a = DeviceBuffer :: from_slice ( & [ u32:: MAX ; N ] ) . expect ( "device array couldn't be initialized!" ) ;
5757
5858 start_event. record ( & stream) . expect ( "Failed to record start_event in the CUDA stream!" ) ;
5959 let start = Instant :: now ( ) ;
6060
61- // SAFETY: until the stop_event being triggered:
61+ // SAFETY: until the stop_event is triggered:
6262 // 1. `host_a` is not being modified
6363 // 2. Both `device_a` and `host_a` are not deallocated
6464 // 3. Until `stop_query` yields `EventStatus::Ready`, `device_a` is not involved in any other operation
@@ -77,7 +77,7 @@ fn main() -> Result<(), cust::error::CudaError> {
7777 result. expect ( "Result of `increment` kernel did not process!" ) ;
7878 }
7979
80- // SAFETY: until the stop_event being triggered:
80+ // SAFETY: until the stop_event is triggered:
8181 // 1. `device_a` is not being modified
8282 // 2. Both `device_a` and `host_a` are not deallocated
8383 // 3. At this point, until `stop_query` yields `EventStatus::Ready`,
0 commit comments