getfem-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Getfem-users] Error in MUMPS configuration - GetFEM version 4.2


From: Konstantinos Poulios
Subject: Re: [Getfem-users] Error in MUMPS configuration - GetFEM version 4.2
Date: Fri, 22 Feb 2013 11:25:17 +0100

Dear Mahdi,

please save the following into a file called conftest.cpp:

| /* confdefs.h */
| #define PACKAGE_NAME "getfem"
| #define PACKAGE_TARNAME "getfem"
| #define PACKAGE_VERSION "4.2"
| #define PACKAGE_STRING "getfem 4.2"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "getfem"
| #define VERSION "4.2"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_MUPARSER_H 1
| /* end confdefs.h.  */
|
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char smumps_c ();
| #ifdef FC_DUMMY_MAIN
| #ifndef FC_DUMMY_MAIN_EQ_F77
| #  ifdef __cplusplus
|      extern "C"
| #  endif
|    int FC_DUMMY_MAIN() { return 1; }
| #endif
| #endif
| int
| main ()
| {
| return smumps_c ();
|   ;
|   return 0;
| }

and then run:

mpicxx -o conftest -mkl -O3  -DGMM_USES_BLAS
-I/work/02077/mhaddad/XFEM/include/
-I/work/02077/mhaddad/XFEM/MUMPS_4.10.0/include/ -mkl -lm -limf
conftest.cpp  -L/opt/apps/gcc4_4/atlas/3.9.32/lib/ -latlas -lcblas

then you will get more information why the check fails. Probably some
more libraries are required by atlas.

Kind regards

Kostas


On Fri, Feb 22, 2013 at 12:32 AM, Mahdi Haddad <address@hidden> wrote:
> Dear Roman,
>
> I configured GetFEM 4.2 using the following:
>
> ./configure --prefix=/work/02077/mhaddad/XFEM/ --enable-shared --with-pic
> --enable-muparser=yes
> --with-muparser-include-dir=/work/02077/mhaddad/XFEM/include/
> --with-mumps="-L/work/02077/mhaddad/XFEM/MUMPS_4.10.0/lib/ -lsmumps -ldmumps
> -lcmumps -lzmumps -lmumps_common"
> --with-mumps-include-dir=/work/02077/mhaddad/XFEM/MUMPS_4.10.0/include/
> --enable-par-mumps QHULL_LIBS="-L/work/02077/mhaddad/XFEM/qhull-2010.1/src
> -lqhull" --enable-metis="-L/opt/apps/intel11_1/mvapich2_1_6/pmetis/3.1.1/"
> --enable-boost --includedir=/work/02077/mhaddad/XFEM/qhull-2010.1/src
> --enable-paralevel=2 --with-blas="-L/opt/apps/gcc4_4/atlas/3.9.32/lib/
> -latlas -lcblas" --enable-scilab CC=mpicc CXX=mpicxx FC=mpif90 CFLAGS="-mkl"
> CXXFLAGS="-mkl" FCFLAGS="-mkl" LDFLAGS="-mkl -lm -limf"
>
> I have this error:
>
> checking for library containing smumps_c... no
> configure: error: The function smumps_c couldn't be found in the provided
> MUMPS libraries.
>
> I executed this to check if there is smumps_c in MUMPS libraries or not:
>
> nm /work/02077/mhaddad/XFEM/MUMPS_4.10.0/lib/libsmumps.a | grep -e
> "\<smumps_c\>"
>
> I got this result:
>
> smumps_c.o:
> 0000000000000000 T smumps_c
>
> I have attached my config.log.
>
> I was wondering why I have smumps_c error while there is smumps_c.o in
> smumps_c library?
>
> Actually, after installing MUMPS, I executed the following commands to check
> MUMPS and all of them, resulted in 1 2 3 4 5 which shows MUMPS works well.
>
>     "./ssimpletest < input_simpletest_real"
>     "./dsimpletest < input_simpletest_real"
>     "./csimpletest < input_simpletest_cmplx"
>     "./zsimpletest < input_simpletest_cmplx"
>
> I used mkl as the blas library in MUMPS and getfem 4.2. I'm wondering if the
> error originates from this or not?
>
> Best regards,
> Mahdi
>
>
> On Fri, Feb 15, 2013 at 4:29 PM, Mahdi Haddad <address@hidden>
> wrote:
>>
>> Dear Roman,
>>
>> I configured this way:
>> ./configure --prefix=/work/02077/mhaddad/XFEM/ --enable-shared --with-pic
>> --enable-boost --enable-muparser=yes
>> --with-muparser-include-dir=/work/02077/mhaddad/XFEM/include/
>> --enable-par-mumps
>> --with-mumps-include-dir=/work/02077/mhaddad/XFEM/MUMPS_4.10.0/include/
>> --with-mumps=/work/02077/mhaddad/XFEM/MUMPS_4.10.0/lib
>> QHULL_LIBS="-L/work/02077/mhaddad/XFEM/qhull-2010.1/src -lqhull"
>> --enable-metis=/opt/apps/intel11_1/mvapich2_1_6/pmetis/3.1.1/
>> --enable-scilab CC=mpicc CXX=mpicxx FC=mpif90 CFLAGS="-mkl" CXXFLAGS="-mkl"
>> FCFLAGS="-mkl" --includedir=/work/02077/mhaddad/XFEM/qhull-2010.1/src
>> --enable-paralevel=2 CPPFLAGS="-I
>> /work/02077/mhaddad/XFEM/MUMPS_4.10.0/include" LDFLAGS="-L
>> /work/02077/mhaddad/XFEM/MUMPS_4.10.0/lib"
>>
>> However, I still have the same error as before:
>> checking for library containing smumps_c... no
>> configure: error: The function smumps_c couldn't be found in the provided
>> MUMPS libraries.
>>
>> As you see, I have added -mkl as CFLAGS, CXXFLAGS, and FCFLAGS. Is there
>> any problems with using mkl in GetFEM if we want to use parallel MUMPS?
>>
>> The new config.log file attached.
>>
>> Best regards,
>> Mahdi
>>
>>
>>
>>
>> On Fri, Feb 15, 2013 at 3:50 PM, Roman Putanowicz <address@hidden>
>> wrote:
>>>
>>> > Dear Roman,
>>> >
>>> > Thanks for your prompt response.
>>> >
>>> > I added LDFLAGS="-L /work/02077/mhaddad/XFEM/MUMPS_4.10.0/include" to
>>> > the
>>> > GetFEM configuration. However, I still have the same error.
>>>
>>> The option -L requires specification of directory where library files
>>> are located (library files are binary files of compiled functions,
>>> usually with the extension *.a for static libraries or *.so for
>>> shared (on Windows it would be *.dxx)). You have errorneously given
>>> the location of header files (which are c/c++ source files for
>>> inclusion in your source code).
>>> To be on safe side please try to set two variables:
>>>
>>>    CPPFLAGS="-I path_to_header_files_directory"
>>>    LDFLAGS="-L path_to_library_files_directory"
>>>
>>> Let me know if this solves the problem.
>>>
>>> Regards
>>>
>>> Roman
>>
>>
>>
>>
>> --
>> ******************************************
>> Mahdi Haddad (PhD student)
>> Graduate Research Assistant
>> Center for Petroleum and Geosystems Engineering (CPGE)
>> Cockrell School of Engineering
>> The University of Texas at Austin
>> Emailto: address@hidden
>> ******************************************
>
>
>
>
> --
> ******************************************
> Mahdi Haddad (PhD student)
> Graduate Research Assistant
> Center for Petroleum and Geosystems Engineering (CPGE)
> Cockrell School of Engineering
> The University of Texas at Austin
> Emailto: address@hidden
> ******************************************
>
> _______________________________________________
> Getfem-users mailing list
> address@hidden
> https://mail.gna.org/listinfo/getfem-users
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]