Skip to content

Commit 71e25ae

Browse files
authored
Merge pull request #1890 from martin-frbg/issue1889
Include version number in openblas_get_config output
2 parents b6363f4 + 97d7298 commit 71e25ae

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

Makefile.system

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,6 +1036,8 @@ ifdef USE_TLS
10361036
CCOMMON_OPT += -DUSE_TLS
10371037
endif
10381038

1039+
CCOMMON_OPT += -DVERSION=\"$(VERSION)\"
1040+
10391041
ifndef SYMBOLPREFIX
10401042
SYMBOLPREFIX =
10411043
endif

cmake/system.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,8 @@ if (MIXED_MEMORY_ALLOCATION)
310310
set(CCOMMON_OPT "${CCOMMON_OPT} -DMIXED_MEMORY_ALLOCATION")
311311
endif ()
312312

313+
set(CCOMMON_OPT "${CCOMMON_OPT} -DVERSION=\"\\\"${OpenBLAS_VERSION}\\\"\"")
314+
313315
set(REVISION "-r${OpenBLAS_VERSION}")
314316
set(MAJOR_VERSION ${OpenBLAS_MAJOR_VERSION})
315317

driver/others/openblas_get_config.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,11 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4242
#endif
4343

4444
static char* openblas_config_str=""
45+
"OpenBLAS "
46+
VERSION
47+
" "
4548
#ifdef USE64BITINT
46-
"USE64BITINT "
49+
" USE64BITINT "
4750
#endif
4851
#ifdef NO_CBLAS
4952
"NO_CBLAS "

0 commit comments

Comments
 (0)