1752806 Members
6061 Online
108789 Solutions
New Discussion юеВ

TAU installation

 
Kamath
Occasional Advisor

TAU installation

Hi,
When i install TAU on hpux server after installing pdt it configures but gives follwing error when giving the command make install. When configuring i have specied the aCC compiler, mpi include, mpi library and pdt paths. I have attached the error with this mail. Can anyone please help me out.

Thank you in advance.
13 REPLIES 13
Dennis Handly
Acclaimed Contributor

Re: TAU installation

Please use the correct forum for your thread: HP-UX > Languages:
http://forums.itrc.hp.com/service/forums/categoryhome.do?categoryId=150
I'll ask the moderators to move it.

Your errors seem to be:
TauMpiExtensions.c:3798: error: conflicting types for 'MPI_File_iread_at'
/opt/mpi/include/mpio.h:178: error: previous declaration of 'MPI_File_iread_at' was here

What's on line 3798 and 178?
Kamath
Occasional Advisor

Re: TAU installation

Hello,
can u please tell which line do u want me to say? when giving make install it gives me those errors
Dennis Handly
Acclaimed Contributor

Re: TAU installation

>can you please tell which line do you want me to say?

The lines from the above error messages: lines 3798 and 178
Kamath
Occasional Advisor

Re: TAU installation

Hello,
in line 3758 there is a function in that file. it is :

int MPI_File_iread_at( MPI_File fh, MPI_Offset offset, void * buf, int count, MPI_Datatype datatype, MPI_Request * request)
{
int retvalue;
TAU_PROFILE_TIMER(t, "MPI_File_iread_at()", "", TAU_MESSAGE);
TAU_PROFILE_START(t);
retvalue = PMPI_File_iread_at( fh, offset, buf, count, datatype, request) ;
TAU_PROFILE_STOP(t);
return retvalue;
}

and in line 178 there is a prototype declaration. it is :

int MPI_File_iread_at(MPI_File fh, MPI_Offset offset, void *buf,
int count, MPI_Datatype datatype, MPIO_Request *request);


i am also sending both the files if u need it for further reference.
Thank you
Dennis Handly
Acclaimed Contributor

Re: TAU installation

>line 3758 there is a function in that file
int MPI_File_iread_at(MPI_File, MPI_Offset, void*, int, MPI_Datatype, MPI_Request*)

(You mean line 3798.)

>line 178 there is a prototype declaration.
int MPI_File_iread_at(MPI_File, MPI_Offset, void*, int, MPI_Datatype, MPIO_Request*);

If you look at 3676 and set -DTAU_MPIOREQUEST you should get a match.
Kamath
Occasional Advisor

Re: TAU installation

Yes sorry its 3798. Can u please tell me where do i set '-DTAU_MPIOREQUEST'?
Dennis Handly
Acclaimed Contributor

Re: TAU installation

>Can u please tell me where do i set -DTAU_MPIOREQUEST?

You set it on the compile command line, or in the makefile with similar -D options.
Kamath
Occasional Advisor

Re: TAU installation

i did the changes in makefile. but still its giving me the same error.
Dennis Handly
Acclaimed Contributor

Re: TAU installation

>i did the changes in makefile. but still its giving me the same error.

Do you see that -D on the compile command?
Can you grep the sources for TAU_MPIOREQUEST to see if there is an undef for it?