quil-lang/magicl

How exactly can I use blas or lapack?

hunar1997 opened this issue · 2 comments

Hello

This library looks amazing, but i can't seem to figure out how to use the non-lisp back-ends
I thought this would work:

(ql:quickload :magicl)
(in-package :magicl)
(magicl.backends:with-backends (:blas :lisp)
  (eig (rand '(10 10))))

but it sais Package MAGICL.BACKENDS does not exist
I guess i need to load the extension but I have no idea how, and it's not mentioned either

The external libraries are installed

Thanks for reading :D

Hello and thank you for your interest in using magicl!

We recently released version 0.9.0 which adds the backend functionality and the magicl.backends package. Since this was released so recently, it is not part of the current quicklisp dist (2021-02-28).

Until the next quicklisp dist is built containing magicl 0.9.0, you will need to have a local copy of the library to use the new functionality.

If you already have quicklisp:*local-project-directories* set up then you can just clone this repository there and reload magicl.
If not, create a folder to keep all of your local lisp projects (I use ~/lisp/) and add it to quicklisp:*local-project-directories* in your lisp init:

.sbclrc

(push "~/lisp/" ql:*local-project-directories*)

You can then reload your init file or restart your repl to make quicklisp search this folder.

Let me know if this works for you or if you need help with any of the steps :-)

With the new (ql:update-all-dists) now it works :D