Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Jun 2016 12:48:41 +0800
From:      Raymond Cheung <korekontakt@gmail.com>
To:        Torsten Zuehlsdorff <mailinglists@toco-domains.de>
Cc:        Kurt Jaeger <lists@opsec.eu>, ports@freebsd.org
Subject:   Re: Wxlua / Zbstudio
Message-ID:  <CAFGnCTai3%2BfNcJ92apkbF-WQh_UYse0BQBpXqeXsqVRH6CzqSg@mail.gmail.com>
In-Reply-To: <CAFGnCTZPML32ndHBVNeW%2BGcecwNFCZon7qt1sOJLAGz8nObn2w@mail.gmail.com>
References:  <CAFGnCTa_kmYuK6_pmx0eksV%2BX5fazF04dgaH=fGZXUeJWzdy7Q@mail.gmail.com> <CAFGnCTY2z2PFSHkvC_aOQ0HqmP3cibD95hndXQD2yqoSHPjUMQ@mail.gmail.com> <20160609190710.GT41922@home.opsec.eu> <CAFGnCTaYVBmZ-y-AfhMF0mtY1NrKioP0s=3Dmo7aftkiabnXnA@mail.gmail.com> <9f300278-31ab-bc50-1fc7-8e7e6dc44215@toco-domains.de> <CAFGnCTYe13XHjM1-sEHKUpopy_k_ZyXRd%2Bk8rFUX5VkHDXuKYA@mail.gmail.com> <d29c29f2-1ab4-53a5-c571-dc1296e287df@toco-domains.de> <CAFGnCTZPML32ndHBVNeW%2BGcecwNFCZon7qt1sOJLAGz8nObn2w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Compiled log for torch7:
-- Checking for [openblas]
--   Library openblas: /usr/local/lib/libopenblas.so
-- Looking for sgemm_
-- Looking for sgemm_ - not found
-- Checking for [openblas - pthread]
--   Library openblas: /usr/local/lib/libopenblas.so
--   Library pthread: /usr/lib/libpthread.so
-- Looking for sgemm_
-- Looking for sgemm_ - not found
-- Checking for [goto2 - gfortran]
--   Library goto2: /usr/local/lib/libgoto2.so
--   Library gfortran: BLAS_gfortran_LIBRARY-NOTFOUND
-- Checking for [goto2 - gfortran - pthread]
--   Library goto2: /usr/local/lib/libgoto2.so
--   Library gfortran: BLAS_gfortran_LIBRARY-NOTFOUND
-- Checking for [acml - gfortran]
--   Library acml: BLAS_acml_LIBRARY-NOTFOUND
-- Checking for [Accelerate]
--   Library Accelerate: BLAS_Accelerate_LIBRARY-NOTFOUND
-- Checking for [vecLib]
--   Library vecLib: BLAS_vecLib_LIBRARY-NOTFOUND
-- Checking for [ptf77blas - atlas - gfortran]
--   Library ptf77blas: BLAS_ptf77blas_LIBRARY-NOTFOUND
-- Checking for [blas]
--   Library blas: /usr/local/lib/libblas.so
-- Looking for sgemm_
-- Looking for sgemm_ - not found
-- Cannot find a library with BLAS API. Not using BLAS.

-- Checking for [openblas]
--   Library openblas: /usr/local/lib/libopenblas.so
-- Checking for [openblas - pthread]
--   Library openblas: /usr/local/lib/libopenblas.so
--   Library pthread: /usr/lib/libpthread.so
-- Checking for [goto2 - gfortran]
--   Library goto2: /usr/local/lib/libgoto2.so
--   Library gfortran: BLAS_gfortran_LIBRARY-NOTFOUND
-- Checking for [goto2 - gfortran - pthread]
--   Library goto2: /usr/local/lib/libgoto2.so
--   Library gfortran: BLAS_gfortran_LIBRARY-NOTFOUND
-- Checking for [acml - gfortran]
--   Library acml: BLAS_acml_LIBRARY-NOTFOUND
-- Checking for [Accelerate]
--   Library Accelerate: BLAS_Accelerate_LIBRARY-NOTFOUND
-- Checking for [vecLib]
--   Library vecLib: BLAS_vecLib_LIBRARY-NOTFOUND
-- Checking for [ptf77blas - atlas - gfortran]
--   Library ptf77blas: BLAS_ptf77blas_LIBRARY-NOTFOUND
-- Checking for [blas]
--   Library blas: /usr/local/lib/libblas.so
-- Cannot find a library with BLAS API. Not using BLAS.
-- LAPACK requires BLAS
-- Cannot find a library with LAPACK API. Not using LAPACK.

Required libs are installed:
[root@gkvmrcb001 /opt/torch]# pkg info | grep blas
blas-3.5.0_3                   Basic Linear Algebra Subroutines
gotoblas-2.1.13.3.4.0_6        Fast implementation of Basic Linear Algebra
Subprograms
openblas-0.2.18_1,1            Optimized BLAS library based on GotoBLAS2

[root@gkvmrcb001 /opt/torch]# pkg info | grep lapack
lapack-3.5.0                   A library of Fortran 77 subroutines for
linear algebra
lapack++-2.5.4                 Linear Algebra PACKage in C++, a wrapper for
LAPACK


Run time errors:
geev : Lapack library not found in compile time
gels : Lapack library not found in compile time
gesv : Lapack library not found in compile time
gesvd : Lapack library not found in compile time
getrf : Lapack library not found in compile time
potrf : Lapack library not found in compile time
pstrf: Lapack library not found at compile time
syev : Lapack library not found in compile time
trtrs : Lapack library not found in compile time

  2/154 testCholesky ....................................................
[ERROR]
  8/154 gels_reuse ......................................................
[ERROR]
  9/154 inverse .........................................................
[ERROR]
 14/154 gesv_reuse ......................................................
[ERROR]
 19/154 eig_noncontig ...................................................
[ERROR]
 22/154 pstrf ...........................................................
[ERROR]
 35/154 gels_uniquely_determined ........................................
[ERROR]
 38/154 trtrs_reuse .....................................................
[ERROR]
 54/154 gesv ............................................................
[ERROR]
 57/154 gels_underdetermined ............................................
[ERROR]
 60/154 gels_overdetermined .............................................
[ERROR]
 65/154 eig_reuse .......................................................
[ERROR]
 81/154 svd_reuse .......................................................
[ERROR]
 89/154 trtrs ...........................................................
[ERROR]
 92/154 svd_noncontig ...................................................
[ERROR]
110/154 symeig_noncontig ................................................
[ERROR]
115/154 eig .............................................................
[ERROR]
123/154 potri ...........................................................
[ERROR]
129/154 svd .............................................................
[ERROR]
152/154 test_symeig .....................................................
[ERROR]
153/154 potrs ...........................................................
[ERROR]


On Thu, Jun 23, 2016 at 8:04 AM, Raymond Cheung <korekontakt@gmail.com>
wrote:

> Hi Torsten,
>
> OpenBlas (make config; # with OpenMP option), OpenMP, Lapack & ++,
> GotoBlas are installed. Header files of OpenBlas is also included to
> $CMAKE_LIBRARY_PATH. However, I still got the same error message, missing
> lapack.
>
> I tried on both FreeBSD 10.3 and 11 Alpha 4 with gcc, clang34, clang37,
> clang38 and clang-devel. But no luck. FreeBSD 11 Alpha 4 plus
> clang38/clang-devel produced the less errors.
>
> Raymond
> On Jun 22, 2016 16:48, "Torsten Zuehlsdorff" <mailinglists@toco-domains.de>
> wrote:
>
>> Hello Raymond,
>>
>> I call run zbstudio 32bit binary on FreeBSD 11 Alpha 4. I will try to
>>> build
>>> wxlua later.
>>>
>>> Another question about lua / torch is lapack. I tried to make and install
>>> via the OpenBlas port with the flags (add USE_THREAD=1 NUM_THREAD=8 in
>>> order to make) suggested by the link below:
>>> https://github.com/torch/torch7/issues/174
>>>
>>> However, it can't find the .a file of OpenBlas after build/compile. If I
>>> make without flags, it can make install properly. Please help.
>>>
>>
>> Mh, i'm not very familiar with such lua issues. And also i have no clue
>> what you have done and what the concrete problem is.
>> After some recherche i would suggest to try install math/lapack++ or
>> math/lapack. Better the first one since it depends on OpenBlas and provides
>> a file named "lib/liblapackpp.a" The other port provides a file called
>> lib/liblapack.a. I'm not sure which is the correct one - but give it a try.
>>
>> Greetings,
>> Torsten
>>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFGnCTai3%2BfNcJ92apkbF-WQh_UYse0BQBpXqeXsqVRH6CzqSg>