@@ -69,8 +69,8 @@ foreach (CBLAS_FLAG ${CBLAS_FLAGS})
6969 set (DISABLE_COMPLEX 0)
7070 set (MANGLE_COMPLEX 3)
7171 if (CBLAS_FLAG EQUAL 1)
72- set (DISABLE_COMPLEX 1)
73- set (MANGLE_COMPLEX 1)
72+ # set(DISABLE_COMPLEX 1)
73+ # set(MANGLE_COMPLEX 1)
7474 endif ()
7575 GenerateNamedObjects ("${BLAS1_SOURCES} " "" "" ${CBLAS_FLAG} "" "" false ${DISABLE_COMPLEX} )
7676 GenerateNamedObjects ("${BLAS1_REAL_ONLY_SOURCES} " "" "" ${CBLAS_FLAG} "" "" false 1 )
@@ -98,43 +98,54 @@ foreach (CBLAS_FLAG ${CBLAS_FLAGS})
9898 GenerateNamedObjects ("imax.c" "USE_ABS;USE_MIN" "i*amin" ${CBLAS_FLAG} )
9999 GenerateNamedObjects ("imax.c" "USE_MIN" "i*min" ${CBLAS_FLAG} )
100100
101- endforeach ()
102101
103102# complex-specific sources
104103foreach (float_type ${FLOAT_TYPES} )
105104
106105 if (${float_type} STREQUAL "COMPLEX" OR ${float_type} STREQUAL "ZCOMPLEX" )
107- GenerateNamedObjects ("zger.c" "" "geru" false "" "" false ${float_type} )
108- GenerateNamedObjects ("zger.c" "CONJ" "gerc" false "" "" false ${float_type} )
109- GenerateNamedObjects ("zdot.c" "CONJ" "dotc" false "" "" false ${float_type} )
110- GenerateNamedObjects ("zdot.c" "" "dotu" false "" "" false ${float_type} )
106+ GenerateNamedObjects ("zger.c" "" "geru" ${CBLAS_FLAG} "" "" false ${float_type} )
107+ GenerateNamedObjects ("zger.c" "CONJ" "gerc" ${CBLAS_FLAG} "" "" false ${float_type} )
108+ GenerateNamedObjects ("zdot.c" "CONJ" "dotc" ${CBLAS_FLAG} "" "" false ${float_type} )
109+ GenerateNamedObjects ("zdot.c" "" "dotu" ${CBLAS_FLAG} "" "" false ${float_type} )
111110
112- GenerateNamedObjects ("symm.c" "HEMM" "hemm" false "" "" false ${float_type} )
113- GenerateNamedObjects ("syrk.c" "HEMM" "herk" false "" "" false ${float_type} )
114- GenerateNamedObjects ("syr2k.c" "HEMM" "her2k" false "" "" false ${float_type} )
111+ GenerateNamedObjects ("symm.c" "HEMM" "hemm" ${CBLAS_FLAG} "" "" false ${float_type} )
112+ GenerateNamedObjects ("syrk.c" "HEMM" "herk" ${CBLAS_FLAG} "" "" false ${float_type} )
113+ GenerateNamedObjects ("syr2k.c" "HEMM" "her2k" ${CBLAS_FLAG} "" "" false ${float_type} )
115114
116115 if (USE_GEMM3M)
117116 GenerateNamedObjects ("gemm.c" "GEMM3M" "gemm3m" false "" "" false ${float_type} )
118117 endif ()
119118 endif ()
120119 if (${float_type} STREQUAL "COMPLEX" )
121- GenerateNamedObjects ("zscal.c" "SSCAL" "sscal" false "" "" false "COMPLEX" )
122- GenerateNamedObjects ("nrm2.c" "" "scnrm2" false "" "" true "COMPLEX" )
123- GenerateNamedObjects ("zrot.c" "" "csrot" false "" "" true "COMPLEX" )
124- GenerateNamedObjects ("max.c" "USE_ABS;USE_MIN" "scamin" false "" "" true "COMPLEX" )
125- GenerateNamedObjects ("max.c" "USE_ABS" "scamax" false "" "" true "COMPLEX" )
126- GenerateNamedObjects ("asum.c" "" "scasum" false "" "" true "COMPLEX" )
120+ GenerateNamedObjects ("zscal.c" "SSCAL" "sscal" ${CBLAS_FLAG} "" "" false "COMPLEX" )
121+ GenerateNamedObjects ("nrm2.c" "" "scnrm2" ${CBLAS_FLAG} "" "" true "COMPLEX" )
122+ GenerateNamedObjects ("zrot.c" "" "csrot" ${CBLAS_FLAG} "" "" true "COMPLEX" )
123+ GenerateNamedObjects ("max.c" "USE_ABS;USE_MIN" "scamin" ${CBLAS_FLAG} "" "" true "COMPLEX" )
124+ GenerateNamedObjects ("max.c" "USE_ABS" "scamax" ${CBLAS_FLAG} "" "" true "COMPLEX" )
125+ GenerateNamedObjects ("asum.c" "" "scasum" ${CBLAS_FLAG} "" "" true "COMPLEX" )
127126 endif ()
128127 if (${float_type} STREQUAL "ZCOMPLEX" )
129- GenerateNamedObjects ("zscal.c" "SSCAL" "dscal" false "" "" false "ZCOMPLEX" )
130- GenerateNamedObjects ("nrm2.c" "" "dznrm2" false "" "" true "ZCOMPLEX" )
131- GenerateNamedObjects ("zrot.c" "" "zdrot" false "" "" true "ZCOMPLEX" )
132- GenerateNamedObjects ("max.c" "USE_ABS;USE_MIN" "dzamin" false "" "" true "ZCOMPLEX" )
133- GenerateNamedObjects ("max.c" "USE_ABS" "dzamax" false "" "" true "ZCOMPLEX" )
134- GenerateNamedObjects ("asum.c" "" "dzasum" false "" "" true "ZCOMPLEX" )
128+ GenerateNamedObjects ("zscal.c" "SSCAL" "dscal" ${CBLAS_FLAG} "" "" false "ZCOMPLEX" )
129+ GenerateNamedObjects ("nrm2.c" "" "dznrm2" ${CBLAS_FLAG} "" "" true "ZCOMPLEX" )
130+ GenerateNamedObjects ("zrot.c" "" "zdrot" ${CBLAS_FLAG} "" "" true "ZCOMPLEX" )
131+ GenerateNamedObjects ("max.c" "USE_ABS;USE_MIN" "dzamin" ${CBLAS_FLAG} "" "" true "ZCOMPLEX" )
132+ GenerateNamedObjects ("max.c" "USE_ABS" "dzamax" ${CBLAS_FLAG} "" "" true "ZCOMPLEX" )
133+ GenerateNamedObjects ("asum.c" "" "dzasum" ${CBLAS_FLAG} "" "" true "ZCOMPLEX" )
135134 endif ()
136135endforeach ()
137136
137+ endforeach ()
138+
139+ #Special functions for CBLAS
140+ if (NOT DEFINED NO_CBLAS)
141+ foreach (float_type ${FLOAT_TYPES} )
142+ if (${float_type} STREQUAL "COMPLEX" OR ${float_type} STREQUAL "ZCOMPLEX" )
143+ #cblas_dotc_sub cblas_dotu_sub
144+ GenerateNamedObjects ("zdot.c" "FORCE_USE_STACK" "dotu_sub" 1 "" "" false ${float_type} )
145+ GenerateNamedObjects ("zdot.c" "FORCE_USE_STACK;CONJ" "dotc_sub" 1 "" "" false ${float_type} )
146+ endif ()
147+ endforeach ()
148+ endif ()
138149
139150if (NOT DEFINED NO_LAPACK)
140151 set (LAPACK_SOURCES
0 commit comments