diff options
| author | Joshua Bakita <bakitajoshua@gmail.com> | 2024-02-19 20:39:39 -0500 |
|---|---|---|
| committer | Joshua Bakita <bakitajoshua@gmail.com> | 2024-02-19 20:39:39 -0500 |
| commit | cd9ee070e2fcaa49fe35944ea0fd60ed5d197ba2 (patch) | |
| tree | cb31473e1793e383a06dd0b560c7ab83374040ff /constant_cycles_kernel.cu | |
| parent | 18641058a2d60e172f18176b41d51baa706ffd85 (diff) | |
Split SAFE() macro into API-specific typed variants
Avoids incorrectly interpreting CUDA Driver Library error codes as
though they were CUDA Runtime Library error codes (the numbering is
similar, but not identical).
Also cleans up how we initialize and terminate a context for
capability checking in `mon_cross_ctx_copies`.
Diffstat (limited to 'constant_cycles_kernel.cu')
| -rw-r--r-- | constant_cycles_kernel.cu | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/constant_cycles_kernel.cu b/constant_cycles_kernel.cu index eda963d..db92b08 100644 --- a/constant_cycles_kernel.cu +++ b/constant_cycles_kernel.cu | |||
| @@ -13,7 +13,6 @@ __global__ void loop_on_gpu(unsigned long iters, int *__unused) { | |||
| 13 | } | 13 | } |
| 14 | 14 | ||
| 15 | int main(int argc, char **argv) { | 15 | int main(int argc, char **argv) { |
| 16 | cudaError_t err; | ||
| 17 | int res, *__unused; | 16 | int res, *__unused; |
| 18 | struct timespec start, end; | 17 | struct timespec start, end; |
| 19 | 18 | ||
