You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In rsrl/Cargo.toml you only specify ndarray = "0.13" under [dependencies], and you specify the following
blas-src = { version = "0.4", default-features = false, features = ["openblas"] }
openblas-src = { version = "0.7", default-features = false, features = ["cblas", "system"] }
under [dev-dependencies], so it seems that you wouldn't need to add the previous 2 lines under [dependencies] too. In fact, even if you don't have BLAS or openblas, ndarray should fallback to matrixmultiply (see this), so this error should not even occur. However, in the README, which was updated here, you write (or someone else wrote in a pull request)
so if you're building a binary, you additionally need to specify a BLAS backend compatible with ndarray
An example is indeed a binary, so I also tried to add the following lines
blas-src = { version = "0.4", default-features = false, features = ["openblas"] }
openblas-src = { version = "0.7", default-features = false, features = ["cblas", "system"] }
under [dependencies], but I get the same linking error.
Maybe this is obvious, but don't you need to install OpenBLAS to use it? So, I guess that, if I don't have it installed in my system, I can't use it. If you're using mac, how should you install it? This information probably should be in the README anyway. You could use brew (here), but is this the right thing to do here? I tried to install OpenBLAS via homebrew with brew install openblas, then
As suggested at the end of the brew installation, then cargo clean and cargo run --example q_learning , but I still get the same error.
Can't we simply use rsrl without OpenBLAS? I just wanted to try the q-learning example and I don't care about performance now (by the way, why do you use openblas? is it because of performance?).
The text was updated successfully, but these errors were encountered:
I also tried to get rsrl to run (using Linux Mint 20), and i get lots of linking errors. I tried to update ndarray to the latest (hoping that it would use the up-to-date cblas bindings (?)), but no luck - lots of changes with the fixed-size dimensions, etc, and I am somewhat new to Rust (and especially ML), so couldn't easily figured out how to change it. Any guidance would be awesome as it would be bad to loose the only such project in Rust I could find. Thanks!!
I am getting the following error
when I attempt to run the example
q_learning.rs
inrsrl/Cargo.toml
with the commandcargo run --example q_learning
.Specifications
It's not the first time that this error occurs. Here are other related issues
Here you say that you used to use Mac too.
In
rsrl/Cargo.toml
you only specifyndarray = "0.13"
under[dependencies]
, and you specify the followingunder
[dev-dependencies]
, so it seems that you wouldn't need to add the previous 2 lines under[dependencies]
too. In fact, even if you don't have BLAS or openblas, ndarray should fallback tomatrixmultiply
(see this), so this error should not even occur. However, in the README, which was updated here, you write (or someone else wrote in a pull request)An example is indeed a binary, so I also tried to add the following lines
under
[dependencies]
, but I get the same linking error.Maybe this is obvious, but don't you need to install OpenBLAS to use it? So, I guess that, if I don't have it installed in my system, I can't use it. If you're using mac, how should you install it? This information probably should be in the README anyway. You could use brew (here), but is this the right thing to do here? I tried to install OpenBLAS via homebrew with
brew install openblas
, thenexport LDFLAGS="-L/usr/local/opt/openblas/lib"
export CPPFLAGS="-I/usr/local/opt/openblas/include"
export PKG_CONFIG_PATH="/usr/local/opt/openblas/lib/pkgconfig"
As suggested at the end of the brew installation, then
cargo clean
andcargo run --example q_learning
, but I still get the same error.Can't we simply use
rsrl
without OpenBLAS? I just wanted to try the q-learning example and I don't care about performance now (by the way, why do you use openblas? is it because of performance?).The text was updated successfully, but these errors were encountered: