-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4438 from Dirreke/csky-support
Add CSKY support
- Loading branch information
Showing
15 changed files
with
325 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
ifeq ($(CORE), CK860FV) | ||
CCOMMON_OPT += -march=ck860v -mcpu=ck860fv -mfdivdu -mhard-float | ||
FCOMMON_OPT += -march=ck860v -mcpu=ck860fv -mfdivdu -mhard-float -static | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -133,3 +133,7 @@ E2K | |
EV4 | ||
EV5 | ||
EV6 | ||
|
||
14.CSKY | ||
CSKY | ||
CK860FV |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/***************************************************************************** | ||
Copyright (c) 2011-2015, The OpenBLAS Project | ||
All rights reserved. | ||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are | ||
met: | ||
1. Redistributions of source code must retain the above copyright | ||
notice, this list of conditions and the following disclaimer. | ||
2. Redistributions in binary form must reproduce the above copyright | ||
notice, this list of conditions and the following disclaimer in | ||
the documentation and/or other materials provided with the | ||
distribution. | ||
3. Neither the name of the OpenBLAS project nor the names of | ||
its contributors may be used to endorse or promote products | ||
derived from this software without specific prior written | ||
permission. | ||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE | ||
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | ||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE | ||
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
**********************************************************************************/ | ||
|
||
#ifndef COMMON_CSKY | ||
#define COMMON_CSKY | ||
|
||
#define MB __sync_synchronize() | ||
#define WMB __sync_synchronize() | ||
#define RMB __sync_synchronize() | ||
|
||
#define INLINE inline | ||
|
||
#ifndef ASSEMBLER | ||
|
||
|
||
static inline int blas_quickdivide(blasint x, blasint y){ | ||
return x / y; | ||
} | ||
|
||
#endif | ||
|
||
|
||
|
||
#define BUFFER_SIZE ( 32 << 20) | ||
#define SEEK_ADDRESS | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,149 @@ | ||
SAMAXKERNEL = ../arm/amax.c | ||
DAMAXKERNEL = ../arm/amax.c | ||
CAMAXKERNEL = ../arm/zamax.c | ||
ZAMAXKERNEL = ../arm/zamax.c | ||
|
||
SAMINKERNEL = ../arm/amin.c | ||
DAMINKERNEL = ../arm/amin.c | ||
CAMINKERNEL = ../arm/zamin.c | ||
ZAMINKERNEL = ../arm/zamin.c | ||
|
||
SMAXKERNEL = ../arm/max.c | ||
DMAXKERNEL = ../arm/max.c | ||
|
||
SMINKERNEL = ../arm/min.c | ||
DMINKERNEL = ../arm/min.c | ||
|
||
ISAMAXKERNEL = ../arm/iamax.c | ||
IDAMAXKERNEL = ../arm/iamax.c | ||
ICAMAXKERNEL = ../arm/izamax.c | ||
IZAMAXKERNEL = ../arm/izamax.c | ||
|
||
ISAMINKERNEL = ../arm/iamin.c | ||
IDAMINKERNEL = ../arm/iamin.c | ||
ICAMINKERNEL = ../arm/izamin.c | ||
IZAMINKERNEL = ../arm/izamin.c | ||
|
||
ISMAXKERNEL = ../arm/imax.c | ||
IDMAXKERNEL = ../arm/imax.c | ||
|
||
ISMINKERNEL = ../arm/imin.c | ||
IDMINKERNEL = ../arm/imin.c | ||
|
||
SASUMKERNEL = ../arm/asum.c | ||
DASUMKERNEL = ../arm/asum.c | ||
CASUMKERNEL = ../arm/zasum.c | ||
ZASUMKERNEL = ../arm/zasum.c | ||
|
||
SSUMKERNEL = ../arm/sum.c | ||
DSUMKERNEL = ../arm/sum.c | ||
CSUMKERNEL = ../arm/zsum.c | ||
ZSUMKERNEL = ../arm/zsum.c | ||
|
||
SAXPYKERNEL = ../arm/axpy.c | ||
DAXPYKERNEL = ../arm/axpy.c | ||
CAXPYKERNEL = ../arm/zaxpy.c | ||
ZAXPYKERNEL = ../arm/zaxpy.c | ||
|
||
SCOPYKERNEL = ../arm/copy.c | ||
DCOPYKERNEL = ../arm/copy.c | ||
CCOPYKERNEL = ../arm/zcopy.c | ||
ZCOPYKERNEL = ../arm/zcopy.c | ||
|
||
SDOTKERNEL = ../arm/dot.c | ||
DDOTKERNEL = ../arm/dot.c | ||
CDOTKERNEL = ../arm/zdot.c | ||
ZDOTKERNEL = ../arm/zdot.c | ||
DSDOTKERNEL = ../generic/dot.c | ||
|
||
SNRM2KERNEL = ../arm/nrm2.c | ||
DNRM2KERNEL = ../arm/nrm2.c | ||
CNRM2KERNEL = ../arm/znrm2.c | ||
ZNRM2KERNEL = ../arm/znrm2.c | ||
|
||
SROTKERNEL = ../arm/rot.c | ||
DROTKERNEL = ../arm/rot.c | ||
CROTKERNEL = ../arm/zrot.c | ||
ZROTKERNEL = ../arm/zrot.c | ||
|
||
SSCALKERNEL = ../arm/scal.c | ||
DSCALKERNEL = ../arm/scal.c | ||
CSCALKERNEL = ../arm/zscal.c | ||
ZSCALKERNEL = ../arm/zscal.c | ||
|
||
SSWAPKERNEL = ../arm/swap.c | ||
DSWAPKERNEL = ../arm/swap.c | ||
CSWAPKERNEL = ../arm/zswap.c | ||
ZSWAPKERNEL = ../arm/zswap.c | ||
|
||
SGEMVNKERNEL = ../arm/gemv_n.c | ||
DGEMVNKERNEL = ../arm/gemv_n.c | ||
CGEMVNKERNEL = ../arm/zgemv_n.c | ||
ZGEMVNKERNEL = ../arm/zgemv_n.c | ||
|
||
SGEMVTKERNEL = ../arm/gemv_t.c | ||
DGEMVTKERNEL = ../arm/gemv_t.c | ||
CGEMVTKERNEL = ../arm/zgemv_t.c | ||
ZGEMVTKERNEL = ../arm/zgemv_t.c | ||
|
||
STRMMKERNEL = ../generic/trmmkernel_2x2.c | ||
DTRMMKERNEL = ../generic/trmmkernel_2x2.c | ||
CTRMMKERNEL = ../generic/ztrmmkernel_2x2.c | ||
ZTRMMKERNEL = ../generic/ztrmmkernel_2x2.c | ||
|
||
SGEMMKERNEL = ../generic/gemmkernel_2x2.c | ||
SGEMMONCOPY = ../generic/gemm_ncopy_2.c | ||
SGEMMOTCOPY = ../generic/gemm_tcopy_2.c | ||
SGEMMONCOPYOBJ = sgemm_oncopy$(TSUFFIX).$(SUFFIX) | ||
SGEMMOTCOPYOBJ = sgemm_otcopy$(TSUFFIX).$(SUFFIX) | ||
|
||
DGEMMKERNEL = ../generic/gemmkernel_2x2.c | ||
DGEMMONCOPY = ../generic/gemm_ncopy_2.c | ||
DGEMMOTCOPY = ../generic/gemm_tcopy_2.c | ||
DGEMMONCOPYOBJ = dgemm_oncopy$(TSUFFIX).$(SUFFIX) | ||
DGEMMOTCOPYOBJ = dgemm_otcopy$(TSUFFIX).$(SUFFIX) | ||
|
||
CGEMMKERNEL = ../generic/zgemmkernel_2x2.c | ||
CGEMMONCOPY = ../generic/zgemm_ncopy_2.c | ||
CGEMMOTCOPY = ../generic/zgemm_tcopy_2.c | ||
CGEMMONCOPYOBJ = cgemm_oncopy$(TSUFFIX).$(SUFFIX) | ||
CGEMMOTCOPYOBJ = cgemm_otcopy$(TSUFFIX).$(SUFFIX) | ||
|
||
ZGEMMKERNEL = ../generic/zgemmkernel_2x2.c | ||
ZGEMMONCOPY = ../generic/zgemm_ncopy_2.c | ||
ZGEMMOTCOPY = ../generic/zgemm_tcopy_2.c | ||
ZGEMMONCOPYOBJ = zgemm_oncopy$(TSUFFIX).$(SUFFIX) | ||
ZGEMMOTCOPYOBJ = zgemm_otcopy$(TSUFFIX).$(SUFFIX) | ||
|
||
STRSMKERNEL_LN = ../generic/trsm_kernel_LN.c | ||
STRSMKERNEL_LT = ../generic/trsm_kernel_LT.c | ||
STRSMKERNEL_RN = ../generic/trsm_kernel_RN.c | ||
STRSMKERNEL_RT = ../generic/trsm_kernel_RT.c | ||
|
||
DTRSMKERNEL_LN = ../generic/trsm_kernel_LN.c | ||
DTRSMKERNEL_LT = ../generic/trsm_kernel_LT.c | ||
DTRSMKERNEL_RN = ../generic/trsm_kernel_RN.c | ||
DTRSMKERNEL_RT = ../generic/trsm_kernel_RT.c | ||
|
||
CTRSMKERNEL_LN = ../generic/trsm_kernel_LN.c | ||
CTRSMKERNEL_LT = ../generic/trsm_kernel_LT.c | ||
CTRSMKERNEL_RN = ../generic/trsm_kernel_RN.c | ||
CTRSMKERNEL_RT = ../generic/trsm_kernel_RT.c | ||
|
||
ZTRSMKERNEL_LN = ../generic/trsm_kernel_LN.c | ||
ZTRSMKERNEL_LT = ../generic/trsm_kernel_LT.c | ||
ZTRSMKERNEL_RN = ../generic/trsm_kernel_RN.c | ||
ZTRSMKERNEL_RT = ../generic/trsm_kernel_RT.c | ||
|
||
|
||
SCABS_KERNEL = ../generic/cabs.c | ||
DCABS_KERNEL = ../generic/cabs.c | ||
QCABS_KERNEL = ../generic/cabs.c | ||
LSAME_KERNEL = ../generic/lsame.c | ||
|
||
SGEMM_BETA = ../generic/gemm_beta.c | ||
DGEMM_BETA = ../generic/gemm_beta.c | ||
CGEMM_BETA = ../generic/zgemm_beta.c | ||
ZGEMM_BETA = ../generic/zgemm_beta.c | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
clean :: |
Oops, something went wrong.