Comments (10)
I think it might be that you additionally need to link to the lapack library.
from xtensor-blas.
I installed lapack by the command conda install -c conda-forge lapack
. Installed version
lapack conda-forge/osx-64::lapack-3.6.1-ha44fe06_2
And I added the installed /Users/[username]/anaconda3/lib/liblapack.3.6.1.dylib
to "Link binary with libraries". But it doesn't work.
from xtensor-blas.
otool -TV your.dylib
Can you use the command line and cmake to configure your project? since I am not an XCode user, I can't give you any XCode specific help here ...
you shoudl be able to see if gesdd is in the library with this command line instruction:
otool -TV liblapack.3.6.1.dylib
and
otool -TV liblapack.3.6.1.dylib | grep gesdd
from xtensor-blas.
otool -TV liblapack.3.6.1.dylib
gives the following result:
warning: /Library/Developer/CommandLineTools/usr/bin/otool: -T functionality obsolete
OVERVIEW: llvm object file dumper
USAGE: objdump [options] <input object files>
OPTIONS:
-aarch64-neon-syntax - Choose style of NEON code to emit from AArch64 backend:
=generic - Emit generic NEON assembly
=apple - Emit Apple-style NEON assembly
-all-headers - Display all available header information
-arch=<string> - architecture(s) from a Mach-O file to dump
-arch-name=<string> - Target arch to disassemble for, see -version for available targets
-archive-headers - Display archive header information
-archive-member-offsets - Print the offset to each archive member for Mach-O archives (requires -macho and -archive-headers)
-bind - Display mach-o binding info
-color - Use colors in output (default=autodetect)
-data-in-code - Print the data in code table for Mach-O objects (requires -macho)
-demangle=<string> - Demangle symbols names
-df=<string> - List of functions to disassemble
-dis-symname=<string> - disassemble just this symbol's instructions (requires -macho)
-disassemble - Display assembler mnemonics for the machine instructions
-disassemble-all - Display assembler mnemonics for the machine instructions
-dsym=<string> - Use .dSYM file for debug info
-dwarf - Dump of dwarf debug sections:
=frames - .debug_frame
-dylib-id - Print the shared library's id for the dylib Mach-O file (requires -macho)
-dylibs-used - Print the shared libraries used for linked Mach-O files (requires -macho)
-dynamic-reloc - Display the dynamic relocation entries in the file
-exports-trie - Display mach-o exported symbols
-fault-map-section - Display contents of faultmap section
-file-headers - Display the contents of the overall file header
-full-leading-addr - Print full leading address
-g - Print line information from debug info if available
-help - Display available options (-help-hidden for more)
-indirect-symbols - Print indirect symbol table for Mach-O objects (requires -macho)
-info-plist - Print the info plist section as strings for Mach-O objects (requires -macho)
-lazy-bind - Display mach-o lazy binding info
-line-numbers - Display source line numbers with disassembly. Implies disassemble object
-link-opt-hints - Print the linker optimization hints for Mach-O objects (requires -macho)
-macho - Use MachO specific object file parser
-mattr=<a1,+a2,-a3,...> - Target specific attributes
-mcpu=<cpu-name> - Target a specific cpu type (-mcpu=help for details)
-no-leading-addr - Print no leading address
-no-leading-headers - Print no leading headers
-no-show-raw-insn - When disassembling instructions, do not print the instruction bytes.
-no-symbolic-operands - do not symbolic operands when disassembling (requires -macho)
-non-verbose - Print the info for Mach-O objects in non-verbose or numeric form (requires -macho)
-objc-meta-data - Print the Objective-C runtime meta data for Mach-O files (requires -macho)
-print-imm-hex - Use hex format for immediate values
-private-header - Display only the first format specific file header
-private-headers - Display format specific file headers
-r - Display the relocation entries in the file
-raw-clang-ast - Dump the raw binary contents of the clang AST section
-rebase - Display mach-o rebasing info
-s - Display the content of each section
-section=<string> - Operate on the specified sections only. With -macho dump segment,section
-section-headers - Display summaries of the headers for each section.
-source - Display source inlined with disassembly. Implies disassemble object
-start-address=<address> - Disassemble beginning at address
-stop-address=<address> - Stop disassembly at address
-t - Display the symbol table
-triple=<string> - Target triple to disassemble for, see -version for available targets
-universal-headers - Print Mach-O universal headers (requires -macho)
-unwind-info - Display unwind information
-version - Display the version of this program
-weak-bind - Display mach-o weak binding info
And otool -TV liblapack.3.6.1.dylib | grep gesdd
gives nothing but a deprecation warning
warning: /Library/Developer/CommandLineTools/usr/bin/otool: -T functionality obsolete
What do these messages mean?
from xtensor-blas.
sorry, as the message says the -T
flag doesn't work anymore.
Try this one instead: nm -gU thelib.dylib
from xtensor-blas.
nm -gU liblapack.3.6.1.dylib | grep gesdd
gives
00000000003bdf96 T _cgesdd_
00000000001ed89c T _dgesdd_
00000000000260ba T _sgesdd_
000000000059a8f6 T _zgesdd_
nm -gU libopenblasp-r0.3.6.dylib | grep gesdd
gives
00000000037a8340 T _LAPACKE_cgesdd
00000000037a8590 T _LAPACKE_cgesdd_work
00000000037f9a40 T _LAPACKE_dgesdd
00000000037f9bf0 T _LAPACKE_dgesdd_work
00000000038445d0 T _LAPACKE_sgesdd
0000000003844780 T _LAPACKE_sgesdd_work
000000000388ec00 T _LAPACKE_zgesdd
000000000388ee50 T _LAPACKE_zgesdd_work
000000000335faf0 T _cgesdd_
00000000031e7e80 T _dgesdd_
000000000306b5a0 T _sgesdd_
0000000003513330 T _zgesdd_
So the package does include gesdd
and I should try using the command line directly to configure my program?
from xtensor-blas.
did you also do this: https://solarianprogrammer.com/images/2017/03/24/10_macos_compiler_search_paths.png (note that there you will need to use the appropriate conda directory)
from xtensor-blas.
Unfortunately, I have already modified those entries in Xcode. Maybe I'll try using the command line later, but I am a little bit busy right now. Now I close this issue, but I still welcome anyone who succeeds in configuring xtensor with Xcode telling me how to do it.
from xtensor-blas.
I encountered this when I try to xt::linalg::norm(array, 2)
where array is of type xt::xarray<int>
.
from xtensor-blas.
I encountered this when I try to
xt::linalg::norm(array, 2)
where array is of typext::xarray<int>
.
I found that if I change array to be xt::array<double>
, this error will disappear. So only double
is accepted?
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.