Skip to content

Commit 41ec05c

Browse files
authored
Fix loading openblas for xtensor-blas (#2968)
1 parent f6f26a7 commit 41ec05c

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/include/xtensor-blas/xblas_config_cling.hpp.in b/include/xtensor-blas/xblas_config_cling.hpp.in
2+
index cbe4f13..f2f2689 100644
3+
--- a/include/xtensor-blas/xblas_config_cling.hpp.in
4+
+++ b/include/xtensor-blas/xblas_config_cling.hpp.in
5+
@@ -26,7 +26,7 @@
6+
7+
#include <clang/Interpreter/CppInterOp.h>
8+
static bool _openblas_loaded = []() {
9+
- Cpp::LoadLibrary(@OPENBLAS_CPPINTEROP_LIBRARY_PATH@, false);
10+
+ Cpp::LoadLibrary("/lib/@CMAKE_SHARED_LIBRARY_PREFIX@openblas@CMAKE_SHARED_LIBRARY_SUFFIX@", false);
11+
return true;
12+
}();
13+

recipes/recipes_emscripten/xtensor-blas/recipe.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ package:
99
source:
1010
url: https://github.com/xtensor-stack/xtensor-blas/archive/${{ version }}.tar.gz
1111
sha256: 3411f56d243b92a22fe3a259bc8b414d851ab167b9d30700a1776c9908e0b595
12+
patches:
13+
- patches/shared.patch
1214

1315
build:
14-
number: 0
16+
number: 1
1517

1618
requirements:
1719
build:

0 commit comments

Comments
 (0)