Skip to content

Commit 20c6c38

Browse files
authored
Merge branch 'develop' into atomic
2 parents 40160ff + a1fb767 commit 20c6c38

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+6479
-1634
lines changed

.travis.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ language: c
77
jobs:
88
include:
99
- &test-ubuntu
10+
os: linux
1011
stage: test
1112
compiler: gcc
1213
addons:
@@ -57,7 +58,8 @@ jobs:
5758
- TARGET_BOX=LINUX32
5859
- BTYPE="BINARY=32"
5960

60-
- stage: test
61+
- os: linux
62+
stage: test
6163
compiler: gcc
6264
addons:
6365
apt:
@@ -77,6 +79,7 @@ jobs:
7779
# which is slower than container-based infrastructure used for jobs
7880
# that don't require sudo.
7981
- &test-alpine
82+
os: linux
8083
stage: test
8184
dist: trusty
8285
sudo: true
@@ -120,6 +123,7 @@ jobs:
120123
- BTYPE="BINARY=64 NO_AFFINITY=1 USE_OPENMP=0 NO_LAPACK=0 TARGET=core2"
121124

122125
- &test-cmake
126+
os: linux
123127
stage: test
124128
compiler: clang
125129
addons:
@@ -147,6 +151,17 @@ jobs:
147151
env:
148152
- CMAKE=1
149153

154+
- os: osx
155+
stage: test
156+
osx_image: xcode8
157+
before_script: *common-before
158+
- brew update
159+
- brew install gcc # for gfortran
160+
script:
161+
- travis_wait 45 make QUIET_MAKE=1 $COMMON_FLAGS $BTYPE
162+
env:
163+
- BTYPE="BINARY=64 INTERFACE64=1"
164+
150165
# whitelist
151166
branches:
152167
only:

Makefile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,7 @@ ifeq ($(OSNAME), $(filter $(OSNAME),Linux SunOS Android))
9191
@ln -fs $(LIBSONAME) $(LIBPREFIX).so
9292
@ln -fs $(LIBSONAME) $(LIBPREFIX).so.$(MAJOR_VERSION)
9393
endif
94-
ifeq ($(OSNAME), FreeBSD)
95-
@$(MAKE) -C exports so
96-
@ln -fs $(LIBSONAME) $(LIBPREFIX).so
97-
endif
98-
ifeq ($(OSNAME), NetBSD)
94+
ifeq ($(OSNAME), $(filter $(OSNAME),FreeBSD OpenBSD NetBSD DragonFly))
9995
@$(MAKE) -C exports so
10096
@ln -fs $(LIBSONAME) $(LIBPREFIX).so
10197
endif

Makefile.install

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,7 @@ ifeq ($(OSNAME), $(filter $(OSNAME),Linux SunOS Android))
7272
ln -fs $(LIBSONAME) $(LIBPREFIX).so ; \
7373
ln -fs $(LIBSONAME) $(LIBPREFIX).so.$(MAJOR_VERSION)
7474
endif
75-
ifeq ($(OSNAME), FreeBSD)
76-
@cp $(LIBSONAME) "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)"
77-
@cd "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)" ; \
78-
ln -fs $(LIBSONAME) $(LIBPREFIX).so
79-
endif
80-
ifeq ($(OSNAME), NetBSD)
75+
ifeq ($(OSNAME), $(filter $(OSNAME),FreeBSD OpenBSD NetBSD DragonFly))
8176
@cp $(LIBSONAME) "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)"
8277
@cd "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)" ; \
8378
ln -fs $(LIBSONAME) $(LIBPREFIX).so
@@ -115,7 +110,7 @@ endif
115110

116111
ifndef NO_SHARED
117112
#ifeq logical or
118-
ifeq ($(OSNAME), $(filter $(OSNAME),Linux FreeBSD NetBSD))
113+
ifeq ($(OSNAME), $(filter $(OSNAME),Linux FreeBSD NetBSD OpenBSD DragonFly))
119114
@echo "SET(OpenBLAS_LIBRARIES ${OPENBLAS_LIBRARY_DIR}/$(LIBPREFIX).so)" >> "$(DESTDIR)$(OPENBLAS_CMAKE_DIR)/$(OPENBLAS_CMAKE_CONFIG)"
120115
endif
121116
ifeq ($(OSNAME), $(filter $(OSNAME),WINNT CYGWIN_NT))

Makefile.rule

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ BUILD_LAPACK_DEPRECATED = 1
100100
NO_WARMUP = 1
101101

102102
# If you want to disable CPU/Memory affinity on Linux.
103-
#NO_AFFINITY = 1
103+
NO_AFFINITY = 1
104104

105105
# if you are compiling for Linux and you have more than 16 numa nodes or more than 256 cpus
106106
# BIGNUMA = 1

Makefile.system

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,24 @@ NETLIB_LAPACK_DIR = $(TOPDIR)/lapack-netlib
1717
# http://stackoverflow.com/questions/4029274/mingw-and-make-variables
1818
# - Default value is 'cc' which is not always a valid command (e.g. MinGW).
1919
ifeq ($(origin CC),default)
20+
21+
# Check if $(CC) refers to a valid command and set the value to gcc if not
22+
ifneq ($(findstring cmd.exe,$(SHELL)),)
23+
ifeq ($(shell where $(CC) 2>NUL),)
2024
CC = gcc
21-
# Change the default compile to clang on Mac OSX.
22-
# http://stackoverflow.com/questions/714100/os-detecting-makefile
23-
UNAME_S := $(shell uname -s)
24-
ifeq ($(UNAME_S),Darwin)
25-
CC = clang
26-
# EXTRALIB += -Wl,-no_compact_unwind
27-
endif
2825
endif
26+
else # POSIX-ish
27+
ifeq ($(shell command -v $(CC) 2>/dev/null),)
28+
ifeq ($(shell uname -s),Darwin)
29+
CC = clang
30+
# EXTRALIB += -Wl,-no_compact_unwind
31+
else
32+
CC = gcc
33+
endif # Darwin
34+
endif # CC exists
35+
endif # Shell is sane
36+
37+
endif # CC is set to default
2938

3039
# Default Fortran compiler (FC) is selected by f_check.
3140

@@ -230,7 +239,7 @@ endif
230239
MD5SUM = md5 -r
231240
endif
232241

233-
ifeq ($(OSNAME), FreeBSD)
242+
ifneq (,$(findstring $(OSNAME), FreeBSD OpenBSD DragonFly))
234243
MD5SUM = md5 -r
235244
endif
236245

0 commit comments

Comments
 (0)