@@ -464,6 +464,30 @@ function (build_core TARGET_CORE KDIR TSUFFIX KERNEL_DEFINITIONS)
464
464
GenerateNamedObjects ("${KERNELDIR} /${${float_char} GEADD_KERNEL}" "" "geadd_k" false "" "" false ${float_type} )
465
465
endforeach ()
466
466
467
+ # Makefile.LA
468
+ if (NOT NO_LAPACK )
469
+ foreach (float_type ${FLOAT_TYPES} )
470
+ if (NOT DEFINED ${float_char} NEG_TCOPY )
471
+ if (${float_char} STREQUAL "Z" OR ${float_char} STREQUAL "C" OR ${float_char} STREQUAL "X" )
472
+ set (${float_char} NEG_TCOPY ../generic/zneg_tcopy.c )
473
+ else ()
474
+ set (${float_char} NEG_TCOPY ../generic/neg_tcopy.c )
475
+ endif ()
476
+ endif ()
477
+
478
+ if (NOT DEFINED ${float_char} LASWP_NCOPY )
479
+ if (${float_char} STREQUAL "Z" OR ${float_char} STREQUAL "C" OR ${float_char} STREQUAL "X" )
480
+ set (${float_char} LASWP_NCOPY ../generic/zlaswp_ncopy.c )
481
+ else ()
482
+ set (${float_char} LASWP_NCOPY ../generic/laswp_ncopy.c )
483
+ endif ()
484
+ endif ()
485
+ string (SUBSTRING ${float_type} 0 1 float_char )
486
+ GenerateNamedObjects ("${KERNELDIR} /${${float_char} NEG_TCOPY}_${${float_char} GEMM_UNROLL_M}" "" "neg_tcopy" false "" "" false ${float_type} )
487
+ GenerateNamedObjects ("${KERNELDIR} /${${float_char} LASWP_NCOPY}_${${float_char} GEMM_UNROLL_N}" "" "laswp_ncopy" false "" "" false ${float_type} )
488
+ endforeach ()
489
+ endif ()
490
+
467
491
if (${DYNAMIC_ARCH} )
468
492
set (SETPARAM_TARGET_DIR ${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY} )
469
493
file (READ ${CMAKE_CURRENT_SOURCE_DIR} /setparam-ref.c SETPARAM_REF_CONTENTS )
@@ -484,9 +508,6 @@ function (build_core TARGET_CORE KDIR TSUFFIX KERNEL_DEFINITIONS)
484
508
file (REMOVE ${SETPARAM_TARGET_DIR} /kernel${TSUFFIX}.tmp )
485
509
endif ()
486
510
487
- # Makefile.LA
488
- #DBLASOBJS += dneg_tcopy$(TSUFFIX).$(SUFFIX) dlaswp_ncopy$(TSUFFIX).$(SUFFIX)
489
-
490
511
add_library (kernel${TSUFFIX} OBJECT ${OPENBLAS_SRC} )
491
512
set_target_properties (kernel${TSUFFIX} PROPERTIES COMPILE_FLAGS "${KERNEL_DEFINITIONS} " )
492
513
get_target_property (KERNEL_INCLUDE_DIRECTORIES kernel${TSUFFIX} INCLUDE_DIRECTORIES )
0 commit comments