Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable non-standard OpenBLAS extensions v2 #1572

Merged
merged 51 commits into from
Feb 23, 2025
Merged
Changes from 1 commit
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
866d834
Unskip most "extra" functions.
blueberry Jan 21, 2025
40c1992
Revert changes to openblas_nolapack
blueberry Jan 21, 2025
bf15833
Create openblas_full.java
blueberry Jan 21, 2025
3c8c6cb
Fix a missing curly brace and a semicolon.
blueberry Jan 21, 2025
3e2c13b
Fix missing imports in openblas_full
blueberry Jan 21, 2025
2bc0cde
openblass_full inherits openblas
blueberry Jan 21, 2025
bfec140
Inherit openblas_full from openblas (in JavaCPP properties)
blueberry Jan 22, 2025
bba80fe
Extract functionsToSkip()
blueberry Jan 22, 2025
254e90b
Override functionsToSkip() in openblas_full
blueberry Jan 22, 2025
bd4f0e2
Fix a missing paren.
blueberry Jan 22, 2025
b9fc395
Remove unused imports.
blueberry Jan 22, 2025
dec4fb3
Remove includes from openblas_full @Properties
blueberry Jan 22, 2025
46b7829
Add missing imports.
blueberry Jan 22, 2025
fd3c44a
Delete a stray curly brace.
blueberry Jan 22, 2025
5bf9915
Another day, another stray paren missed :)
blueberry Jan 22, 2025
80a8783
Re-include @Platform in openblas_full
blueberry Jan 23, 2025
968a37b
Update CHANGELOG.md and fix nits
saudet Jan 23, 2025
4cf6a08
Fix one last nit
saudet Jan 23, 2025
f65e4b4
* Add `openblas_full` class giving access to all of OpenBLAS (pull #…
blueberry Jan 24, 2025
f40dd6a
Try overriding the map method.
blueberry Jan 24, 2025
b5b52aa
Merge branch 'master' into master
blueberry Jan 24, 2025
86cadbd
Revert functionsToSkip() to functions in openblas_nolapack.
blueberry Jan 25, 2025
2485580
Update CHANGELOG.md and fix nits
saudet Jan 25, 2025
2ed4199
Fix openblas/presets/openblas_full.java
saudet Jan 27, 2025
2036734
Explicitly exclude failing LAPACK_ functions from openblas_full.
blueberry Jan 28, 2025
d5aff56
Fix typos.
blueberry Jan 28, 2025
2e134f2
Updae openblas/global/openblas_full.java
saudet Jan 29, 2025
e059502
Created a proper version that generates all missing operations, while…
blueberry Feb 17, 2025
61df91b
Merge branch 'master' into master
blueberry Feb 17, 2025
b7397f8
Unskip functions that are available with LAPACKE_ prefix; revert pom.…
blueberry Feb 18, 2025
997b687
Let's try to fix the android build failure by skipping lapackeOnlyFun…
blueberry Feb 18, 2025
ed942f0
Revert to skipping broken functions.
blueberry Feb 18, 2025
2574dcc
Skip extended functions that break android build.
blueberry Feb 18, 2025
06014cc
Skip two more broken functions.
blueberry Feb 18, 2025
b1b0a4b
Try to enable only some functions to see why Windows build fails.
blueberry Feb 19, 2025
bbd604d
Fix missin paren.
blueberry Feb 19, 2025
2006d43
Try with only f whitelisted, prefixed functions blacklisted.
blueberry Feb 19, 2025
7425207
Try with only axpby enabled.
blueberry Feb 19, 2025
4985b9a
Enable only s and d functions.
blueberry Feb 19, 2025
fe4255f
Enable up to zomatcopy.
blueberry Feb 19, 2025
668467c
Enable all but deprecated.
blueberry Feb 19, 2025
ebfbbdb
Enable all, except LAPACK_ and work.
blueberry Feb 19, 2025
201daf0
Enable only cblas_.
blueberry Feb 20, 2025
d3e7862
Comment skipping.
blueberry Feb 20, 2025
8dfa078
Fix comment.
blueberry Feb 20, 2025
b8a6127
Enable all but openblas_.
blueberry Feb 20, 2025
66a6bef
Skip 2 openblas_ functions that can't be linked on Windows.
blueberry Feb 20, 2025
e622637
Fix formatting.
blueberry Feb 21, 2025
373f351
Fix a missing comma.
blueberry Feb 21, 2025
163f196
Fix builds for Windows on GitHub Actions
saudet Feb 19, 2025
48325d7
Update CHANGELOG.md and fix nits
saudet Feb 23, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Override functionsToSkip() in openblas_full
blueberry authored Jan 22, 2025
commit 254e90b958e9f8682e40702599323bfcbf107f53
Original file line number Diff line number Diff line change
@@ -42,29 +42,7 @@
@NoException
public class openblas_full extends openblas {

@Override public void map(InfoMap infoMap) {
infoMap.put(new Info("lapack.h", "lapacke.h").linePatterns(".*LAPACK_GLOBAL.*").skip())
.put(new Info("OPENBLAS_PTHREAD_CREATE_FUNC", "OPENBLAS_BUNDERSCORE", "OPENBLAS_FUNDERSCORE", "DOUBLE_DEFINED", "xdouble",
"FLOATRET", "OPENBLAS_CONST", "CBLAS_INDEX", "LAPACK_IFMT", "FORTRAN_STRLEN", "lapack_int", "lapack_logical").cppTypes().annotations())
.put(new Info("OPENBLAS_QUAD_PRECISION", "defined OPENBLAS_EXPRECISION", "OPENBLAS_USE64BITINT",
"defined(LAPACK_COMPLEX_STRUCTURE)", "defined(LAPACK_COMPLEX_C99)", "OPENBLAS_OS_LINUX").define(false).translate(true))
.put(new Info("((defined(__STDC_IEC_559_COMPLEX__) || __STDC_VERSION__ >= 199901L ||"
+ " (__GNUC__ >= 3 && !defined(__cplusplus))) && !(defined(FORCE_OPENBLAS_COMPLEX_STRUCT))) && !defined(_MSC_VER)",
"defined(LAPACK_COMPLEX_CPP)", "LAPACK_COMPLEX_CUSTOM", "LAPACK_FORTRAN_STRLEN_END").define())
.put(new Info("openblas_complex_float", "lapack_complex_float").cast().pointerTypes("FloatPointer", "FloatBuffer", "float[]"))
.put(new Info("openblas_complex_double", "lapack_complex_double").cast().pointerTypes("DoublePointer", "DoubleBuffer", "double[]"));

String[] functions = {

// deprecated
"cgegs", "cggsvd", "ctzrqf", "dgeqpf", "dlatzm", "sgelsx", "slahrd", "zgegv", "zggsvp",
"cgegv", "cggsvp", "dgegs", "dggsvd", "dtzrqf", "sgeqpf", "slatzm", "zgelsx", "zlahrd",
"cgelsx", "clahrd", "dgegv", "dggsvp", "sgegs", "sggsvd", "stzrqf", "zgeqpf", "zlatzm",
"cgeqpf", "clatzm", "dgelsx", "dlahrd", "sgegv", "sggsvp", "zgegs", "zggsvd", "ztzrqf"};

for (String f : functions) {
infoMap.put(new Info(f, "LAPACK_" + f, "LAPACK_" + f + "_base", "LAPACKE_" + f, "LAPACKE_" + f + "_work").skip());
}
@Override public String[] functionsToSkip() {
return new String[0];
}

}