From e7910d098dcf470c0e68ce4ed643ccaf5b87ddc9 Mon Sep 17 00:00:00 2001 From: User User-User Date: Thu, 25 Jun 2020 14:02:17 +0300 Subject: [PATCH] remove unused SANITY_CHECK option #2022 --- CMakeLists.txt | 4 ---- Makefile | 5 ----- Makefile.rule | 4 ---- Makefile.system | 5 ----- cmake/os.cmake | 6 ------ common.h | 3 --- 6 files changed, 27 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bb5322a1d..702f46935 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -76,10 +76,6 @@ if (NOT DYNAMIC_ARCH) list(APPEND BLASDIRS kernel) endif () -if (DEFINED SANITY_CHECK) - list(APPEND BLASDIRS reference) -endif () - set(SUBDIRS ${BLASDIRS}) if (NOT NO_LAPACK) if(BUILD_RELAPACK) diff --git a/Makefile b/Makefile index e113026dd..ee006d27e 100644 --- a/Makefile +++ b/Makefile @@ -7,10 +7,6 @@ ifneq ($(DYNAMIC_ARCH), 1) BLASDIRS += kernel endif -ifdef SANITY_CHECK -BLASDIRS += reference -endif - SUBDIRS = $(BLASDIRS) ifneq ($(NO_LAPACK), 1) SUBDIRS += lapack @@ -364,7 +360,6 @@ clean :: #ifdef DYNAMIC_ARCH @$(MAKE) -C kernel clean #endif - @$(MAKE) -C reference clean @rm -f *.$(LIBSUFFIX) *.so *~ *.exe getarch getarch_2nd *.dll *.lib *.$(SUFFIX) *.dwf $(LIBPREFIX).$(LIBSUFFIX) $(LIBPREFIX)_p.$(LIBSUFFIX) $(LIBPREFIX).so.$(MAJOR_VERSION) *.lnk myconfig.h ifeq ($(OSNAME), Darwin) @rm -rf getarch.dSYM getarch_2nd.dSYM diff --git a/Makefile.rule b/Makefile.rule index 2c12177ee..2acb3d944 100644 --- a/Makefile.rule +++ b/Makefile.rule @@ -218,10 +218,6 @@ NO_AFFINITY = 1 # been reported to be optimal for certain workloads (50 is the recommended value for Julia). # GEMM_MULTITHREAD_THRESHOLD = 4 -# If you need sanity check by comparing results to reference BLAS. It'll be very -# slow (Not implemented yet). -# SANITY_CHECK = 1 - # The installation directory. # PREFIX = /opt/OpenBLAS diff --git a/Makefile.system b/Makefile.system index 2a0694d01..95f04e5a3 100644 --- a/Makefile.system +++ b/Makefile.system @@ -403,11 +403,6 @@ endif ifdef UTEST_CHECK CCOMMON_OPT += -DUTEST_CHECK -SANITY_CHECK = 1 -endif - -ifdef SANITY_CHECK -CCOMMON_OPT += -DSANITY_CHECK -DREFNAME=$(*F)f$(BU) endif MAX_STACK_ALLOC ?= 2048 diff --git a/cmake/os.cmake b/cmake/os.cmake index c644bc3f7..87e1e2bc2 100644 --- a/cmake/os.cmake +++ b/cmake/os.cmake @@ -86,11 +86,5 @@ endif () if (UTEST_CHECK) set(CCOMMON_OPT "${CCOMMON_OPT} -DUTEST_CHECK") - set(SANITY_CHECK 1) -endif () - -if (SANITY_CHECK) - # TODO: need some way to get $(*F) (target filename) - set(CCOMMON_OPT "${CCOMMON_OPT} -DSANITY_CHECK -DREFNAME=$(*F)f${BU}") endif () diff --git a/common.h b/common.h index 00b34a3f7..5f406906d 100644 --- a/common.h +++ b/common.h @@ -795,9 +795,6 @@ typedef struct { #endif #include "common_interface.h" -#ifdef SANITY_CHECK -#include "common_reference.h" -#endif #include "common_macro.h" #include "common_level1.h" #include "common_level2.h"