digitalmars.D.learn - Mir blas keeps giving an error
Using mir-blas is fundamental for implementing linear models in D. However it keeps giving an error, other mir libraries work fine. I get the following error ```shell /usr/bin/ld: -f may not be used without -shared clang: error: linker command failed with exit code 1 (use -v to see invocation) Error: linker exited with status 1 ``` I would appreciate if anyone can help me setting it up.
Aug 11
On Tuesday, 12 August 2025 at 03:24:33 UTC, Marc wrote:Using mir-blas is fundamental for implementing linear models in D. However it keeps giving an error, other mir libraries work fine. I get the following error ```shell /usr/bin/ld: -f may not be used without -shared clang: error: linker command failed with exit code 1 (use -v to see invocation) Error: linker exited with status 1 ``` I would appreciate if anyone can help me setting it up.BLAS can be a tricky-to-install library. Please provide your OS, dub.json/sdl and check that BLAS is installed.
Aug 12
On Tuesday, 12 August 2025 at 07:13:58 UTC, Serg Gini wrote:BLAS can be a tricky-to-install library. Please provide your OS, dub.json/sdl and check that BLAS is installed.The examples dub.sdl is available here: https://github.com/istmarc/mir-examples/blob/main/dub.sdl . I've Archlinux installed with openblas (`/usr/lib/libopenblas.so`) and lapack (`/usr/lib/liblapack.so`). I can use them from c++ simply by linking `clang++ -lbopenblas main.cxx` and both work fine.
Aug 12
I have updated the examples by adding a subconfiguration of mi-blas. Now it works.
Aug 12
On Tuesday, 12 August 2025 at 09:44:07 UTC, Marc wrote:I have updated the examples by adding a subconfiguration of mi-blas. Now it works.Nice. I've checked your repos - you probably also could be interested in projects: - Mojo lang, where tensors are integrated into the language https://docs.modular.com/max/api/c/tensor/ - GGML C++ library for tensors, used in llama.cpp https://github.com/ggml-org/ggml
Aug 12
On Tuesday, 12 August 2025 at 10:05:59 UTC, Serg Gini wrote:On Tuesday, 12 August 2025 at 09:44:07 UTC, Nice. I've checked your repos - you probably also could be interested in projects: - Mojo lang, where tensors are integrated into the language https://docs.modular.com/max/api/c/tensor/ - GGML C++ library for tensors, used in llama.cpp https://github.com/ggml-org/ggmlThose are great resources. Thanks a lot for your reply. I started writting a tensor library mainly to extend Eigen c++ library that has an unsupported tensor module. It’s great for numerical stuffs but doesn’t support for example slicing like numpy and Mir except for rows and columns of a matrix. Im not sure about how they approached this so that might be very interesting thing I could check.
Aug 12