diff options
Diffstat (limited to 'preemption_logger.cu')
| -rw-r--r-- | preemption_logger.cu | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/preemption_logger.cu b/preemption_logger.cu index 667c459..d93600e 100644 --- a/preemption_logger.cu +++ b/preemption_logger.cu | |||
| @@ -27,7 +27,7 @@ struct interval { | |||
| 27 | }; | 27 | }; |
| 28 | 28 | ||
| 29 | // Minimum time discontinuity which indicates a gap between intervals | 29 | // Minimum time discontinuity which indicates a gap between intervals |
| 30 | // One clock tick is about 1ns | 30 | // Clock resolution is about 1ns, but it only ticks every 1us pre-H100 |
| 31 | #define MIN_PREEMPT_TICKS 2*1000 // ~2us | 31 | #define MIN_PREEMPT_TICKS 2*1000 // ~2us |
| 32 | 32 | ||
| 33 | // Watch for discontinuities in the GPU clock, indicating intervals during | 33 | // Watch for discontinuities in the GPU clock, indicating intervals during |
| @@ -67,7 +67,6 @@ Spin on the GPU, logging intervals to stdout during which we are scheduled.\n\ | |||
| 67 | -r, --raw Print raw logged GPU times (skip conversion to CPU time).\n"; | 67 | -r, --raw Print raw logged GPU times (skip conversion to CPU time).\n"; |
| 68 | 68 | ||
| 69 | int main(int argc, char **argv) { | 69 | int main(int argc, char **argv) { |
| 70 | cudaError_t err; // Needed for the SAFE() macro | ||
| 71 | struct interval *ivls_gpu, *ivls; | 70 | struct interval *ivls_gpu, *ivls; |
| 72 | struct timespec start, end, end_ivls_only; | 71 | struct timespec start, end, end_ivls_only; |
| 73 | int num_ivls, skip_conversion; | 72 | int num_ivls, skip_conversion; |
