Browse Source

Added SMP sources to COMMONOBJS.

tags/v0.2.15^2
Hank Anderson 11 years ago
parent
commit
2828f6630c
2 changed files with 25 additions and 29 deletions
  1. +0
    -3
      cmake/system.cmake
  2. +25
    -26
      driver/others/CMakeLists.txt

+ 0
- 3
cmake/system.cmake View File

@@ -250,9 +250,6 @@ set(KERNELDIR "${CMAKE_SOURCE_DIR}/kernel/${ARCH}")
# TODO: nead to convert these Makefiles
# include ${CMAKE_SOURCE_DIR}/cmake/${ARCH}.cmake

# TODO: Need to figure out how to get $(*F) in cmake
#set(CCOMMON_OPT "${CCOMMON_OPT} -DASMNAME=${FU}$(*F) -DASMFNAME=${FU}$(*F)${BU} -DNAME=$(*F)${BU} -DCNAME=$(*F) -DCHAR_NAME=\"$(*F)${BU}\" -DCHAR_CNAME=\"$(*F)\"")

if (${CORE} STREQUAL "PPC440")
set(CCOMMON_OPT "${CCOMMON_OPT} -DALLOC_QALLOC")
endif ()


+ 25
- 26
driver/others/CMakeLists.txt View File

@@ -6,8 +6,32 @@ else ()
set(MEMORY memory.c)
endif ()

if (SMP)

if (USE_OPENMP)
set(BLAS_SERVER blas_server_omp.c)
elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
set(BLAS_SERVER blas_server_win32.c)
endif ()

if (NOT DEFINED BLAS_SERVER)
set(BLAS_SERVER blas_server.c)
endif ()

set(SMP_SOURCES
${BLAS_SERVER}
divtable.c # TODO: Makefile has -UDOUBLE
blas_l1_thread.c
)

if (NOT NO_AFFINITY)
list(APPEND SMP_SOURCES init.c)
endif ()
endif ()

add_library(COMMON_OBJS OBJECT
${MEMORY}
${SMP_SOURCES}
xerbla.c
abs.c # TODO: this is split into c_abs (DOUBLE unset) and z_abs (DOUBLE set) in the Makefile
openblas_set_num_threads.c
@@ -16,13 +40,6 @@ add_library(COMMON_OBJS OBJECT
openblas_error_handle.c
)

#ifdef SMP
#COMMONOBJS += blas_server.$(SUFFIX) divtable.$(SUFFIX) blasL1thread.$(SUFFIX)
#ifndef NO_AFFINITY
#COMMONOBJS += init.$(SUFFIX)
#endif
#endif
#
#ifeq ($(DYNAMIC_ARCH), 1)
#COMMONOBJS += dynamic.$(SUFFIX)
#else
@@ -48,25 +65,7 @@ add_library(COMMON_OBJS OBJECT
list(APPEND DBLAS_OBJS "COMMON_OBJS")

#LIBOTHERS = libothers.$(LIBSUFFIX)
#
#ifeq ($(USE_OPENMP), 1)
#BLAS_SERVER = blas_server_omp.c
#else
#ifeq ($(OSNAME), WINNT)
#BLAS_SERVER = blas_server_win32.c
#endif
#ifeq ($(OSNAME), CYGWIN_NT)
#BLAS_SERVER = blas_server_win32.c
#endif
#ifeq ($(OSNAME), Interix)
#BLAS_SERVER = blas_server_win32.c
#endif
#endif
#
#ifndef BLAS_SERVER
#BLAS_SERVER = blas_server.c
#endif
#

#ifeq ($(DYNAMIC_ARCH), 1)
#HPLOBJS = memory.$(SUFFIX) xerbla.$(SUFFIX) dynamic.$(SUFFIX)
#else


Loading…
Cancel
Save