Skip to content

Commit fc10673

Browse files
authored
Merge branch 'develop' into hugetlb-doc
2 parents dc99b61 + c20189c commit fc10673

File tree

8 files changed

+32
-6
lines changed

8 files changed

+32
-6
lines changed

Makefile.system

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ OBJCONV = $(CROSS_SUFFIX)objconv
355355
# When fortran support was either not detected or actively deselected, only build BLAS.
356356
ifeq ($(NOFORTRAN), 1)
357357
C_LAPACK = 1
358-
override FEXTRALIB =
358+
override FEXTRALIB =
359359
ifeq ($(C_COMPILER), GCC)
360360
CCOMMON_OPT += -Wno-error=incompatible-pointer-types
361361
endif

cmake/system.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,12 @@ else()
160160
endif ()
161161
endif ()
162162

163+
if (C_LAPACK)
164+
if (${CMAKE_C_COMPILER_ID} STREQUAL "GNU")
165+
set(CCOMMON_OPT "${CCOMMON_OPT} -Wno-error=incompatible-pointer-types")
166+
endif ()
167+
endif ()
168+
163169
include("${PROJECT_SOURCE_DIR}/cmake/prebuild.cmake")
164170
if (DEFINED TARGET)
165171
if (${TARGET} STREQUAL COOPERLAKE AND NOT NO_AVX512)

cpuid_x86.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1535,6 +1535,7 @@ int get_cpuname(void){
15351535
return CPUTYPE_SANDYBRIDGE;
15361536
else
15371537
return CPUTYPE_NEHALEM;
1538+
case 0: // Meteor Lake
15381539
case 7: // Rocket Lake
15391540
if(support_avx512())
15401541
return CPUTYPE_SKYLAKEX;
@@ -1560,6 +1561,19 @@ int get_cpuname(void){
15601561
return CPUTYPE_NEHALEM;
15611562
}
15621563
break;
1564+
case 12: //family 6 exmodel 12
1565+
switch (model) {
1566+
case 15:
1567+
if(support_avx512())
1568+
return CPUTYPE_SAPPHIRERAPIDS;
1569+
if(support_avx2())
1570+
return CPUTYPE_HASWELL;
1571+
if(support_avx())
1572+
return CPUTYPE_SANDYBRIDGE;
1573+
else
1574+
return CPUTYPE_NEHALEM;
1575+
}
1576+
break;
15631577
}
15641578
break;
15651579
case 0x7:

ctest/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ endif
2525

2626
override CFLAGS += -DADD$(BU) -DCBLAS
2727
ifeq ($(F_COMPILER),GFORTRAN)
28+
ifneq (, $(filter $(CORE),LOONGSON3R3 LOONGSON3R4))
29+
override FFLAGS = $(filter_out(-O2 -O3,$(FFLAGS)) -O0
30+
endif
2831
override FFLAGS += -fno-tree-vectorize
2932
endif
3033
override TARGET_ARCH=

docs/user_manual.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ For more information, please read [Installation Guide](install.md).
4949
gcc -o test test.c -I/your_path/OpenBLAS/include/ -L/your_path/OpenBLAS/lib -Wl,-rpath,/your_path/OpenBLAS/lib -lopenblas
5050
```
5151

52-
The `-Wl,-rpath,/your_path/OpenBLAS/lib` option to linker can be omitted if you ran `ldconfig` to update linker cache, put `/your_path/OpenBLAS/lib` in `/etc/ld.so.conf` or a file in `/etc/ld.so.conf.d`, or installed OpenBLAS in a location part of `ld.so` default search path. Otherwise, linking at runtime will fail.
52+
The `-Wl,-rpath,/your_path/OpenBLAS/lib` option to linker can be omitted if you ran `ldconfig` to update linker cache, put `/your_path/OpenBLAS/lib` in `/etc/ld.so.conf` or a file in `/etc/ld.so.conf.d`, or installed OpenBLAS in a location that is part of the `ld.so` default search path (usually /lib,/usr/lib and /usr/local/lib). Alternatively, you can set the environment variable LD_LIBRARY_PATH to point to the folder that contains libopenblas.so. Otherwise, linking at runtime will fail with a message like `cannot open shared object file: no such file or directory`
5353

5454
If the library is multithreaded, please add `-lpthread`. If the library contains LAPACK functions, please add `-lgfortran` or other Fortran libs, although if you only make calls to LAPACKE routines, i.e. your code has `#include "lapacke.h"` and makes calls to methods like `LAPACKE_dgeqrf`, `-lgfortran` is not needed.
5555

@@ -159,7 +159,7 @@ int main(int argc, char* argv[])
159159
```
160160
161161
```
162-
gcc -o time_dgemm time_dgemm.c /your/path/libopenblas.a
162+
gcc -o time_dgemm time_dgemm.c /your/path/libopenblas.a -lpthread
163163
./time_dgemm <m> <n> <k>
164164
```
165165

test/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
TOPDIR = ..
22
include ../Makefile.system
33
ifeq ($(F_COMPILER),GFORTRAN)
4+
ifneq (, $(filter $(CORE),LOONGSON3R3 LOONGSON3R4))
5+
override FFLAGS = $(filter_out(-O2 -O3,$(FFLAGS)) -O0
6+
endif
47
override FFLAGS += -fno-tree-vectorize
58
endif
69

utest/test_extensions/utest_main2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4040
#define CTEST_ADD_TESTS_MANUALLY
4141

4242
#include "cblas.h"
43-
#include "openblas_utest.h"
43+
#include "utest/openblas_utest.h"
4444
#if 1
4545
CTEST(amax, samax){
4646
blasint N=3, inc=1;

utest/test_extensions/xerbla.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ static char *rout;
3939

4040
static void F77_xerbla(char *srname, void *vinfo)
4141
{
42-
int info=*(int*)vinfo;
42+
blasint info=*(blasint*)vinfo;
4343

4444
if (link_xerbla)
4545
{
@@ -85,4 +85,4 @@ void set_xerbla(char* current_rout, int expected_info){
8585
lerr = TRUE;
8686
_info = expected_info;
8787
rout = current_rout;
88-
}
88+
}

0 commit comments

Comments
 (0)