Skip to content

Commit 593e464

Browse files
author
nphaniku
committed
Build is failing with configure options enable-multithreading, enable-supermatrix
1. Fixed LIBFLAME_IMPORT error while enabling multithreading and supermatrix 2. Fixed SORHR_COL symbol issue from Windows build. AMD Internal : [CPUPL-1661] Change-Id: I82f1d9d736899e9e2661445674e8f480e516ff57
1 parent 5b7b8c0 commit 593e464

3 files changed

Lines changed: 10 additions & 5 deletions

File tree

CMakeLists.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,9 @@ option (ENABLE_AUTODETECT_F77_UNDERSCORING "Enable autodetect F77 Underscore" OF
4646
option (ENABLE_UPPERCASE_BLAS "Enable invocation of Blas with Flame" OFF)
4747
option (ENABLE_UPPERCASE_LAPACK "Enable invocation of Lapack with Flame" OFF)
4848
option (ENABLE_GPU "Enable gpu advantage" OFF)
49-
49+
option (ENABLE_XBLAS "Enable xblas API's" OFF)
5050

5151
set (ENABLE_WINDOWS_BUILD "Enables windows build" ON)
52-
add_compile_definitions(FLA_ENABLE_WINDOWS_BUILD=1)
5352

5453
if(ENABLE_UPPERCASE)
5554
add_definitions(-DBLIS1_ENABLE_UPPERCASE_F77)
@@ -58,6 +57,9 @@ elseif(NOT ENABLE_UPPERCASE)
5857
add_definitions(-DNOCHANGE)
5958
endif()
6059

60+
if(ENABLE_XBLAS)
61+
add_definitions(-DFLA_ENABLE_XBLAS)
62+
endif()
6163
if (ENABLE_NON_CRITICAL_CODE)
6264
set (FLA_ENABLE_NON_CRITICAL_CODE TRUE)
6365
endif ()
@@ -102,7 +104,7 @@ if (ENABLE_BLAS3_FRNTEND_CNTL_TREES)
102104
endif ()
103105

104106
if (ENABLE_WINDOWS_BUILD)
105-
add_compile_definitions(FLA_ENABLE_WINDOWS_BUILD=1)
107+
set(FLA_ENABLE_WINDOWS_BUILD TRUE)
106108
endif ()
107109

108110
if (ENABLE_PORTABLE_TIMER)

src/base/flamec/include/FLA_f2c.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1746,7 +1746,7 @@ typedef doublereal E_f; /* real function with -R not specified */
17461746
#define sorgrq_ SORGRQ
17471747
#define sorgtr_ SORGTR
17481748
#define sorgtsqr_ SORGTSQR
1749-
#define sorhr_col_ SORHR_OL
1749+
#define sorhr_col_ SORHR_COL
17501750
#define sorm22_ SORM22
17511751
#define sorm2l_ SORM2L
17521752
#define sorm2r_ SORM2R
@@ -3888,7 +3888,7 @@ typedef doublereal E_f; /* real function with -R not specified */
38883888
#define sorgrq_ sorgrq
38893889
#define sorgtr_ sorgtr
38903890
#define sorgtsqr_ sorgtsqr
3891-
#define sorhr_col_ sorhr_ol
3891+
#define sorhr_col_ sorhr_col
38923892
#define sorm22_ sorm22
38933893
#define sorm2l_ sorm2l
38943894
#define sorm2r_ sorm2r

src/base/flamec/include/FLA_macro_defs.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232
#if !defined FLA_ENABLE_MULTITHREADING && !defined FLA_ENABLE_SUPERMATRIX
3333
#define ENABLE_THREAD_LOCAL_STORAGE 1
3434
#define LIBFLAME_IMPORT
35+
#else
36+
#define ENABLE_THREAD_LOCAL_STORAGE 0
37+
#define LIBFLAME_IMPORT
3538
#endif
3639
#endif
3740

0 commit comments

Comments
 (0)