this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #25196 from dra27/macOS-conf-openblas

Fix conf-openblas on macOS arm64 hardware, hopefully without breakages

authored by

Marcello Seri and committed by
GitHub
8b5a0a33 1d0a4a02

+84
+25
packages/conf-openblas-macOS-env/conf-openblas-macOS-env.1/opam
··· 1 + opam-version: "2.0" 2 + maintainer: "David Allsopp" 3 + authors: [ "David Allsopp" ] 4 + homepage: "https://opam.ocaml.org" 5 + bug-reports: "https://github.com/ocaml/opam-repository/issues" 6 + license: "ISC" 7 + build: [ 8 + "sh" 9 + "-exc" 10 + "printf 'opam-version: \"2.0\"\\nvariables {\\n pkg-config-homebrew: \"%s/lib/pkgconfig\"\\n}' \"$(brew --prefix openblas)\" > %{_:name}%.config" 11 + ] 12 + depends: [ 13 + "conf-openblas" {>= "0.2.2"} 14 + ] 15 + setenv: [ 16 + PKG_CONFIG_PATH += "%{_:pkg-config-homebrew}%" 17 + ] 18 + synopsis: "Virtual package to set the environment correctly for OpenBLAS in Homebrew" 19 + description: """ 20 + Homebrew requires an update to PKG_CONFIG_PATH in order to detect the openblas 21 + package. opam 2.0.10 and earlier and 2.1.4 and earlier cannot handle a setenv 22 + update of "", and setenv updates cannot be filtered. This package exists to 23 + workaround these two limitations.""" 24 + flags: conf 25 + available: os = "macos" & os-distribution = "homebrew"
+1
packages/conf-openblas/conf-openblas.0.2.1/opam
··· 40 40 "The package prepares OpenBLAS (CBLAS) and LAPACKE backend for Owl (OCaml numerical library). It can only be installed if OpenBLAS and LAPACKE are installed on the system." 41 41 extra-files: ["test.c" "md5=8eb3463bce56366f0506721ca5c4e29c"] 42 42 flags: conf 43 + available: os != "macos" | os-distribution != "homebrew"
+12
packages/conf-openblas/conf-openblas.0.2.2/files/test.c
··· 1 + #define _GNU_SOURCE 2 + #include <cblas.h> 3 + #include <lapacke.h> 4 + 5 + int main(int argc, char **argv) 6 + { 7 + int N = 3; 8 + double X[] = { 1, 2, 3 }; 9 + int INCX = 1; 10 + double res = cblas_dnrm2(N, X, INCX); 11 + return 0; 12 + }
+46
packages/conf-openblas/conf-openblas.0.2.2/opam
··· 1 + opam-version: "2.0" 2 + maintainer: "Liang Wang <ryanrhymes@gmail.com>" 3 + authors: [ "Liang Wang" ] 4 + homepage: "https://github.com/xianyi/OpenBLAS" 5 + bug-reports: "https://github.com/ocaml/opam-repository/issues" 6 + license: "BSD-3-Clause" 7 + build: [ 8 + ["sh" "-exc" "cc $CFLAGS -I/usr/include/openblas test.c -lopenblas"] 9 + {os-distribution = "fedora" | os-distribution = "centos" | os-family = "suse" | os-family = "opensuse"} 10 + [ 11 + "sh" 12 + "-exc" 13 + "cc $CFLAGS $(PKG_CONFIG_PATH=\"$(brew --prefix openblas)/lib/pkgconfig:$PKG_CONFIG_PATH\" pkg-config --cflags openblas) test.c $(PKG_CONFIG_PATH=\"$(brew --prefix openblas)/lib/pkgconfig:$PKG_CONFIG_PATH\" pkg-config --libs openblas)" 14 + ] {os = "macos" & os-distribution = "homebrew"} 15 + ["sh" "-exc" "cc $CFLAGS test.c -lcblas"] 16 + {os-family = "arch"} 17 + ["sh" "-exc" "cc $CFLAGS -I/usr/local/include -L/usr/local/lib test.c -lopenblas"] 18 + {os = "freebsd"} 19 + ["sh" "-exc" "x86_64-w64-mingw32-gcc $CFLAGS test.c -lopenblas"] 20 + {os = "win32" & os-distribution = "cygwinports"} 21 + ["sh" "-exc" "cc $CFLAGS test.c -lopenblas"] 22 + {os-distribution != "fedora" & os-distribution != "centos" & os-family != "suse" & os-family != "opensuse" & os != "macos" & os-family != "arch" & os != "freebsd" & os != "win32"} 23 + ] 24 + depends: [ 25 + "conf-pkg-config" {os = "macos" & os-distribution = "homebrew"} 26 + "conf-openblas-macOS-env" {post & os = "macos" & os-distribution = "homebrew"} 27 + ] 28 + depexts: [ 29 + ["libc-dev" "openblas-dev" "lapack-dev"] {os-distribution = "alpine"} 30 + ["epel-release" "openblas-devel"] {os-distribution = "centos"} 31 + ["libopenblas-dev" "liblapacke-dev"] {os-family = "debian"} 32 + ["openblas-devel"] {os-distribution = "fedora"} 33 + ["openblas-devel"] {os-family = "suse" | os-family = "opensuse"} 34 + ["openblas" "lapacke" "cblas"] {os-distribution = "arch"} 35 + ["openblas"] {os = "macos" & os-distribution = "homebrew"} 36 + ["openblas" "lapacke"] {os = "freebsd"} 37 + ] 38 + x-ci-accept-failures: [ 39 + "oraclelinux-7" 40 + "oraclelinux-8" 41 + ] 42 + synopsis: "Virtual package to install OpenBLAS and LAPACKE" 43 + description: 44 + "The package prepares OpenBLAS (CBLAS) and LAPACKE backend for Owl (OCaml numerical library). It can only be installed if OpenBLAS and LAPACKE are installed on the system." 45 + extra-files: ["test.c" "md5=8eb3463bce56366f0506721ca5c4e29c"] 46 + flags: conf