Issue274

Title downward script fails on Mac OS X because of time API
Priority bug Status resolved
Superseder Nosy List malte, rpgoldman
Assigned To malte Keywords
Optional summary

Created on 2011-09-02.21:34:07 by rpgoldman, last changed by malte.

Files
File name Uploaded Type Edit Remove
downward rpgoldman, 2011-09-02.21:35:09 application/octet-stream
plan-ipc rpgoldman, 2011-09-06.01:53:03 application/octet-stream
Messages
msg1753 (view) Author: malte Date: 2011-09-09.14:37:17
Done and pushed to the master repository.

I made a few changes to the scripts to make them closer in style to our other
scripts and don't have a Mac to test it on, so let me know if there are still
any issues.
msg1748 (view) Author: rpgoldman Date: 2011-09-06.01:52:45
Sure.  I am attaching a new version of plan-ipc.  Note that this is tested only on 
the Mac, so you should verify that I haven't broken the behavior on Linux.
msg1747 (view) Author: malte Date: 2011-09-05.19:43:22
Robert, could you maybe make (and test) a similar change to src/downward-ipc?
This also uses "time". I guess I could adapt your change to that file easily
enough, but I don't have a Mac to test it.

This is not properly documented yet, but it's a script that can be used to run
the complete translate/preprocess/search cycle while also properly keeping track
of time for the portfolio settings we used at IPC 2008.

Usage:

$ ./plan-ipc CONFIG DOMAIN_FILE PROBLEM_FILE PLAN_FILE

where CONFIG is a configuration alias like "seq-sat-lama-2011", DOMAIN_FILE and
PROBLEM_FILE are the PDDL inputs, and PLAN_FILE is the file name for the plan
(or plans, for anytime configurations) to be generated.
msg1733 (view) Author: malte Date: 2011-09-03.14:38:20
Thanks! I'm currently travelling, but will have a look on Monday.
msg1731 (view) Author: rpgoldman Date: 2011-09-02.21:34:07
I was trying to get FD to work on Mac OS X and had trouble with the downward 
bash script.  The problem arises because the Mac's time command has a different 
API from the version on linux.

The problem can be fixed by installing "gtime" --- GNU time --- on the Mac, 
through Mac Ports and using that.

I'm attaching a new version of the downward script that checks for whether you 
are on a Mac or not, and if so, tries to use gtime.  It will print an error 
message to tell you that you need gtime, if you do.

I hope that this will be useful to you.
History
Date User Action Args
2011-09-09 14:37:18maltesetstatus: chatting -> resolved
messages: + msg1753
2011-09-06 01:53:03rpgoldmansetfiles: + plan-ipc
2011-09-06 01:52:45rpgoldmansetmessages: + msg1748
2011-09-05 19:43:22maltesetmessages: + msg1747
2011-09-03 14:38:21maltesetstatus: unread -> chatting
nosy: + malte
messages: + msg1733
assignedto: malte
2011-09-02 21:35:09rpgoldmansetfiles: + downward
2011-09-02 21:34:07rpgoldmancreate