[mpich-discuss] Include file problem
Erhan Erdogan
Erhan.Erdogan at ankara.edu.tr
Thu May 10 13:34:53 CDT 2012
No the 'mpi_variables.h' is in /home/me/mycode/ directory. How can I use the mpich2 ' s mpif90? I'm trying to use
./configure FC=mpich2 but I see ' ./configure command not found' error. I followed all the steps in mpich2 installer's guide. Where is my mistake?
On May 10, 2012, at 9:48 AM, Anthony Chan wrote:
>
>
> ----- Original Message -----
>> You are right. I'm trying to insert my own include files.
>>
>> mpif90 -show :
>>
>> gfortran -I/usr/lib64/mpi/gcc/openmpi/include -pthread
>> -I/usr/lib64/mpi/gcc/openmpi/lib64 -L/usr/lib64/mpi/gcc/openmpi/lib64
>> -lmpi_f90 -lmpi_f77 -lmpi -lopen-rte -lopen-pal -ldl
>> -Wl,--export-dynamic -lnsl -lutil -lm -ldl
>
> The mpif90 that you are using is not from mpich2. It is openmpi's mpif90
> which probably does not read PROFILE_PRELIB and PROFILE_INCPATHS
>
>> The error code is :
>>
>> MT2DFEM.f90:17: Error: Can't open included file 'MPI_variables.h'
>
> Is MPI_variables.h in $PROFILE_INCPATHS ?
>
>>
>> Erhan
>>
>> On May 9, 2012, at 11:25 PM, Anthony Chan wrote:
>>
>>>
>>> I assume you are trying to insert your own profiling library ?
>>> What is the output of "mpif90 -show" ?
>>>
>>> ----- Original Message -----
>>>> Dear group members,
>>>>
>>>> I have asked before for the mpich2 compiling problems. I have
>>>> solved
>>>> the problem. I can compile and run the examples on my
>>>> multi-processor
>>>> server. But I can't compile my parallel program. It was running on
>>>> windows with Visual Studio. But now when i compile it on open suse
>>>> using mpif90 it gives ' can't find include file *.h ' error. My
>>>> include files are in the same directory with the code. How can i
>>>> fix
>>>> this problem?
>>>>
>>>> I tried
>>>> PROFILE_PRELIB="-L/usr/local/myprof/lib -lmyprof"
>>>> PROFILE_INCPATHS="-I/usr/local/myprof/include"
>>>>
>>>> but it did not work.
>>>>
>>>> Thank you
>>>>
>>>> Erhan
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> mpich-discuss mailing list mpich-discuss at mcs.anl.gov
>>>> To manage subscription options or unsubscribe:
>>>> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
>>> _______________________________________________
>>> mpich-discuss mailing list mpich-discuss at mcs.anl.gov
>>> To manage subscription options or unsubscribe:
>>> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
> _______________________________________________
> mpich-discuss mailing list mpich-discuss at mcs.anl.gov
> To manage subscription options or unsubscribe:
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
More information about the mpich-discuss
mailing list