You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xiangrui Meng (JIRA)" <ji...@apache.org> on 2015/01/10 03:38:34 UTC

[jira] [Commented] (SPARK-5010) native openblas library doesn't work: undefined symbol: cblas_dscal

    [ https://issues.apache.org/jira/browse/SPARK-5010?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14272280#comment-14272280 ] 

Xiangrui Meng commented on SPARK-5010:
--------------------------------------

Which linux distribution are you using? On unix-like system, it should look for `_cblas_dscal` (with a leading underscore) instead of `cblas_dscal`. Could you try

{code}
nm /usr/lib/libblas.so.3 | grep cblas_dscal
{code}


> native openblas library doesn't work: undefined symbol: cblas_dscal
> -------------------------------------------------------------------
>
>                 Key: SPARK-5010
>                 URL: https://issues.apache.org/jira/browse/SPARK-5010
>             Project: Spark
>          Issue Type: Bug
>          Components: MLlib
>    Affects Versions: 1.3.0
>         Environment: standalone
>            Reporter: Tomas Hudik
>            Priority: Minor
>              Labels: mllib, openblas
>
> 1. compiled and installed open blas library
> 2, ln -s libopenblas_sandybridgep-r0.2.13.so /usr/lib/libblas.so.3
> 3. compiled and built spark:
> mvn -Pnetlib-lgpl -DskipTests clean compile package
> 4. run: bin/run-example  mllib.LinearRegression data/mllib/sample_libsvm_data.txt
> 14/12/30 18:39:57 INFO BlockManagerMaster: Trying to register BlockManager
> 14/12/30 18:39:57 INFO BlockManagerMasterActor: Registering block manager localhost:34297 with 265.1 MB RAM, BlockManagerId(<driver>, localhost, 34297)
> 14/12/30 18:39:57 INFO BlockManagerMaster: Registered BlockManager
> 14/12/30 18:39:58 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
> 14/12/30 18:39:58 WARN LoadSnappy: Snappy native library not loaded
> Training: 80, test: 20.
> /usr/local/lib/jdk1.8.0//bin/java: symbol lookup error: /tmp/jniloader1826801168744171087netlib-native_system-linux-x86_64.so: undefined symbol: cblas_dscal
> I followed guide: https://spark.apache.org/docs/latest/mllib-guide.html section dependencies.
> Am I missing something?
> How to force Spark to use openblas library?
> Thanks, Tomas



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org