Skip to content
Advertisement

job can’t be submitted inside sge file

I want to submit a sge job via sge file.

For example, I have run.sge file as follows:

JavaScript

And run_inp.sge file as follows:

JavaScript

Whenever I submit job via

JavaScript

I got this error:

JavaScript

But if I submit run_inp.sge directly, it works fine:

JavaScript

My question is that can I submit sge jobs inside a sge job? If not, is there alternative way to do such thing?

Advertisement

Answer

The normal approach is to submit all jobs from one host where you login, submit your jobs, and check job status. The submitted jobs are scheduled to execute on compute nodes in the cluster. If you have multiple jobs and dependencies between the jobs, you can declare the dependencies to the job scheduler. For example, you can tell the scheduler to wait for job A to finish before starting job B.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement