Comments (8)
great, thanks! Updated my file
from xtensor-blas.
Hi Julian,
have you tried find_package(xtensor-blas REQUIRED)
? It should work.
Then you get the standard xtensor_blas_INCLUDE_DIRS
and xtensor_blas_LIBRARIES
(the latter one is unset!).
from xtensor-blas.
closing for now. we just fixed some remaining cmake issues. let us know if you still have issues (& feel free to reopen! :)
from xtensor-blas.
Ah, I always tried find_package(XTENSOR_BLAS ...)
or find_package(XTENSOR-BLAS ...)
due to xtensor using find_package(XTENSOR)
. Maybe for consistency, may I suggest, changing it to "XTENSOR-BLAS" in the future?
from xtensor-blas.
hmm, to be honest, I think even for xtensor everything should be lowercase
find_package(xtensor)
, include_directories(${xtensor_INCLUDE_DIR})
:)
from xtensor-blas.
My CMakeLists.txt
project(KALMANCPP)
cmake_minimum_required(VERSION 3.1)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_FLAGS_DEBUG "-Wall -g -W")
find_package(XTENSOR REQUIRED)
find_package(xtensor-blas REQUIRED)
find_package(BLAS REQUIRED)
find_package(LAPACK REQUIRED)
include_directories(include)
add_executable(kalman2d src/Kalman2d.cpp)
target_link_libraries(kalman2d lapack blas)
works flawlessly! However, all packages are still found when I use find_package(all_lower_case)
. I thought cmake is case sensitive. Oh well, thanks anyways! Learned something again
from xtensor-blas.
sooooo you're actually not really using cmake here :)
you should add include_directories(${xtensor_INCLUDE_DIRS} ${xtensor_blas_INCLUDE_DIRS})
as well as when linking, link like that: target_link_libraries(kalman2d ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES})
otherwise you're not using what you get from find_package
.
Also you can check out what these variables contain by using message("BLAS: ${BLAS_LIBRARIES}")
which i find helpful for debugging
from xtensor-blas.
note the reason why it works right now, is that you install xtensor & xtensor-blas into your system standard include path, therefore it's picked up.
And for BLAS & LAPACK, you probably have these libraries installed into the standard library path which is why it works. But by just doing target_link_libraries(kalman2d blas lapack)
you only emit -llapack -lblas
on the command line which doesn't fully qualify which BLAS and lapack lib and can definitly also differ from what you find with cmake.
from xtensor-blas.
Related Issues (20)
- `linalg::norm` not working (does not compile) for `std::complex<float>` HOT 3
- 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
- Could NOT find BLAS (missing: BLAS_LIBRARIES) HOT 3
- [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.
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.