Commit Graph
56 Commits
Author SHA1 Message Date
NAKATA Maho ac82605ea9 refactor: rename ABS1 statement function to CABS1 for consistency
Several LAPACK, BLAS, and CBLAS source files defined a local statement
function named ABS1 for the complex 1-norm approximation:

    ABS1( X ) = ABS( REAL( X ) ) + ABS( AIMAG( X ) )
    ABS1( X ) = ABS( DBLE( X ) ) + ABS( DIMAG( X ) )

The majority of the codebase already uses CABS1 for this identical
purpose. This commit renames ABS1 to CABS1 in all remaining files
(definition line, declaration line, and all call sites within the
same file) to make the naming consistent across the repository.

A small number of fixed-form lines required continuation-line splits
to stay within the 72-column limit after the rename.

No numerical change. Statement functions are file-local in Fortran,
so there is no ABI or interface impact.

This is a preparatory cleanup before inlining these statement
functions (see issue #1200).
2026-03-28 14:46:42 +09:00
Mark Gates 0dddb40aaf fix indentation 2026-03-24 20:43:58 -04:00
sh-zheng fc2a4fd659 Add skew-symmetric cblas subroutines and tests 2025-11-27 01:15:36 +08:00
Simon Maertens 9630b23c4f Fixed FORMAT lines that were longerthan 72 characters 2025-10-02 16:42:00 +02:00
langou 6b92a7affa Merge pull request #1048 from grisuthedragon/implement-axpby 2025-09-19 09:11:21 -06:00
Mark Gates 83ed564b46 implicit none in CBLAS 2025-08-26 23:27:58 -04:00
Martin Köhler 426641c372 Fix wrong calls do dchk6 and schk6 and string length in xerbla 2025-07-30 10:40:41 +02:00
Martin Köhler e3951fbc25 fix linkage of cblas_xerbla 2025-07-29 15:47:57 +02:00
Martin Köhler 0ab775d65b Merge branch 'master' into implement-axpby 2025-06-17 09:11:54 +02:00
Martin Köhler 3e9035955f Add typecasts to outputs 2025-04-23 23:38:11 +02:00
Martin Köhler a077ce6f53 Fix warnings in CBLAS testing and examples 2025-04-23 23:27:09 +02:00
Martin Köhler 4b9693f8f1 Add CBLAS for AXPBY 2024-08-26 16:27:18 +02:00
Martin Köhler 34adaba0e6 Add tests for cblas_s/d/zgemmtr 2024-06-24 15:18:22 +02:00
Martin Köhler 85717807e9 Working error tests on cblas_cgemmtr 2024-06-24 15:12:49 +02:00
Martin Köhler 63d2b3af58 add cblas_sgemmtr tests 2024-06-24 14:04:03 +02:00
Martin Köhler b681b1eaec Add cblas_dgemmtr test 2024-06-24 14:04:03 +02:00
Martin Köhler b721a55048 Working CBLAS_ZGEMMTR Test 2024-06-24 14:04:03 +02:00
Martin Köhler 60d0e76444 Adding cblas_zgemmtr test 2024-06-24 14:04:03 +02:00
Martin Köhler f9ea71ef3d Fix missing arguments in tests 2024-06-24 14:04:03 +02:00
Martin Köhler 81b3767a5a Change xGEMMT to xGEMMTR in CBLAS/ 2024-06-24 14:04:03 +02:00
Martin Köhler 630fb5b85c Tests for cblas_cgemmt 2024-06-24 14:04:02 +02:00
Simon Maertens 51219d2328 Fixed use of F77_xerbla in CBLAS testing framework 2024-06-19 19:31:04 +01:00
Simon Maertens 4f504e0236 Fixed use of F77_xerbla in CBLAS testing framework 2024-06-19 19:29:01 +01:00
Simon Maertens f47a8708b9 Added missing FORTRAN_STRLEN arguments in CBLAS testting framework 2024-06-19 18:58:50 +01:00
Weslley S Pereira 633440e5d5 Adds tests for windows-latest on cmake.yml 2023-05-24 17:25:42 -06:00
Sébastien Villemot 776a0223b0 Fix CBLAS tests with 64-bit indexing
This patch replaces all instances of “int” by “CBLAS_INT” in CBLAS/testing/*.c
(except for RowMajorStrg which has must remain an “int”, since it is declared
as such in CBLAS main code).

Interestingly, the bug would not manifest on low endian architectures,
because interpreting an int64_t pointer as an int32_t pointer works there (as
long as the integers fits in 31 bits, which is the case here). But on big
endian architectures, this of course fails badly.
2022-11-27 13:18:46 +01:00
Simon Maertens e7afed35fb Fixed usage of HAS_ATTRIBUTE_WEAK_SUPPORT. Formatted cblas_f77.h 2022-11-19 21:25:15 +01:00
Simon Maertens 86d37075ed Fixed CBLAS integer formats for 64bit build. 2022-08-08 16:41:04 +02:00
weslley.spereira 29c946d743 First attempt in getting (back) CBLAS_INDEX and CBLAS_INT integer types 2021-06-23 18:50:47 -03:00
langou acbf97050f Merge pull request #499 from epsilon-0/master
fix redundant install of cblas_test.h
2021-04-06 09:03:48 -06:00
Dmitry Kalinkin b4123cbc5d cblas: don't use link_xerbla hack if weak symbols are available 2021-03-18 15:02:06 -04:00
Aisha Tammy 0095825b56 fix redundant install of cblas_test.h
Signed-off-by: Aisha Tammy <gentoo@aisha.cc>
2021-02-26 22:31:42 +00:00
Aisha Tammy 5dd47be672 create INDEX64 target 2020-11-03 17:14:48 +00:00
Aisha Tammy 41779680d1 enable building the cblas64 library
changes all function signatures to use CBLAS_INDEX
also fixes internal variables to be CBLAS_INDEX
all tests are passing
2020-10-27 18:16:18 +00:00
Kyle Guinn dd2f632f2e Add PHONY targets 2019-07-27 23:07:37 -05:00
Kyle Guinn be23965929 Handle relative paths consistently
Place built libraries in $(TOPSRCDIR) and refer to their location by
using $(TOPSRCDIR).
2019-07-27 18:48:52 -05:00
Kyle Guinn 33258cb4b2 Switch to POSIX make variable names
Allows us to use the built-in suffix rules where appropriate.

  FORTRAN   -> FC            (POSIX)
  OPTS      -> FFLAGS        (POSIX)
  DRVOPTS   -> FFLAGS_DRV
  NOOPT     -> FFLAGS_NOOPT

  LOADER    -> FC            (use the compiler driver for linking)
  LOADOPTS  -> LDFLAGS       (POSIX)

  ARCH      -> AR            (POSIX)
  ARCHFLAGS -> ARFLAGS       (POSIX)
2019-07-27 18:48:52 -05:00
luzpaz 3fac41ca28 Fix misc. typos
Mostly trivial source code comments.
2017-12-01 06:55:48 -05:00
Kyle Guinn 8fce0e24bd Simplify the clean targets
cleanobj:  Remove object files
cleanlib:  Remove libraries
cleanexe:  Remove test and example executables
cleantest: Remove test output and core dumps
clean:     All of the above
2017-02-06 01:07:10 -06:00
Kyle Guinn 9746cd7d82 Fix missing or unnecessary prerequisites 2017-02-05 02:54:37 -06:00
Kyle Guinn a203318e67 Add libraries as prerequisites
Use the automatic variable $^ to refer to all prerequisites when
linking or creating an archive.
2017-02-04 22:47:19 -06:00
Kyle Guinn d91ece25a2 Update comments 2017-02-04 21:38:42 -06:00
Kyle Guinn 0ebb712165 Fix overlinking CBLAS dependencies 2017-02-02 00:28:38 -06:00
Julie 3f23bd5d53 merging: Various cleanups to makefiles #84
Contribution by @turboencabulator
Closing #84
2016-11-25 17:03:13 -08:00
Julie 64f91f2de5 Remove duplicate definitions
#67 by turboencabulator
2016-10-23 15:46:50 -07:00
Julien Schueller 0f063f0d76 Fix CBLAS testing 2016-08-23 16:38:38 +02:00
Julien Langou 7fb63b1cd3 Making FORTRAN compilers happy. Replacing STEMP by STEMP(1) in some subroutine
calls.  Reported by Hans Johnson. Thanks Hans.  Julien.
2016-07-11 09:15:44 -06:00
Hans Johnson 5333ddd9dc Remove CMake-language block-end command arguments
Ancient versions of CMake required else(), endif(), and similar block
termination commands to have arguments matching the command starting the
block.  This is no longer the preferred style.

NOTE: MUST USE GNU compliant version of sed
Run the following shell code:

for c in else endif endforeach endfunction endmacro endwhile; do
    echo 's/\b'"$c"'\(\s*\)(.\+)/'"$c"'\1()/'
done >convert.sed \
&& git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' \
   | xargs -0 gsed -i -f convert.sed \
&& rm convert.sed
2016-07-10 14:38:48 -05:00
Hans Johnson b1e0d47edc STYLE: Convert CMake-language commands to lower case
Ancient CMake versions required upper-case commands.  Later command
names became case-insensitive.  Now the preferred style is lower-case.

Run the following shell code:
NOTE: MUST USE GNU compliant version of sed

cmake --help-command-list \
| grep -v "cmake version" \
| while read c; do
    echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g'
  done >convert.sed \
&& git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' \
   | xargs -0 gsed -i -f convert.sed \
&& rm convert.sed
2016-07-10 14:37:46 -05:00
Hans Johnson 9dafba6d41 STYLE: Remove trailing whitespace in Fortran files
This is mostly a long term maintenance improvement.

Many coding styles require elimination of trailing whitespace, and
many editors and source code management configurations automatically
gobble up whitespace. When these tools gobble up whitespace, it
complicates reviewing the meaningful code changes.

By removing whitespace on one patch, it makes future
code reviews much easier.

=SCRIPT====================================================================

if which tempfile &>/dev/null; then
  TEMPMAKER=tempfile
elif which mktemp &>/dev/null; then
  TEMPMAKER=mktemp
else
  echo "Cannot find tempfile program." 2>&1
  exit 1
fi

MYTEMP=$($TEMPMAKER)
trap 'rm -f $MYTEMP' SIGINT SIGTERM

stripit() {
  echo "stripping $1"
  sed 's/[ \t]*$//' "$1" > $MYTEMP
  cp $MYTEMP "$1"
}

if [ $# -gt 0 ]; then
  while [ "$1" != "" ]; do
    stripit $1
    shift
  done
else
  while read -t 2; do
    stripit $REPLY
  done
fi

rm $MYTEMP
=================================================
2016-07-09 11:19:34 -05:00