Skip to content

Commit

Permalink
More defaults for win and openblas
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-hld committed Feb 6, 2024
1 parent 6d6c3bb commit 4a1e156
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-safpy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
elif [ "$RUNNER_OS" == "Windows" ]; then
curl https://github.com/OpenMathLib/OpenBLAS/releases/download/v0.3.26/OpenBLAS-0.3.26-x64.zip -L -o tmp.zip
7z x ./tmp.zip -oOpenBLAS
cp ./OpenBLAS/lib/libopenblas.lib ./openblas.lib
cp ./OpenBLAS/lib/libopenblas.lib ./libopenblas.lib
ls
echo $PWD
else
Expand Down
8 changes: 6 additions & 2 deletions safpy_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,14 @@
if sys.platform == "darwin":
print("SAFPY using default Apple Accelerate")
extra_link_args.extend(['-Wl,-framework', '-Wl,Accelerate'])
else:
elif sys.platform == "linux":
print("SAFPY using default OpenBLAS/LAPACKE")
saf_performance_lib.extend(["openblas", "lapacke"])

elif sys.platform == "win32":
print("SAFPY using default OpenBLAS/LAPACKE")
saf_performance_lib.extend(["libopenblas"]) # should include lapacke
else:
print("No defaults.")

# cdef() expects a single string declaring the C types, functions and
# globals needed to use the shared object. It must be in valid C syntax.
Expand Down

0 comments on commit 4a1e156

Please sign in to comment.