Skip to content

Commit 1459477

Browse files
authored
Merge pull request #5615 from martin-frbg/issue5607
Fix building without multithreading or LAPACK
2 parents a8a2238 + 566e315 commit 1459477

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

driver/others/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ if (USE_THREAD)
2727
${BLAS_SERVER}
2828
divtable.c # TODO: Makefile has -UDOUBLE
2929
blas_l1_thread.c
30-
blas_server_callback.c
3130
)
3231

3332
if (NOT NO_AFFINITY)
@@ -42,6 +41,7 @@ set(COMMON_SOURCES
4241
openblas_env.c
4342
openblas_get_num_procs.c
4443
openblas_get_num_threads.c
44+
blas_server_callback.c
4545
)
4646

4747
# these need to have NAME/CNAME set, so use GenerateNamedObjects, but don't use standard name mangling

driver/others/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
TOPDIR = ../..
22
include ../../Makefile.system
33

4-
COMMONOBJS = memory.$(SUFFIX) xerbla.$(SUFFIX) c_abs.$(SUFFIX) z_abs.$(SUFFIX) openblas_set_num_threads.$(SUFFIX) openblas_get_num_threads.$(SUFFIX) openblas_get_num_procs.$(SUFFIX) openblas_get_config.$(SUFFIX) openblas_get_parallel.$(SUFFIX) openblas_error_handle.$(SUFFIX) openblas_env.$(SUFFIX)
4+
COMMONOBJS = memory.$(SUFFIX) xerbla.$(SUFFIX) c_abs.$(SUFFIX) z_abs.$(SUFFIX) openblas_set_num_threads.$(SUFFIX) openblas_get_num_threads.$(SUFFIX) openblas_get_num_procs.$(SUFFIX) openblas_get_config.$(SUFFIX) openblas_get_parallel.$(SUFFIX) openblas_error_handle.$(SUFFIX) openblas_env.$(SUFFIX) blas_server_callback.$(SUFFIX)
55

66
#COMMONOBJS += slamch.$(SUFFIX) slamc3.$(SUFFIX) dlamch.$(SUFFIX) dlamc3.$(SUFFIX)
77

88
ifdef SMP
9-
COMMONOBJS += blas_server.$(SUFFIX) divtable.$(SUFFIX) blasL1thread.$(SUFFIX) blas_server_callback.$(SUFFIX)
9+
COMMONOBJS += blas_server.$(SUFFIX) divtable.$(SUFFIX) blasL1thread.$(SUFFIX)
1010
ifneq ($(NO_AFFINITY), 1)
1111
COMMONOBJS += init.$(SUFFIX)
1212
endif

utest/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,14 @@ if (NOT USE_OPENMP)
101101
set(OpenBLAS_utest_src
102102
${OpenBLAS_utest_src}
103103
test_fork.c
104+
)
105+
if (NOT NO_LAPACK)
106+
set(OpenBLAS_utest_src
107+
${OpenBLAS_utest_src}
104108
test_post_fork_async.c
105109
)
106110
endif()
111+
endif()
107112
set(OpenBLAS_utest_src
108113
${OpenBLAS_utest_src}
109114
test_post_fork.c

utest/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ endif
4545
# FIXME TBD if this works on OSX, SunOS, POWER and zarch
4646
ifeq ($(OSNAME), $(filter $(OSNAME),Linux CYGWIN_NT))
4747
ifneq ($(USE_OPENMP), 1)
48-
OBJS += test_fork.o test_post_fork_async.o
48+
OBJS += test_fork.o
49+
ifneq ($(NO_LAPACK), 1)
50+
OBJS += test_post_fork_async.o
51+
endif
4952
endif
5053
OBJS += test_post_fork.o
5154
endif

0 commit comments

Comments
 (0)