diff options
-rw-r--r-- | constant_cycles_kernel.cu | 2 | ||||
-rw-r--r-- | copy_experiments/copy_contender.cu | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/constant_cycles_kernel.cu b/constant_cycles_kernel.cu index db92b08..b45ae8c 100644 --- a/constant_cycles_kernel.cu +++ b/constant_cycles_kernel.cu | |||
@@ -16,7 +16,7 @@ int main(int argc, char **argv) { | |||
16 | int res, *__unused; | 16 | int res, *__unused; |
17 | struct timespec start, end; | 17 | struct timespec start, end; |
18 | 18 | ||
19 | if (argc != 2) { | 19 | if (argc != 2 || !strcmp(argv[1], "--help") || !strcmp(argv[1], "-h")) { |
20 | fprintf(stderr, "Usage: %s <# of millions of iterations, or -1 for infinite>\n", | 20 | fprintf(stderr, "Usage: %s <# of millions of iterations, or -1 for infinite>\n", |
21 | argv[0]); | 21 | argv[0]); |
22 | return 1; | 22 | return 1; |
diff --git a/copy_experiments/copy_contender.cu b/copy_experiments/copy_contender.cu index 5514552..7e04c22 100644 --- a/copy_experiments/copy_contender.cu +++ b/copy_experiments/copy_contender.cu | |||
@@ -1,8 +1,8 @@ | |||
1 | /* Copyright 2023 Joshua Bakita | 1 | /* Copyright 2024 Joshua Bakita |
2 | * Serially dispatch copies in one direction and record the transfer times | 2 | * Serially dispatch copies in one direction and record the transfer times |
3 | * In order to both record individual copy times, and maintain constant | 3 | * In order to both record individual copy times, and maintain constant |
4 | * pending copies, this program relies on the implict synchronization which | 4 | * pending copies, this program relies on the implict synchronization which |
5 | * occurs in CUDA when unidirectional copies are dispatched into seprat | 5 | * occurs in CUDA when unidirectional copies are dispatched into separate |
6 | * streams. | 6 | * streams. |
7 | * | 7 | * |
8 | * Parameters include the size of the copy to perform and the number of times | 8 | * Parameters include the size of the copy to perform and the number of times |
@@ -20,7 +20,7 @@ typedef enum { | |||
20 | } copy_mode_t; | 20 | } copy_mode_t; |
21 | 21 | ||
22 | void usage(char** argv) { | 22 | void usage(char** argv) { |
23 | fprintf(stderr, "Usage: %s <# of 4KiB pages to copy> <# of iterations>" | 23 | fprintf(stderr, "Usage: %s <# of 4KiB pages to copy> <# of iterations> " |
24 | "<direction [to/from/peer] GPU>\n", argv[0]); | 24 | "<direction [to/from/peer] GPU>\n", argv[0]); |
25 | } | 25 | } |
26 | 26 | ||