Browse Source

Merge pull request #1890 from martin-frbg/issue1889

Include version number in openblas_get_config output
tags/v0.3.4
Martin Kroeker GitHub 7 years ago
parent
commit
71e25ae42f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 1 deletions
  1. +2
    -0
      Makefile.system
  2. +2
    -0
      cmake/system.cmake
  3. +4
    -1
      driver/others/openblas_get_config.c

+ 2
- 0
Makefile.system View File

@@ -1036,6 +1036,8 @@ ifdef USE_TLS
CCOMMON_OPT += -DUSE_TLS
endif

CCOMMON_OPT += -DVERSION=\"$(VERSION)\"

ifndef SYMBOLPREFIX
SYMBOLPREFIX =
endif


+ 2
- 0
cmake/system.cmake View File

@@ -310,6 +310,8 @@ if (MIXED_MEMORY_ALLOCATION)
set(CCOMMON_OPT "${CCOMMON_OPT} -DMIXED_MEMORY_ALLOCATION")
endif ()

set(CCOMMON_OPT "${CCOMMON_OPT} -DVERSION=\"\\\"${OpenBLAS_VERSION}\\\"\"")

set(REVISION "-r${OpenBLAS_VERSION}")
set(MAJOR_VERSION ${OpenBLAS_MAJOR_VERSION})



+ 4
- 1
driver/others/openblas_get_config.c View File

@@ -42,8 +42,11 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#endif

static char* openblas_config_str=""
"OpenBLAS "
VERSION
" "
#ifdef USE64BITINT
"USE64BITINT "
" USE64BITINT "
#endif
#ifdef NO_CBLAS
"NO_CBLAS "


Loading…
Cancel
Save