Comments (3)
I managed to fix this by adding list(APPEND CMAKE_PREFIX_PATH <PATH TO OpenBLAS FOLDER>)
.
If anyone knows a less hacky way though please let me know.
from xtensor-blas.
Good catch, I was trying to do the same in my CMakeLists, and this seems to go against the docs as you linked. Typical CMake dependencies mess 🙄
This worked for me. Even without the edits to the cmake config file. I am using mamba for managing dependencies and buildtools, and CMake version 3.25.2:
find_package( BLAS REQUIRED )
message( STATUS BLAS found: ${BLAS_LIBRARIES} )
list(APPEND Libraries ${BLAS_LIBRARIES})
find_package(xtensor-blas REQUIRED)
include_directories(${xtensor-blas_INCLUDE_DIRS})
list(APPEND Libraries xtensor-blas)
In theory this is doing the same as you tried (and I tried myself from the xtensor-blas docs), so not sure what has gone on there - but I was googling and landed here:
https://cmake.org/cmake/help/latest/module/FindBLAS.html
I presume this is hooking into a script provided by CMake to find a vendor-neutral BLAS, which (for me at least) is then setting things up correctly. OpenBLAS is in the mamba environment, so this may be faciitated by not having any other BLAS implementations in the search path.
from xtensor-blas.
@stellarpower I edited my comment a little. The path in CMAKE_PREFIX_PATH
needs to be the path into the OpenBLAS folder. It's not simply where all packages are installed, but the OpenBLAS folder itself. That's what makes it strange. That's the only way it's working for me if I have OpenBLAS downloaded without package managers.
from xtensor-blas.
Related Issues (20)
- Build with `-DMKL_ILP64` fails. HOT 1
- doc build fails with sphinx 4: no attribute 'add_stylesheet'
- xlapack.solveCholesky test precision too high for 32 bit machines HOT 7
- 0.20.0 installs the empty directory include/xflens/cxxblas/netlib
- warnings from clang-12 in tests HOT 1
- Unable to compile on Ubuntu HOT 1
- Memory access violation when calling dot using MKL
- Failure in linking xtensor-blas with lapack/blas? HOT 3
- Latest version on GitHub doesn't seem correct
- Latest version on GitHub doesn't seem correct HOT 1
- emmmm, i not find the funcation can implentment the matrix multiply like np.matmul........ HOT 1
- [Feature request] Support xt::linalg::outer for higher-dimensional objects
- conflict with open3d lib which depend on eigen
- Unexpected results from xt::linalg::matrix_power with even exponents
- xcontainer objects should accept xcontainers in operator() HOT 1
- QUERY: Handling custom wrappers over complex data
- The different precision between numpy and xtensor_blas package when using cholesky function HOT 2
- using xt::linalg results in .pyd resulting in DLL not found.
- Different behaviors of solve, solve_triangular, and solve_cholesky (possibly a bug)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xtensor-blas.