summaryrefslogtreecommitdiffstats
path: root/copy_experiments/mon_cross_ctx_copies.cu
diff options
context:
space:
mode:
authorJoshua Bakita <bakitajoshua@gmail.com>2024-02-19 20:53:09 -0500
committerJoshua Bakita <bakitajoshua@gmail.com>2024-02-19 20:53:09 -0500
commitd90826c1cc5f03fdc0aaef5bf20c57aec6556940 (patch)
tree899e2430771ae05efd9d1881c6d650f90521df38 /copy_experiments/mon_cross_ctx_copies.cu
parentb158c5f30c25d1f6b0d5cc8f989eb6b6211a5360 (diff)
Always synchronize GPU and CPU time in the current process
Performing the synchronization in a child process was fragile, high-overhead, and unnecessary for our use cases.
Diffstat (limited to 'copy_experiments/mon_cross_ctx_copies.cu')
-rw-r--r--copy_experiments/mon_cross_ctx_copies.cu4
1 files changed, 2 insertions, 2 deletions
diff --git a/copy_experiments/mon_cross_ctx_copies.cu b/copy_experiments/mon_cross_ctx_copies.cu
index 2912aec..e836179 100644
--- a/copy_experiments/mon_cross_ctx_copies.cu
+++ b/copy_experiments/mon_cross_ctx_copies.cu
@@ -1,4 +1,4 @@
1/* Copyright 2022 Joshua Bakita 1/* Copyright 2024 Joshua Bakita
2 * Starts two copies of configurable size in seperate contexts at the same time 2 * Starts two copies of configurable size in seperate contexts at the same time
3 * (by default) and logs the times that pages are copied to the GPU. Supports 3 * (by default) and logs the times that pages are copied to the GPU. Supports
4 * monitoring copy progress from either the GPU or the CPU. All output times are 4 * monitoring copy progress from either the GPU or the CPU. All output times are
@@ -12,7 +12,7 @@ WARNING: By default, assumes that GPU and CPU clocks tick at the same rate.
12 * 12 *
13 */ 13 */
14#include "copy_testbench.h" 14#include "copy_testbench.h"
15#include "../task_host_utilities.cu" // Just for GetHostDeviceTimeOffset() 15#include "../task_host_utilities.cu"
16#include <stdio.h> 16#include <stdio.h>
17#include <stdlib.h> 17#include <stdlib.h>
18#include <stdint.h> 18#include <stdint.h>