[Trilinos-Users] [Trilinos-Developers] Fwd: [EXTERNAL] [Pytrilinos-users] I have trouble with installation

Nico Schlömer nico.schloemer at gmail.com
Sat Sep 15 04:14:58 MDT 2012


There's two things that you should have to set:

-D BLAS_LIBRARY_DIRS:PATH="/opt/intel/mkl/lib/intel64"
-D BLAS_LIBRARY_NAMES:STRING="mkl_blas95_lp64"

--Nico



On Sat, Sep 15, 2012 at 6:44 AM, Bill Spotz <wfspotz at sandia.gov> wrote:
> Could someone please help this user link Trilinos against MKL?
>
> Thanks
>
> Begin forwarded message:
>
> From: SungHwan Choi <sunghwanchoi91 at gmail.com>
> Subject: Re: [EXTERNAL] [Pytrilinos-users] I have trouble with installation
> Date: September 14, 2012 7:24:37 PM MDT
> To: Bill Spotz <wfspotz at sandia.gov>
>
> Oh.... Thank you.
> After I correct what you said and put blas directory that program require, I
> got the other error message.
>
>
> cmake  -D Trilinos_ENABLE_PyTrilinos:BOOL=ON -D BUILD_SHARED_LIBS:BOOL=ON -D
> Trilinos_ENABLE_ALL_OPTIONAL_PACKAGES:BOOL=ON -D
> MPI_BASE_DIR:PATH=/usr/local/ -D MPI_EXEC:FILEPATH=/usr/local/bin/mpirun -D
> BLAS_LIBRARY_NAMES:PATH=/opt/intel/mkl/lib/intel64 -D
> BLAS_LIBRARY_NAME:STRING=libmkl_blas95_lp64.a
> /home/guest/work/shchoi/programs/trilinos-10.12.2-Source
>
> bla-bla
>
>
> Getting information for all enabled TPLs ...
> -- Processing enabled TPL: Pthread
> --   Attempting to enable tentatively enabled TPL 'Pthread' ...
> --   TPL_Pthread_LIBRARIES='/usr/lib/libpthread.so'
> --   TPL_Pthread_INCLUDE_DIRS='/usr/include'
> --   Attempt to enable tentatively enabled TPL 'Pthread' passed!
> -- Processing enabled TPL: BLAS
> --   Searching for library '/opt/intel/mkl/lib/intel64' ...
> --   Warning: Could not find a library in the set
> "/opt/intel/mkl/lib/intel64" for the TPL BLAS!  Please manually set
> BLAS_LIBRARY_DIRS and/or BLAS_LIBRARY_NAMES or just TPL_BLAS_LIBRARIES to
> point to the BLAS libraries!
> CMake Error at
> cmake/tribits/package_arch/TribitsTplDeclareLibraries.cmake:342 (MESSAGE):
>   Could not find the BLAS Library! Please manually set BLAS_LIBRARY_DIRS
>   and/or BLAS_LIBRARY_NAMES or just TPL_BLAS_LIBRARIES to point to the BLAS
>   libraries!
> Call Stack (most recent call first):
>   cmake/TPLs/FindTPLBLAS.cmake:58 (TRIBITS_TPL_DECLARE_LIBRARIES)
>   cmake/tribits/package_arch/TribitsGlobalMacros.cmake:1063 (INCLUDE)
>   cmake/tribits/package_arch/TribitsProjectImpl.cmake:252
> (TRIBITS_PROCESS_ENABLED_TPLS)
>   cmake/tribits/package_arch/TribitsProject.cmake:96 (TRIBITS_PROJECT_IMPL)
>   CMakeLists.txt:88 (TRIBITS_PROJECT)
>
> -- Configuring incomplete, errors occurred!
>
>
> It does not understan blas directory that I put on it. actually as you can
> see on my input line, I use mkl library instead of blas library. I think mkl
> library is okay because I used it in other programs. Is it possible for
> trilinos to replace blas to mkl library? if possible why I got error
> message?
>
>
> Best
> Sunghwan Choi
>
> 2012/9/15 Bill Spotz <wfspotz at sandia.gov>
>>
>> You misspelled "PyTrilinos".
>>
>> On Sep 14, 2012, at 10:40 AM, SungHwan Choi wrote:
>>
>> > Thank you so much. I solved problem changing build directory.
>> > Unfortunately new problem occured.
>> >
>> > root at aims-desktop:/home/guest/work/shchoi/programs/build_trilinos#cmake
>> > -D Trilinos_ENABLE_PyTrilions:BOOL=ON -D BUILD_SHARED_LIBS:BOOL=ON -D
>> > Trilinos_ENABLE_ALL_OPTIONAL_PACKAGES:BOOL=ON -D
>> > MPI_BASE_DIR:PATH=/usr/local/ -D MPI_EXEC:FILEPATH=/usr/local/bin/mpirun
>> > /home/guest/work/shchoi/programs/trilinos-10.12.2-Source
>> >
>> > after put the cmake line on the screen, I got configuration message and
>> > finally,
>> >
>> > Configuring individual enabled Trilinos packages ...
>> >
>> > ***
>> > *** WARNING:  There were no packages configured so no libraries or
>> > tests/examples will be built!
>> > ***
>> >
>> > Exporting library dependencies ...
>> >
>> > Finished configuring Trilinos!
>> > -- Configuring done
>> > -- Generating done
>> > -- Build files have been written to:
>> > /home/guest/work/shchoi/programs/build_trilinos
>> >
>> >
>> > as you can see, No Packages were configured altough I put -D
>> > Trilinos_ENABLE_PyTrilions:BOOL=ON option. Could you solved the problem?
>> > please give a favor to the biginner
>> >
>> > Best
>> > Sunghwan Choi
>> >
>> >
>> > 2012/9/14 Bill Spotz <wfspotz at sandia.gov>
>> > What you are describing should work.  It is exactly how I build
>> > Trilinos.  So I can only assume there is some subtle difference between what
>> > you described and what you are actually doing.  Try setting up a build
>> > directory that is not a subdirectory of the Trilinos source directory and
>> > then when you point cmake to the source directory, don't use a trailing
>> > slash.  I am out of suggestions otherwise.
>> >
>> > Actually, you want MPI_EXEC to be /usr/local/bin/mpiexec, or sometimes
>> > it is mpirun.  In this case, MPI_BASE would be /usr/local, although for a
>> > standard directory like that, you probably don't have to specify it.
>> >
>> > -Bill
>> >
>> > On Sep 14, 2012, at 12:32 AM, SungHwan Choi wrote:
>> >
>> > > Dear Bill,
>> > > Thanks to your quick answer. Unfortunately, the problem was no solved.
>> > > I have two questions.
>> > > First, I already tried to configure without CMakeCache.txt file as the
>> > > program ask but nothing was changed. Since I am no firmiliar to cmake could
>> > > you explain more detaily if you have other suggestions?
>> > > Second, I think MPI_EXEC:FILEPATH=/usr/local/bin/mpicc is quite clear.
>> > >
>> > > # which mpicc
>> > > /usr/local/bin/mpicc
>> > >
>> > > but what directory shall i put on MPI_BASE_DIR ?
>> > >
>> > > Best
>> > > Sunghwan Choi
>> > > 2012/9/14 Bill Spotz <wfspotz at sandia.gov>
>> > > Cmake thinks it is building in the directory
>> > > /home/guest/work/shchoi/programs/trilinos-10.12.2-Source, possibly because
>> > > it is cached in CMakeCache.txt.  Be sure to delete that file.
>> > >
>> > > Enable MPI with -D TPL_ENABLE_MPI:BOOL=ON.  You might optionally need
>> > >
>> > >   -D MPI_BASE_DIR:PATH=...
>> > >   -D MPI_EXEC:FILEPATH=...
>> > >
>> > > -Bill
>> > >
>> > >
>> > > On Sep 13, 2012, at 8:33 PM, SungHwan Choi wrote:
>> > >
>> > > > Hi  I am beginner of pytrilinos.
>> > > > Now, I want to install pytrilinos on my linux computer but I failed.
>> > > > anyone can help me?
>> > > >
>> > > > trilinos-10.12.2-Source#mkdir build
>> > > > trilinos-10.12.2-Source#cd build
>> > > >
>> > > > build# cmake -D Trilinos_ENABLE_PyTrilions:BOOL=ON -D
>> > > > BUILD_SHARED_LIBS:BOOL=ON -D Trilinos_ENABLE_ALL_OPTIONAL_PACKAGES:BOOL=ON
>> > > > ../
>> > > >
>> > > > Configuring Trilinos build directory
>> > > >
>> > > > CMake Error at
>> > > > cmake/tribits/package_arch/TribitsProjectImpl.cmake:105 (MESSAGE):
>> > > >   ERROR!
>> > > >
>> > > > CMAKE_CURRENT_SOURCE_DIR=/home/guest/work/shchoi/programs/trilinos-10.12.2-Source
>> > > >   ==
>> > > >
>> > > > CMAKE_CURRENT_BINARY_DIR=/home/guest/work/shchoi/programs/trilinos-10.12.2-Source
>> > > >
>> > > >
>> > > >   Trilinos does not support in source builds!
>> > > >
>> > > >   NOTE: You must now delete the CMakeCache.txt file and the
>> > > > CMakeFiles/
>> > > >   directory under the source directory for Trilinos or you will not
>> > > > be able
>> > > >   to configure Trilinos correctly!
>> > > >
>> > > >   You must now run something like:
>> > > >
>> > > >     $ rm -r CMakeCache.txt CMakeFiles/
>> > > >
>> > > >   Please create a different directory and configure Trilinos under
>> > > > that such
>> > > >   as:
>> > > >
>> > > >     $ mkdir MY_BUILD
>> > > >     $ cd MY_BUILD
>> > > >     $ cmake [OPTIONS] ..
>> > > > Call Stack (most recent call first):
>> > > >   cmake/tribits/package_arch/TribitsProject.cmake:96
>> > > > (TRIBITS_PROJECT_IMPL)
>> > > >   CMakeLists.txt:88 (TRIBITS_PROJECT)
>> > > >
>> > > >
>> > > > -- Configuring incomplete, errors occurred!
>> > > >
>> > > > and also, I want to install it with mpi how can I do?
>> > > >
>> > > > Best
>> > > > Sunghwan Choi
>> > > > _______________________________________________
>> > > > Pytrilinos-users mailing list
>> > > > Pytrilinos-users at software.sandia.gov
>> > > > http://software.sandia.gov/mailman/listinfo/pytrilinos-users
>> > >
>> > > ** Bill Spotz                                              **
>> > > ** Sandia National Laboratories  Voice: (505)845-0170      **
>> > > ** P.O. Box 5800                 Fax:   (505)284-0154      **
>> > > ** Albuquerque, NM 87185-0370    Email: wfspotz at sandia.gov **
>>
>>
>
>
> ** Bill Spotz                                              **
>
> ** Sandia National Laboratories  Voice: (505)845-0170      **
>
> ** P.O. Box 5800                 Fax:   (505)284-0154      **
>
> ** Albuquerque, NM 87185-0370    Email: wfspotz at sandia.gov **
>
>
>
>
>
>
>
> _______________________________________________
> Trilinos-Developers mailing list
> Trilinos-Developers at software.sandia.gov
> http://software.sandia.gov/mailman/listinfo/trilinos-developers
>



More information about the Trilinos-Users mailing list