summaryrefslogtreecommitdiff
path: root/math/openblas
AgeCommit message (Collapse)AuthorFilesLines
2022-06-28*: recursive bump for perl 5.36wiz2-4/+4
2022-02-03math/openblas: Add Darwin-*-* to ONLY_FOR_PLATFORMbacon1-2/+2
Build tested for openblas and openblas64 on macOS Monterey Approved by thomas.orgis
2021-10-26math: Replace RMD160 checksums with BLAKE2s checksumsnia1-4/+4
All checksums have been double-checked against existing RMD160 and SHA512 hashes
2021-10-07math: Remove SHA1 hashes for distfilesnia1-4/+1
2021-06-15math/lapack, math/openblas: more inclusive 64 bit platform checkthor1-5/+3
The simple approach missed alpha.
2021-06-15mk/blas.bl3, Netlib and OpenBLAS packages, NumPy: C fixup and 64 bitsthor4-19/+44
This delivers 64 bit index BLAS libraries alongside 32 bit ones. This is often called ILP64 in the BLAS world, as opposed to LP64 where integers are 32 bit due to the Fortran default integer type, not to be confused with the basic system ABI used by C. For really large vectors on modern machines, you want an 'ILP64' BLAS and layers on top of it. In preparation of better support for vendor BLAS libraries, I had to realize that you better use the C interfaces supplied by them, not the netlib one strapped on. A simple reason of practicability: The vendor blas libraries, just like openblas, like to ship all symbols in one library, so you get them whether you want it or not. Also implementations may skip Fortran and implement the underlying functionality directly in C anyway, so one might skip a layer of indirection. Future will tell if other layers will follow. We still have the framework of individual layers from Netlib to combine with certain implementations that miss them (Accelerate framework comes to mind, which needs further work). The framework of netlib reference packages for the separate libraries is instructive and helps keeping things small when you not need all of them. The installation location of the headers is now in a subdirectory to be able to have 32 and 64 bit variants independently. The 32 bit ones are linked to ${PREFIX}/include to keep the old picture. We could be brave and remove those, but there is some value in a build just trying -lcblas and inclusion of <cblas.h> to be happy. There is one blas.buildlink3.mk that is supposed to be used only once and so avoids a combination of conflicting libraries (as the 64 bit index symbols have the same names as the 32 bit ones). Basic usage for getting LAPACK+BLAS is still the same as before. You get CBLAS and LAPACKE by setting BLAS_C_INTERFACE=yes in the package. The 64 bit indices are selected via BLAS_INDEX64=yes. Due to the special nature of the Accelerate framework, a package has to explicitly indicate support for it and it will also not appear on the list of implementations by default. The reason is that it does provide mainly CBLAS and CLAPACK (another version of C interface to LAPACK, f2c-based) and BLAS/LAPACK with f2c/g77 calling conventions. A default build with gfortran would not like that This commit also fixes up math/py-numpy and math/py-numpy16 to follow the new scheme, as that are the only packages directly affected by the change in CBLAS providership.
2021-06-07openblas: fix building on Darwinadam1-2/+2
2021-06-07openblas: fix building on Darwinadam3-10/+24
2021-05-29math/openblas: update to version 0.3.15thor12-168/+165
This includes a rework of our patchery with the hope of upstreaming a good deal of it. These are the upstream changes since 0.3.10: Version 0.3.15 2-May-2021 common: - imported improvements and bugfixes from Reference-LAPACK 3.9.1 - imported LAPACKE interface fixes from Reference-LAPACK PRs 534 + 537 - fixed a problem in the cpu detection of 0.3.14 that prevented cross-compilation - fixed a sequence problem in the generation of softlinks to the library in GMAKE RISC V: - fixed compilation on RISCV (missing entry in getarch) - fixed a potential division by zero in CROTG and ZROTG POWER: - fixed LAPACK testsuite failures seen with the NVIDIA HPC compiler - improved CGEMM, DGEMM and ZGEMM performance on POWER10 - added an optimized ZGEMV kernel for POWER10 - fixed a potential division by zero in CROTG and ZROTG x86_64: - added support for Intel Control-flow Enforcement Technology (CET) - reverted the DOMATCOPY_RT code to the generic C version - fixed a bug in the AVX512 SGEMM kernel introduced in 0.3.14 - fixed misapplication of -msse flag to non-SSE cpus in DYNAMIC_ARCH - added support for compilation of the benchmarks on older OSX versions - fix propagation of the NO_AVX512 option in CMAKE builds - fix compilation of the AVX512 SGEMM kernel with clang-cl on Windows - fixed compilation of the CTESTs with INTERFACE64=1 (random faults on OSX) - corrected the Haswell DROT kernel to require AVX2/FMA3 rather than AVX512 ARM: - fixed a potential division by zero in CROTG and ZROTG - fixed a potential overflow in IMATCOPY/ZIMATCOPY and the CTESTs ARM64: - fixed spurious reads outside the array in the SGEMM tcopy macro - fixed a potential division by zero in CROTG and ZROTG - fixed a segmentation fault in DYNAMIC_ARCH builds (reappeared in 0.3.14) MIPS - fixed a potential division by zero in CROTG and ZROTG - fixed a potential overflow in IMATCOPY/ZIMATCOPY and the CTESTs MIPS64: - fixed a potential division by zero in CROTG and ZROTG SPARC: - fixed a potential division by zero in CROTG and ZROTG ==================================================================== Version 0.3.14 17-Mar-2021 common: * Fixed a race condition on thread shutdown in non-OpenMP builds * Fixed custom BUFFERSIZE option getting ignored in gmake builds * Fixed CMAKE compilation of the TRMM kernels for GENERIC platforms * Added CBLAS interfaces for CROTG, ZROTG, CSROT and ZDROT * Improved performance of OMATCOPY_RT across all platforms * Changed perl scripts to use env instead of a hardcoded /usr/bin/perl * Fixed potential misreading of the GCC compiler version in the build scripts * Fixed convergence problems in LAPACK complex GGEV/GGES (Reference-LAPACK #477) * Reduced the stacksize requirements for running the LAPACK testsuite (Reference-LAPACK #335) RISCV: * Fixed compilation on RISCV (missing entry in getarch) POWER: * Fixed compilation for DYNAMIC_ARCH with clang and with old gcc versions * Added support for compilation on FreeBSD/ppc64le * Added optimized POWER10 kernels for SSCAL, DSCAL, CSCAL, ZSCAL * Added optimized POWER10 kernels for SROT, DROT, CDOT, SASUM, DASUM * Improved SSWAP, DSWAP, CSWAP, ZSWAP performance on POWER10 * Improved SCOPY and CCOPY performance on POWER10 * Improved SGEMM and DGEMM performance on POWER10 * Added support for compilation with the NVIDIA HPC compiler x86_64: * Added an optimized bfloat16 GEMM kernel for Cooperlake * Added CPUID autodetection for Intel Rocket Lake and Tiger Lake cpus * Improved the performance of SASUM,DASUM,SROT,DROT on AMD Ryzen cpus * Added support for compilation with the NAG Fortran compiler * Fixed recognition of the AMD AOCC compiler * Fixed compilation for DYNAMIC_ARCH with clang on Windows * Added support for running the BLAS/CBLAS tests on Windows * Fixed signatures of the tls callback functions for Windows x64 * Fixed various issues with fma intrinsics support handling ARM: * Added support for embedded Cortex M targets via a new option EMBEDDED ARMV8: * Fixed the THUNDERX2T99 and NEOVERSEN1 DNRM2/ZNRM2 kernels for inputs with Inf * Added support for the DYNAMIC_LIST option * Added support for compilation with the NVIDIA HPC compiler * Added support for compiling with the NAG Fortran compiler ==================================================================== Version 0.3.13 12-Dec-2020 common: * Added a generic bfloat16 SBGEMV kernel * Fixed a potentially severe memory leak after fork in OpenMP builds that was introduced in 0.3.12 * Added detection of the Fujitsu Fortran compiler * Added detection of the (e)gfortran compiler on OpenBSD * Added support for overriding the default name of the library independently from symbol suffixing in the gmake builds (already supported in cmake) RISCV: * Added a RISC V port optimized for C910V POWER: * Added optimized POWER10 kernels for SAXPY, CAXPY, SDOT, DDOT and DGEMV_N * Improved DGEMM performance on POWER10 * Improved STRSM and DTRSM performance on POWER9 and POWER10 * Fixed segmemtation faults in DYNAMIC_ARCH builds * Fixed compilation with the PGI compiler x86: * Fixed compilation of kernels that require SSE2 intrinsics since 0.3.12 x86_64: * Added an optimized bfloat16 SBGEMV kernel for SkylakeX and Cooperlake * Improved the performance of SASUM and DASUM kernels through parallelization * Improved the performance of SROT and DROT kernels * Improved the performance of multithreaded xSYRK * Fixed OpenMP builds that use the LLVM Clang compiler together with GNU gfortran (where linking of both the LLVM libomp and GNU libgomp could lead to lockups or wrong results) * Fixed miscompilations by old gcc 4.6 * Fixed misdetection of AVX2 capability in some Sandybridge cpus * Fixed lockups in builds combining DYNAMIC_ARCH with TARGET=GENERIC on OpenBSD ARM64: * Fixed segmemtation faults in DYNAMIC_ARCH builds MIPS: * Improved kernels for Loongson 3R3 ("3A") and 3R4 ("3B") models, including MSA * Fixed bugs in the MSA kernels for CGEMM, CTRMM, CGEMV and ZGEMV * Added handling of zero increments in the MSA kernels for SSWAP and DSWAP * Added DYNAMIC_ARCH support for MIPS64 (currently Loongson3R3/3R4 only) SPARC: * Fixed building 32 and 64 bit SPARC kernels with the SolarisStudio compilers ==================================================================== Version 0.3.12 24-Oct-2020 common: * Fixed missing BLAS/LAPACK functions (inadvertently dropped during the build system restructuring) * Fixed argument conversion macro in LAPACKE_zgesvdq (LAPACK #458) POWER: * Added optimized SCOPY/CCOPY kernels for POWER10 * Increased and unified the default size of the GEMM BUFFER * Fixed building for POWER10 in DYNAMIC_ARCH mode * POWER10 compatibility test now checks binutils version as well * Cleaned up compiler warnings x86_64: * corrected compiler version checks for AVX2 compatibility * added compiler option -mavx2 for building with flang * fixed direct SGEMM pathway for small matrix sizes (broken by the code refactoring in 0.3.11) * fixed unhandled partial register clobbers in several kernels for AXPY,DOT,GEMV_N and GEMV_T flagged by gcc10 tree-vectorizer ARMV8: * improved Apple Vortex support to include cross-compiling ==================================================================== Version 0.3.11 17-Oct-2020 common: * API change: the newly added BFLOAT16 functions were renamed to use the letter "B" instead of "H" to avoid potential confusion with the IEEE "half precision float" type, i.e. the 0.3.10 SHGEMM is now SBGEMM and the corresponding build option was changed from "BUILD_HALF" to "BUILD_BFLOAT16". * Reduced the default BLAS3_MEM_ALLOC_THRESHOLD (used as an upper limit for placing temporary arrays on the stack) to be compatible with a stack size of 1mb (as imposed by the JAVA runtime library) * Added mixed-precision dot function SBDOT and utility functions shstobf16, shdtobf16, sbf16tos and dbf16tod to convert between single or double precision float arrays and bfloat16 arrays * Fixed prototypes of LAPACK_?ggsvp and LAPACK_?ggsvd functions in lapack.h * Fixed underflow and rounding errors in LAPACK SLANV2 and DLANV2 (causing miscalculations in e.g. SHSEQR/DHSEQR, LAPACK issue #263) * Fixed workspace calculation in LAPACK ?GELQ (LAPACK issue #415) * Fixed several bugs in the LAPACK testsuite * Improved performance of TRMM and TRSM for certain problem sizes * Fixed infinite recursions and workspace miscalculations in ReLAPACK * CMAKE builds no longer require pkg-config for creating the .pc file * Makefile builds no longer misread NO_CBLAS=0 or NO_LAPACK=0 as enabling these options * Fixed detection of gfortran when invoked through an mpi wrapper * Improve thread reinitialization performance with OpenMP after a fork * Added support for building only the subset of the library required for a particular precision by specifying BUILD_SINGLE, BUILD_DOUBLE * Optional function name prefixes and suffixes are now correctly reflected in the generated cblas.h * Added CMAKE build support for the LAPACK and multithreading tests POWER: * Added optimized support for POWER10 * Added support for compiling for POWER8 in 32bit mode * Added support for compilation with LLVM/clang * Added support for compilation with NVIDIA/PGI compilers * Fixed building on big-endian POWER8 * Fixed miscompilation of ZDOTC by gcc10 * Fixed alignment errors in the POWER8 SAXPY kernel * Improved CPU detection on AIX * Supported building with older compilers on POWER9 x86_64: * Added support for Intel Cooperlake * Added autodetection of AMD Renoir/Matisse/Zen3 cpus * Added autodetection of Intel Comet Lake cpus * Reimplemented ?sum, ?dot and daxpy using universal intrinsics * Reset the fpu state before using the fpu on Windows as a workaround for a problem introduced in Windows 10 build 19041 (a.k.a. SDK 2004) * Fixed potentially undefined behaviour in the dot and gemv_t kernels * Fixed a potential segmentation fault in DYNAMIC_ARCH builds * Fixed building for ZEN with PGI/NVIDIA and AMD AOCC compilers ARMV7: * Fixed cpu detection on BSD-like systems ARMV8: * Added preliminary support for Apple Vortex cpus * Added support for the Cavium ThunderX3T110 cpu * Fixed cpu detection on BSD-like systems * Fixed compilation in -std=C18 mode IBM Z: * Added support for compiling with the clang compiler * Improved GEMM performance on Z14
2021-05-24*: recursive bump for perl 5.34wiz1-1/+2
2021-03-25openblas: update to 0.3.10, fixing build with gcc 10thor9-103/+57
Fix openblas build issues, mainly by updating to 0.3.10. This pulls in these commits from WIP (newest first): commit 3c6284cba90280bc367cf4d1d8252ae4d6e92e76 Author: Jason Bacon <bacon@NetBSD.org> Date: Thu Feb 25 11:56:13 2021 -0600 openblas: Update ONLY_FOR_PLATFORMS documentation commit 8071bf28f3ffc95af046ff3eaaac6983f4f70035 Author: Jason Bacon <bacon@NetBSD.org> Date: Thu Feb 25 11:51:32 2021 -0600 openblas*: Successful build on NetBSD commit 056e3d5c972a4b286e8755dbee323a9951855165 Author: Dr. Thomas Orgis <thomas.orgis@uni-hamburg.de> Date: Wed Feb 24 18:40:17 2021 +0100 openblas: flags from environment again to un-break PICy build The bug that prompted us to force the compiler flags in the make arguments is fixed. Now we got a different one: The logic that decides to add -fPIC where needed is overridden when doing this, resulting in relocation errors (strangely, not with every toolchain). So let's remove that again and take FFLAGS and friends from the environment again. commit 86af17db8526e629c2c02c6af1f1ce7db6f6ba6d Author: Dr. Thomas Orgis <thomas.orgis@uni-hamburg.de> Date: Thu Nov 12 12:44:39 2020 +0100 openblas: version 0.3.10 This updated fixes the build with gcc 10 (segfault in cblat1 test). I did not go all the way to the current 0.3.12, as that would need some hacking of chosen compiler flags. 0.3.13 should be the next one. This commit also fixes the ARCH → ARCH_ sed to change all occurences on a line. This fulfills pkg/55999 and was approved by wiz during freeze.
2020-11-05math/openblas: import openblas-0.3.7bacon21-0/+578
OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version. OpenBLAS is an open source project supported by Lab of Parallel Software and Computational Science, ISCAS. This package builds the serial library. Needs patching and testing on platforms besides Linux