From bedf45fd8301810009bb5df481262dcb52cf59f8 Mon Sep 17 00:00:00 2001 From: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de> Date: Thu, 3 Aug 2023 10:18:27 +0200 Subject: [PATCH] tests: increase warmup iterations in overhead test --- tests/.gitignore | 1 + tests/test_apps/overhead.cu | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/.gitignore b/tests/.gitignore index c08de5b..7a7f0c8 100644 --- a/tests/.gitignore +++ b/tests/.gitignore @@ -4,3 +4,4 @@ test_api test_cpu test_kernel test_kernel_call +cudnn-samples diff --git a/tests/test_apps/overhead.cu b/tests/test_apps/overhead.cu index 6928422..ba9ebcc 100644 --- a/tests/test_apps/overhead.cu +++ b/tests/test_apps/overhead.cu @@ -7,7 +7,7 @@ #include <cuda_runtime.h> #define ITERATIONS 100000 -#define WARUMUPS 10 +#define WARMUPS 100 #define MEMSIZE 1024*1024 const int blocksize = 32; @@ -33,7 +33,7 @@ int main() printf("init CUDA\n"); cudaGetDeviceCount(&cnt); printf("1. cudaGetDeviceCount (%d iterations)\n", iterations); - for (int i=0; i != WARUMUPS; i++) { + for (int i=0; i != WARMUPS; i++) { cudaGetDeviceCount(&cnt); } gettimeofday(&begin, NULL); -- GitLab