From 13c1bf272b291ca6482d0b30170c04567857f65f Mon Sep 17 00:00:00 2001 From: jpekkila Date: Tue, 6 Aug 2019 17:44:43 +0300 Subject: [PATCH] Removed old/outdated/unused scripts --- scripts/buildtest.sh | 3 -- scripts/fix_style.sh | 9 ----- scripts/gen_rk3_threadblockconf.c | 60 ------------------------------- scripts/generate_doc.sh | 2 -- 4 files changed, 74 deletions(-) delete mode 100755 scripts/buildtest.sh delete mode 100755 scripts/fix_style.sh delete mode 100644 scripts/gen_rk3_threadblockconf.c delete mode 100755 scripts/generate_doc.sh diff --git a/scripts/buildtest.sh b/scripts/buildtest.sh deleted file mode 100755 index 693b1d8..0000000 --- a/scripts/buildtest.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -cmake -DCUDA_BUILD_LEGACY=OFF -DDOUBLE_PRECISION=ON .. && make -j && valgrind --leak-check=full --show-leak-kinds=all ./ac_run -t && make clean &&\ -cmake -DCUDA_BUILD_LEGACY=OFF -DDOUBLE_PRECISION=OFF .. && make -j && valgrind --leak-check=full --show-leak-kinds=all ./ac_run -t diff --git a/scripts/fix_style.sh b/scripts/fix_style.sh deleted file mode 100755 index 776c734..0000000 --- a/scripts/fix_style.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -if [[ $1 == "DO" && $2 == "IT!" ]]; then - find -name \*.h -o -name \*.cc -o -name \*.cu -o -name \*.cuh | xargs clang-format-6.0 -i -style=file - echo "It is done." -else - find -name \*.h -o -name \*.cc -o -name \*.cu -o -name \*.cuh - echo "I'm going to try to fix the style of these files." - echo "If you're absolutely sure, give \"DO IT!\" (without quotes) as a parameter." -fi diff --git a/scripts/gen_rk3_threadblockconf.c b/scripts/gen_rk3_threadblockconf.c deleted file mode 100644 index a4448d6..0000000 --- a/scripts/gen_rk3_threadblockconf.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - Copyright (C) 2014-2019, Johannes Pekkilae, Miikka Vaeisalae. - - This file is part of Astaroth. - - Astaroth is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Astaroth is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Astaroth. If not, see . -*/ - - -/** - * @file - * \brief Generates a threadblock config file for RK3 using the given parameters. - * - * - */ -#include -#include - -#include - -const char* rk3_threadblockconf_path = "rk3_threadblock.conf"; - -int -write_to_file(int threads_x, int threads_y, int threads_z, int elems_per_thread, int launch_bound) -{ - FILE* fp; - fp = fopen(rk3_threadblockconf_path, "w"); - - if (fp != NULL) { - fprintf(fp, "#define RK_THREADS_X (%d)\n", threads_x); - fprintf(fp, "#define RK_THREADS_Y (%d)\n", threads_y); - fprintf(fp, "#define RK_THREADS_Z (%d)\n", threads_z); - fprintf(fp, "#define RK_ELEMS_PER_THREAD (%d)\n", elems_per_thread); - fprintf(fp, "#define RK_LAUNCH_BOUND_MIN_BLOCKS (%d)\n", launch_bound); - fclose(fp); - return EXIT_SUCCESS; - } - return EXIT_FAILURE; -} - -// Takes arguments and writes them into a file -// RK_THREADS_X, RK_THREADS_Y, RK_THREADS_Z, RK_ELEMS_PER_THREAD, RK_LAUNCH_BOUND_MIN_BLOCKS -int -main(int argc, char* argv[]) -{ - assert(argc == 6); - - return write_to_file(atoi(argv[1]), atoi(argv[2]),atoi(argv[3]), atoi(argv[4]), atoi(argv[5])); -} diff --git a/scripts/generate_doc.sh b/scripts/generate_doc.sh deleted file mode 100755 index 4ee6aca..0000000 --- a/scripts/generate_doc.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -doxygen doxyfile