Martin Kroeker
7a96908d0c
Add -lgomp when IBM xlf is combined with gcc in OPENMP builds
2023-09-24 10:18:24 +02:00
Aiden Grossman
b209915121
Fix build with clang
...
There are two instances when building the tests where OpenBLAS fails to
build with OpenMP and clang due to library paths getting reset as flags
are set rather than appended. This seems to only affect certain
clang/libomp installations, but if it's already grabbing the correct
library paths we might as well use them.
2023-07-28 12:59:44 -07:00
Martin Kroeker
91110f92d2
fix missing return type in function declaration
2022-09-14 14:03:31 +02:00
Pablo Romero
84a5f0e2eb
Fixes #3743 .
2022-08-26 11:44:11 +02:00
Isuru Fernando
d54971fe20
Fix building tests when NOFORTRAN is not given at all
2022-08-08 11:20:38 -05:00
Martin Kroeker
6e018b84c4
Fix function prototypes and INTERFACE64 support
2022-07-12 19:37:30 +02:00
Martin Kroeker
ccd87cc472
Fix switching between Fortran and C build
2022-07-12 19:35:31 +02:00
Martin Kroeker
914c4d0fe8
Add C versions of the CBLAS test sources ( #3656 )
...
* Add C conversions of the CBLAS tests for NOFORTRAN=1 builds
* Enable CTEST without Fortran and fix passing of BUILD_vartype options to exports/gensymbol
2022-06-28 11:52:48 +02:00
Martin Kroeker
e78fbe4654
Disable gfortran tree vectorizer to avoid gcc11+ miscompilation at O3
2021-07-30 14:44:54 +02:00
Martin Kroeker
cbc41973fd
Disable gfortran tree vectorizer to avoid gcc11+ miscompilation at O3
2021-07-30 14:20:12 +02:00
Martin Kroeker
98ebc8ac59
Add casts to prevent overflow of intermediate result
2021-05-01 14:48:19 +02:00
Martin Kroeker
751d127d7c
Include cblas_test.h to achieve int/long size change with INTERFACE64
2021-04-19 22:26:34 +02:00
Martin Kroeker
30d835168a
Merge pull request #3088 from xoviat/msvc
...
add misc fixes.
2021-03-14 17:14:28 +01:00
Martin Kroeker
041a26fd79
Support compilation with nagfor
2021-03-11 11:52:29 +01:00
xoviat
457ccc42c9
Merge branch 'develop' into msvc
2021-01-27 14:15:59 -06:00
Martin Kroeker
8a6b17f97d
Change ifndefs to ifneq
2020-11-22 16:19:31 +01:00
Martin Kroeker
437b7fe261
sh prefix renamed to sb
2020-10-13 19:55:14 +02:00
Martin Kroeker
f6d2827d0c
Adapt ctests to having only a subset of types in the build
2020-10-11 14:32:00 +02:00
Martin Kroeker
de139337b8
Remove spurious tests for complex ASUM and NRM2
2020-09-13 22:20:41 +02:00
Martin Kroeker
74e358bcd5
Remove spurious complex16 tests
2020-09-13 21:49:01 +02:00
Rajalakshmi Srinivasaraghavan
22bb50fb81
cmake fixes
2020-04-17 13:35:17 -05:00
shengyang
50f4fb2fbd
add ctest for drotm and modified ctest for drot.
...
make sure that test cases cover all code path when kernel uses looping unrolling.
2020-03-23 10:47:05 +08:00
shengyang
a06d78556d
add ctest for srotm and modified ctest for srot.
...
make sure that test cases cover all code path when kernel uses looping unrolling.
2020-03-18 14:17:32 +08:00
Martin Kroeker
c436e8af7b
Do not attempt to run ctest without fortran
...
The main Makefile takes care of this in the build process, but users or CI jobs may try to run this directly
2020-03-13 20:10:26 +01:00
shengyang
893e6e57c4
modified: ctest/din3 ctest/sin3
2020-01-03 10:03:33 +08:00
Martin Kroeker
351d12b94e
Fix potential spurious failure from uninitialized variable
2019-11-15 00:20:36 +01:00
Martin Kroeker
bf73aa141b
Fix potential spurious failure from uninitialized variable
2019-11-15 00:19:24 +01:00
Martin Kroeker
30efed14d1
Unset special make variables in ctest Makefile as well
2019-07-24 15:26:09 +02:00
xoviat
dbf9ad1f3d
tests: add windows compatibility
2019-05-05 13:09:39 -05:00
luz.paz
daf2fec12d
Misc. typo fixes
...
Found via `codespell -q 3 -w -L ith,als,dum,nd,amin,nto,wis,ba -S ./relapack,./kernel,./lapack-netlib`
2019-04-29 17:03:56 -04:00
Martin Kroeker
1f9e4f3193
Handle special case of gfortran+clang+OpenMP
2018-06-19 20:46:36 +02:00
Martin Kroeker
8c8313983b
Fix compiler warnings in ctest
...
Various fixes for const correctness, stray tab characters and unused labels
2017-12-03 18:19:30 +01:00
Sacha Refshauge
4474465438
Remove _static usages for tests
2017-08-20 00:13:46 +10:00
Isuru Fernando
d245caa49a
Support out-of-source build
2017-08-01 15:16:14 +05:30
John Biddiscombe
053044ae4d
Replace CMAKE_SOURCE_DIR/CMAKE_BINARY_DIR with PROJECT_SOURCE_DIR/PROJECT_BINARY_DIR
...
If OpenBLAS is built using add_subdirectory(OpenBlas) as part of another project
then the paths set by CMAKE_XXX_DIR are relative to the parent project
and not the OpenBLAS project.
2016-05-25 09:13:28 +02:00
Aleksey Kuleshov
3d50ccdc0d
allow building tests when CROSS compiling but don't run them
2016-04-26 12:36:47 +03:00
Zhang Xianyi
8f758eeff9
Refs #786 . avoid old assembly c/zgemv kernels.
2016-03-05 08:32:03 +08:00
Sébastien Villemot
04ad946fc8
Fix output descriptors of c_{s,d,c,z}blat3
...
The NTRA argument can be equal to -1 if one does not want a snapshot file
(and this is the case with sample data {s,d,c,z}in3).
The routines {S,D,C,Z}PRCN3 will try to use their first argument as an output
unit number, so we avoid calling them when NTRA < 0.
Patch originally written by Camm Maguire.
2016-01-11 11:22:17 +01:00
Sébastien Villemot
f704b8d32f
Fix CBLAS double complex level 2 tests
...
The SNAME variable contains names of C functions like "cblas_dgemv".
Apparently the code was not taking into account the 6-letter "cblas_"
prefix when determining the task to be done.
The issue does not affect c_{s,d,c}blat2.f, which use the correct
offsetting.
Patch originally written by Camm Maguire.
2016-01-11 11:15:33 +01:00
Zhang Xianyi
b809f99cee
Add CBLAS test for CMAKE.
2015-10-26 23:42:21 +08:00
Zhang Xianyi
f8eba3d548
Fixed cmake build bugs on Linux.
2015-08-11 16:25:16 -05:00
Werner Saar
9bfd267d51
bugfix for gemm3m tests
2015-05-05 11:58:59 +02:00
Werner Saar
924bc5372e
removed gemm3m functions from normal checks
2015-05-05 11:39:43 +02:00
wernsaar
7f234f8ed1
added GEMM3M tests
2014-09-21 10:55:08 +02:00
Timothy Gu
6c2ead30f0
Remove all trailing whitespace except lapack-netlib
...
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
2014-06-27 12:05:18 -07:00
Sebastien Fabbro
9f0fb6e662
Respect user's LDFLAGS
2013-07-25 14:08:37 -07:00
Jameson Nash
d0e731e8b8
provide support for passing CFLAGS, FFLAGS, PFLAGS, FPFLAGS to make on the command line
2012-08-21 00:31:12 -04:00
Xianyi Zhang
57658a8c14
ref #62 . Added the user friendly message with USE_OPENMP=1. The users should use OMP_NUM_THREADS.
...
When OpenBLAS is compiled with USE_OPENMP=1, it ignores OPENBLAS_NUM_THREADS and GOTO_NUM_THREADS flags.Therefore, you should use OMP_NUM_THREADS.
Without setting OMP_NUM_THREADS, a process will use maximal number of threads on a computing node. Thus, if there are 2 processes on the computing node, the thread will contend against other threads on CPU cores. As a result, the application will hang.
2011-10-09 15:14:48 +08:00
Xianyi Zhang
066465af5b
Used the environment variable OPENBLAS_NUM_THREADS to set the number of threads in test.
2011-01-24 18:11:35 +00:00
Xianyi Zhang
342bbc3871
Import GotoBLAS2 1.13 BSD version codes.
2011-01-24 14:54:24 +00:00