summaryrefslogtreecommitdiff
path: root/cmake/kernel.cmake
diff options
context:
space:
mode:
authorHank Anderson <hank.p.anderson@gmail.com>2015-02-17 21:36:23 -0600
committerHank Anderson <hank.p.anderson@gmail.com>2015-02-17 21:36:23 -0600
commit33c5e8db7f60035c748dc1aac370775025936a34 (patch)
tree1cf89736fc9b63b0505c7a5994874756669af62a /cmake/kernel.cmake
parent67e39bd8fb797cc420b191780fa4ae3ae00792ff (diff)
downloadopenblas-33c5e8db7f60035c748dc1aac370775025936a34.tar.gz
openblas-33c5e8db7f60035c748dc1aac370775025936a34.tar.bz2
openblas-33c5e8db7f60035c748dc1aac370775025936a34.zip
Added a helper function for setting the L1 kernel defaults.
Added loop to build objects with different KERNEL defines.
Diffstat (limited to 'cmake/kernel.cmake')
-rw-r--r--cmake/kernel.cmake110
1 files changed, 110 insertions, 0 deletions
diff --git a/cmake/kernel.cmake b/cmake/kernel.cmake
new file mode 100644
index 000000000..211da229d
--- /dev/null
+++ b/cmake/kernel.cmake
@@ -0,0 +1,110 @@
+# helper functions for the kernel CMakeLists.txt
+
+
+# Set the default filenames for L1 objects. Most of these will be overriden by the appropriate KERNEL file.
+macro(SetDefaultL1)
+ set(SAMAXKERNEL amax.S)
+ set(DAMAXKERNEL amax.S)
+ set(QAMAXKERNEL amax.S)
+ set(CAMAXKERNEL zamax.S)
+ set(ZAMAXKERNEL zamax.S)
+ set(XAMAXKERNEL zamax.S)
+ set(SAMINKERNEL amin.S)
+ set(DAMINKERNEL amin.S)
+ set(QAMINKERNEL amin.S)
+ set(CAMINKERNEL zamin.S)
+ set(ZAMINKERNEL zamin.S)
+ set(XAMINKERNEL zamin.S)
+ set(SMAXKERNEL max.S)
+ set(DMAXKERNEL max.S)
+ set(QMAXKERNEL max.S)
+ set(SMINKERNEL min.S)
+ set(DMINKERNEL min.S)
+ set(QMINKERNEL min.S)
+ set(ISAMAXKERNEL iamax.S)
+ set(IDAMAXKERNEL iamax.S)
+ set(IQAMAXKERNEL iamax.S)
+ set(ICAMAXKERNEL izamax.S)
+ set(IZAMAXKERNEL izamax.S)
+ set(IXAMAXKERNEL izamax.S)
+ set(ISAMINKERNEL iamin.S)
+ set(IDAMINKERNEL iamin.S)
+ set(IQAMINKERNEL iamin.S)
+ set(ICAMINKERNEL izamin.S)
+ set(IZAMINKERNEL izamin.S)
+ set(IXAMINKERNEL izamin.S)
+ set(ISMAXKERNEL iamax.S)
+ set(IDMAXKERNEL iamax.S)
+ set(IQMAXKERNEL iamax.S)
+ set(ISMINKERNEL iamin.S)
+ set(IDMINKERNEL iamin.S)
+ set(IQMINKERNEL iamin.S)
+ set(SASUMKERNEL asum.S)
+ set(DASUMKERNEL asum.S)
+ set(CASUMKERNEL zasum.S)
+ set(ZASUMKERNEL zasum.S)
+ set(QASUMKERNEL asum.S)
+ set(XASUMKERNEL zasum.S)
+ set(SAXPYKERNEL axpy.S)
+ set(DAXPYKERNEL axpy.S)
+ set(CAXPYKERNEL zaxpy.S)
+ set(ZAXPYKERNEL zaxpy.S)
+ set(QAXPYKERNEL axpy.S)
+ set(XAXPYKERNEL zaxpy.S)
+ set(SCOPYKERNEL copy.S)
+ set(DCOPYKERNEL copy.S)
+ set(CCOPYKERNEL zcopy.S)
+ set(ZCOPYKERNEL zcopy.S)
+ set(QCOPYKERNEL copy.S)
+ set(XCOPYKERNEL zcopy.S)
+ set(SDOTKERNEL dot.S)
+ set(DDOTKERNEL dot.S)
+ set(CDOTKERNEL zdot.S)
+ set(ZDOTKERNEL zdot.S)
+ set(QDOTKERNEL dot.S)
+ set(XDOTKERNEL zdot.S)
+ set(SNRM2KERNEL nrm2.S)
+ set(DNRM2KERNEL nrm2.S)
+ set(QNRM2KERNEL nrm2.S)
+ set(CNRM2KERNEL znrm2.S)
+ set(ZNRM2KERNEL znrm2.S)
+ set(XNRM2KERNEL znrm2.S)
+ set(SROTKERNEL rot.S)
+ set(DROTKERNEL rot.S)
+ set(QROTKERNEL rot.S)
+ set(CROTKERNEL zrot.S)
+ set(ZROTKERNEL zrot.S)
+ set(XROTKERNEL zrot.S)
+ set(SSCALKERNEL scal.S)
+ set(DSCALKERNEL scal.S)
+ set(CSCALKERNEL zscal.S)
+ set(ZSCALKERNEL zscal.S)
+ set(QSCALKERNEL scal.S)
+ set(XSCALKERNEL zscal.S)
+ set(SSWAPKERNEL swap.S)
+ set(DSWAPKERNEL swap.S)
+ set(CSWAPKERNEL zswap.S)
+ set(ZSWAPKERNEL zswap.S)
+ set(QSWAPKERNEL swap.S)
+ set(XSWAPKERNEL zswap.S)
+ set(SGEMVNKERNEL gemv_n.S)
+ set(SGEMVTKERNEL gemv_t.S)
+ set(DGEMVNKERNEL gemv_n.S)
+ set(DGEMVTKERNEL gemv_t.S)
+ set(CGEMVNKERNEL zgemv_n.S)
+ set(CGEMVTKERNEL zgemv_t.S)
+ set(ZGEMVNKERNEL zgemv_n.S)
+ set(ZGEMVTKERNEL zgemv_t.S)
+ set(QGEMVNKERNEL gemv_n.S)
+ set(QGEMVTKERNEL gemv_t.S)
+ set(XGEMVNKERNEL zgemv_n.S)
+ set(XGEMVTKERNEL zgemv_t.S)
+ set(SCABS_KERNEL cabs.S)
+ set(DCABS_KERNEL cabs.S)
+ set(QCABS_KERNEL cabs.S)
+ set(LSAME_KERNEL lsame.S)
+ set(SAXPBYKERNEL ../arm/axpby.c)
+ set(DAXPBYKERNEL ../arm/axpby.c)
+ set(CAXPBYKERNEL ../arm/zaxpby.c)
+ set(ZAXPBYKERNEL ../arm/zaxpby.c)
+endmacro ()