Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libblas error #21

Closed
davmaz opened this issue Mar 24, 2018 · 7 comments
Closed

libblas error #21

davmaz opened this issue Mar 24, 2018 · 7 comments

Comments

@davmaz
Copy link

davmaz commented Mar 24, 2018

After following your directions, I get the following error:
=== compiling la/oblas =============================================================
/tmp/go-build948894470/b001/oblas.test: symbol lookup error: /usr/lib/libblas.so.3: undefined symbol: gotoblas
exit status 127
FAIL github.com/cpmech/gosl/la/oblas 0.002s

Any suggestions?
Best,
Dave

@davmaz
Copy link
Author

davmaz commented Mar 26, 2018

I've tried to install this per directions on a 'fresh' ubuntu 16.04 load and it too ends in testing with a similar openblas error:
=== compiling la/oblas =============================================================

github.com/cpmech/gosl/la/oblas

./oblas.go:22:28: fatal error: openblas_cblas.h: No such file or directory
compilation terminated.

@cpmech
Copy link
Owner

cpmech commented Mar 26, 2018

Hi, thanks for trying Gosl!!!

I've just installed Ubuntu 16.04.4-desktop on a virtual machine (VirtualBox) and proceeded with the installation instructions from here: https://github.com/cpmech/gosl/blob/master/doc/InstallationOnUbuntu.md

I didn't get any error though! (see figure)

Can you please provide more information about your system?

Cheers.
Dorival
sshot-2018-03-26-1522099134

@cpmech
Copy link
Owner

cpmech commented Mar 28, 2018

Hello, I've just tried it again in my fresh Ubuntu installation and all seems fine. I'm happy to help regardless. Cheers. Dorival

@davmaz
Copy link
Author

davmaz commented Mar 30, 2018

Thanks for checking. Previously I think there was a conflict with OpenBLAS being install previously.
SO, I reformatted my disks and installed a fresh copy of Ubuntu 16.04 and did all the updates.
Then I installed go1.10.1. So far so good.
Then I followed your steps, but this is what I got when trying .all.bash:
--- FAIL: TestMatInv02 (0.00s)
t_matrix_ops_test.go:30: matrix "b⋅bi" is not diagonal. diff=1.3587010698815905e-10

@cpmech
Copy link
Owner

cpmech commented Mar 30, 2018

Excellent!

This error is not an issue. I usually set the tolerances to a very small number and sometimes different CPUs produce slightly different results.

I've just increased the tolerance to 1e-9.

You may like to git pull and try again.

Cheers.
Dorival

@davmaz
Copy link
Author

davmaz commented Mar 31, 2018

Perfect:
=== compiling tsr =============================================================
. . . testing . . . Tensor2set01
. . . testing . . . Tensor4set01
PASS
ok github.com/cpmech/gosl/tsr 0.008s

=== SUCCESS! ============================================================

Best regards,
Dave

@cpmech
Copy link
Owner

cpmech commented Mar 31, 2018

Thanks!

@cpmech cpmech closed this as completed Mar 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants