problem getting value from filename

View: New views
3 Messages — Rating Filter:   Alert me  

problem getting value from filename

by Åsmund Østvold :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,


First I want to congratulate you on a very nice tool!

I am modifying the perfbase.0.9.0/auto_compare/PMB/ example.  I have been  
able to change the experiment so that it is not MPI A, B and C but MPICH  
and OpenMPI.  My problem is that I want to add network for the run.  My  
suggestion for the input files is:

PMB-MPI1_MPI-OpenMPI_nn2_ppn1_interIB_run1.log
PMB-MPI1_MPI-OpenMPI_nn2_ppn1_interTCP_run1.log
PMB-MPI1_MPI-OpenMPI_nn2_ppn1_interGM_run1.log


In auto-pmb_exp.xml I have added:

   <parameter occurence="once">
     <name>Network_inter</name>
     <synopsis>Network used between nodes</synopsis>

     <datatype>string</datatype>
     <valid>IB</valid>
     <valid>TCP</valid>
     <valid>GM</valid>
   </parameter>


In auto-pmb_input.xml I have done:

   <filename_location>
     <name>Network_inter</name>
       <match>_inter</match>
   </filename_location>


When I run I get this:

[aostvold@dpc-50 pe1850_input_IB]$ perfbase input -v -d  
../auto-pmb_input.xml PMB-MPI1_MPI-OpenMPI_nn2_ppn2_interIB_run1.log
#* importing data from
     PMB-MPI1_MPI-OpenMPI_nn2_ppn2_interIB_run1.log (parsed according to  
../auto-pmb_input.xml)
#* Parsing input description from XML file ../auto-pmb_input.xml
#* hashing file PMB-MPI1_MPI-OpenMPI_nn2_ppn2_interIB_run1.log
#* file PMB-MPI1_MPI-OpenMPI_nn2_ppn2_interIB_run1.log has 301 lines
#* Processing data file  PMB-MPI1_MPI-OpenMPI_nn2_ppn2_interIB_run1.log
#+ Creating new run with index 3
#* ERROR: "invalid content 'IB_run1.log' for value 'Network_inter'"
[aostvold@dpc-50 pe1850_input_IB]$



I am guessing there is something wrong in auto-pmb_input.xml but I am not  
able to figure out what to write instead.  Any help would be appreciated!  
A pointer to some documentation or an example that do it the correct way,  
anything ;)

I believe I have scanned the documentation that comes with the tar-ball.  
If I have missed it I apologize.



Best regards

Åsmund

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: problem getting value from filename

by Joachim Worringen-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Åsmund Østvold schrieb:

> Hi,
>
>
> First I want to congratulate you on a very nice tool!
>
> I am modifying the perfbase.0.9.0/auto_compare/PMB/ example.  I have
> been able to change the experiment so that it is not MPI A, B and C but
> MPICH and OpenMPI.  My problem is that I want to add network for the
> run.  My suggestion for the input files is:
>
> PMB-MPI1_MPI-OpenMPI_nn2_ppn1_interIB_run1.log
> PMB-MPI1_MPI-OpenMPI_nn2_ppn1_interTCP_run1.log
> PMB-MPI1_MPI-OpenMPI_nn2_ppn1_interGM_run1.log
>
>
> In auto-pmb_exp.xml I have added:
>
>   <parameter occurence="once">
>     <name>Network_inter</name>
>     <synopsis>Network used between nodes</synopsis>
>
>     <datatype>string</datatype>
>     <valid>IB</valid>
>     <valid>TCP</valid>
>     <valid>GM</valid>
>   </parameter>
>
>
> In auto-pmb_input.xml I have done:
>
>   <filename_location>
>     <name>Network_inter</name>
>       <match>_inter</match>
>   </filename_location>

Hi Åsmund,

just "keep it simple" and try this in auto-pmb_input.xml:

<filename_location>
    <name>Network_inter</name>
</filename_location>

Because perfbase knows what's valid for "Network_inter", it will do the
right thing automatically. Just make sure that the strings "IB", "TCP",
and "GM" do not appear otherwise within the filenames.

Otherwise, you can add the line
        <match terminator="_">_inter</match>
which should also do what you want.

I know, the documentation does not tell you everything yet. But the
mailing list will... ;-)

  Joachim

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: problem getting value from filename

by Åsmund Østvold :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, 06 Jun 2006 20:01:46 +0200, Joachim Worringen <joachim@...>  
wrote:

> Hi Åsmund,
>
> just "keep it simple" and try this in auto-pmb_input.xml:
>
> <filename_location>
>     <name>Network_inter</name>
> </filename_location>
>
> Because perfbase knows what's valid for "Network_inter", it will do the  
> right thing automatically. Just make sure that the strings "IB", "TCP",  
> and "GM" do not appear otherwise within the filenames.
>
> Otherwise, you can add the line
>         <match terminator="_">_inter</match>
> which should also do what you want.
>

Thank you for the suggestion's!  I am using the last suggestion because I  
believe this do not have the problem of a possible IB somewhere else in  
the text.


> I know, the documentation does not tell you everything yet. But the  
> mailing list will... ;-)


No problem.   I am subscribed to all lists and will following them.

Åsmund

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...