[parsec-users] Errors running Parsec benchmarks in M5

Christian Bienia cbienia at CS.Princeton.EDU
Sat Aug 22 01:46:31 EDT 2009


Hi Ef,

 

I was mistaken concerning disabling error checking. I confused swaptions
with blackscholes where error checking is optional.

 

I have no idea why the programs crash at the end of main(). I'd guess it's
some sort of library issue, but I have no idea how to debug that.

 

- Chris

 

 

From: parsec-users-bounces at lists.cs.princeton.edu
[mailto:parsec-users-bounces at lists.cs.princeton.edu] On Behalf Of ef
Sent: Saturday, August 22, 2009 1:20 AM
To: PARSEC Users
Subject: Re: [parsec-users] Errors running Parsec benchmarks in M5

 

Hello,

The flush technique works it solved that problem. However now I am dealing
wiith this issue:
Swaptions now issues a segmentation fault on exit.

Now i have two programs that seg fault upon exit of main. (Fluid Animate
also)

Im looking into:
http://www.unix.com/high-level-programming/59634-c-segmentation-fault-exit-m
ain-2.html

That might be the issue. Do you have any ideas?

Also you mentioned that I can disable error checking on swaptions? I glanced
through the code I have no clue how to do that....Is it a flag or are you
reffering to simply removing of the for loop that prints the std of error.

Thanks

EF





2009/8/21 Christian Bienia <cbienia at cs.princeton.edu>

Ef,

 

It might be that you only simulate until the program terminates and not any
further. If your operating system uses asynchronous output by default then
the text output created by the program is still in the buffer and has to be
flushed. So it has been written but the OS hasn't displayed it yet.

 

To force the OS to flush all output buffers before the program exits simply
insert an "fflush(NULL);" after the last printf statement. Chances are
you'll then see all output correctly.

 

- Chris

 

From: parsec-users-bounces at lists.cs.princeton.edu
[mailto:parsec-users-bounces at lists.cs.princeton.edu] On Behalf Of ef
Sent: Friday, August 21, 2009 9:52 PM 

To: PARSEC Users
Subject: Re: [parsec-users] Errors running Parsec benchmarks in M5

 

Hello,

Sorry for the confusion:
The difficulty with facesim is that I am running using M5, therefore in my
disk images need to supply a rcs file. It would of been easier and more
flexible if I can specify the input and output directory like the other
parsec benchmarks. But I can still manage.



As for swaptions there is an error, sorry for the lack of clarity:
There should be 16 swaptions but this is the exact output:

PARSEC Benchmark Suite Version 2.1
Number of Simulations: 5000,  Number of threads: 4 Number of swaptions: 16
Swaption0: [SwaptionPrice: 0.0000234735 StdError: 0.0000083599] 
Swaption1: [SwaptionPrice: 0.0000234735 StdError: 0.0000083599] 
Swaption2: [SwaptionPrice: 0.0000234735 StdError: 0.0000083599] 
Swaption3: [SwaptionPrice: 0.0000234735 StdError: 0.0000083599] 
Swaption4: [SwaptionPrice: 0.0000234735 StdError: 0.0000083599] 
Swaption5: [SwaptionPrice: 0.0000234735 StdError: 0.0000083599] 
Swaption6: [SwaptionPrice: 0.0000234735 StdError: 0.0000083599] 
Swaption7: [SwaptionPrice: 0.0000234735 StdError: 0.0000083599] 
Swa


Not sure whats going on here....The program exit while typing "Swa". Very
strange.


Thanks
EF

2009/8/21 Christian Bienia <cbienia at cs.princeton.edu>

Ef,

 

If I remember correctly facesim automatically reads and writes all inputs
and outputs relative to the current directory. So simply run the program
from whatever directory you want to use. Parsecmgmt does that automatically
for you.

 

The output of blackscholes looks good, the errors are about what you can be
expected from varying floating-point implementations. Don't worry about ti.
It's normal that fp output varies a little on different outputs because fp
calculations have to round numbers. You can account for that by making a
comparison within a certain tolerance (target value +/- epsilon). Don't
forget to disable error checking for the final workload binary, it's not
supposed to be included for performance measurements.

 

- Chris

 

 

From: parsec-users-bounces at lists.cs.princeton.edu
[mailto:parsec-users-bounces at lists.cs.princeton.edu] On Behalf Of ef
Sent: Friday, August 21, 2009 7:00 PM


To: PARSEC Users
Subject: Re: [parsec-users] Errors running Parsec benchmarks in M5

 

Hello,



For facesim the error was silly, the issue is it was looking in the wrong
path for input, from what I can tell you CANNOT set the input directory, do
you know how?




For swaptions I fixed " the unaligned access error" by linking to different
libs which also removed the seg fault. However I am stuck here:

PARSEC Benchmark Suite Version 2.1
Number of Simulations: 5000,  Number of threads: 4 Number of swaptions: 16
Swaption0: [SwaptionPrice: 0.0000234735 StdError: 0.0000083599] 
Swaption1: [SwaptionPrice: 0.0000234735 StdError: 0.0000083599] 
Swaption2: [SwaptionPrice: 0.0000234735 StdError: 0.0000083599] 
Swaption3: [SwaptionPrice: 0.0000234735 StdError: 0.0000083599] 
Swaption4: [SwaptionPrice: 0.0000234735 StdError: 0.0000083599] 
Swaption5: [SwaptionPrice: 0.0000234735 StdError: 0.0000083599] 
Swaption6: [SwaptionPrice: 0.0000234735 StdError: 0.0000083599] 
Swaption7: [SwaptionPrice: 0.0000234735 StdError: 0.0000083599] 
Swa

Thats exactly what happens, I have no clue whats going on.

Thanks
EF


_______________________________________________
parsec-users mailing list
parsec-users at lists.cs.princeton.edu
https://lists.cs.princeton.edu/mailman/listinfo/parsec-users

 


_______________________________________________
parsec-users mailing list
parsec-users at lists.cs.princeton.edu
https://lists.cs.princeton.edu/mailman/listinfo/parsec-users

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/parsec-users/attachments/20090822/a93b9bbb/attachment.html>


More information about the parsec-users mailing list