From 03c9a7b60cd34358b9df7bb8ce31b5692d40555b Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Tue, 7 Sep 2021 20:42:14 +0200 Subject: Remove double precision storage support for benchmark Single precision only requires half the bandwidth and is generally good enough for applications. --- tangle/benchmark-ldc.cu | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) (limited to 'tangle') diff --git a/tangle/benchmark-ldc.cu b/tangle/benchmark-ldc.cu index 4de0ae5..1400547 100644 --- a/tangle/benchmark-ldc.cu +++ b/tangle/benchmark-ldc.cu @@ -8,9 +8,9 @@ #include +using T = float; using DESCRIPTOR = descriptor::D3Q19; -template void simulate(descriptor::Cuboid cuboid, std::size_t nStep) { cudaSetDevice(0); @@ -58,7 +58,7 @@ void simulate(descriptor::Cuboid cuboid, std::size_t nStep) { } int main(int argc, char* argv[]) { - if (argc < 3 || argc > 4) { + if (argc != 3) { std::cerr << "Invalid parameter count" << std::endl; return -1; } @@ -66,22 +66,7 @@ int main(int argc, char* argv[]) { const std::size_t n = atoi(argv[1]); const std::size_t steps = atoi(argv[2]); - unsigned precision = 4; - if (argc == 4) { - precision = atoi(argv[3]); - } - - switch (precision) { - case 4: - simulate({ n, n, n}, steps); - break; - case 8: - simulate({ n, n, n}, steps); - break; - default: - std::cerr << "Invalid precision" << std::endl; - return -1; - } + simulate({ n, n, n}, steps); return 0; } -- cgit v1.2.3