Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running applications in zsim: specifying location of input files used by applications #3

Closed
sparsh0mittal opened this issue May 5, 2014 · 4 comments
Labels

Comments

@sparsh0mittal
Copy link

zsim does not run by traces, so programs have to run on-the-fly.

Many of SPEC application assume certain input files to be in same folder as the one where application is being run. If it try to put those files in main folder, it looks very cluttered, and even then, I don't think it is able to read those files.
Is there an option to specify from where to read the input files.

I tried to use perProcessDir to specify a folder and I put input files there, but could not still run, e.g. gamess.

Any help would be appreciated.

@s5z
Copy link
Owner

s5z commented May 6, 2014

Set sim.perProcessDir = true. Then, create subfolders p0, p1, p2, ... and link or copy your input files there. We launch all our runs using scripts, so each simulation directory is used once. I recommend you script this.

@s5z s5z closed this as completed May 6, 2014
@s5z s5z added the question label May 6, 2014
@sparsh0mittal
Copy link
Author

Thanks for the reply.

Actually, I tried that before also and again today, but could not do that. For example, for gamess,
cytosine.2.inp is required which I copied in both main directory and p0 and then gave process0.command:

$DIR/CPU2006/416.gamess/run/gamess_base.x86_64_cyn_gcc461 < $DIR/CPU2006/416.gamess/run/cytosine.2.config

still it exits with the message (line numbers in file are changed)

[H] Creating global segment, 1024 MBs
[H] Global segment shmid = 11960320
[H] LOG(Harness): Created global segment, starting pin processes, shmid = 11960320
[H] Running each process in a different subdirectory

[H] WARN: Segmentation fault
[H] WARN: Hard death, killing the whole process tree
[H] Panic on build/opt/zsim_harness.cpp:140: SIGKILLs sent -- exiting
[H] Child 22684 done
[H] Panic on build/opt/zsim_harness.cpp:97: Child issued a panic, killing simulation

I will be thankful for additional help.

I traced and found that it exits after the following line in pin_cmd.cpp

for (uint32_t i = 0; i < p.we_wordc; i++) {
res.push_back(g_string(p.we_wordv[i])); //does not print beyond this line
}

@leizhaocs
Copy link

Hi, I know it has been a long time since this issue was posted, and you may already have solved the problem. I put it here just in case someone else may have the same problem. Actually I encountered this problem too, what I want to mention is that if the command line has input redirect (just like gamess), the process0.input should be used.

@liusheng83
Copy link

Hi, I encountered this problem too, I guess you have already solve it. Please help me show the details. I tried to use perProcessDir = true but it can not works. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants