Intel® DevCloud
Help for those needing help starting or connecting to the Intel® DevCloud
1641 Discussions

How to submit two different job scripts to queue

Saharsa
New Contributor I
762 Views

Hello,

I have two job scripts, one of them is compilation and the other one is execution.

Could you please help me how should I submit these two job scripts in to the queue!?

first compilation then execution.

Thank you!

0 Kudos
1 Solution
RahulU_Intel
Moderator
741 Views

Hi,

 

Thanks for reaching to devcloud forum.

 

Please follow below guidelines for executing one job after the other.

1. Create separate job files for compilation and execution.

2. Create the common script to call this jobs as below:

$ vi submit_job.sh

You can give the below commands in the script and save.

#!/bin/sh -f

 

FIRST=$(qsub compilation.sh)

echo $FIRST

SECOND=$(qsub -W depend=afterany:$FIRST execution.sh)

echo $SECOND

 

3. Execute the attached script (submit_job.sh) to start the execution

 

For your information, qstat is the general command which we use to check the job queue.

 

Refer the below link for more details on queue management and job submission:

https://devcloud.intel.com/oneapi/documentation/advanced-queue/

https://devcloud.intel.com/oneapi/documentation/job-submission/

 

 

Regards,

Rahul

 

View solution in original post

0 Kudos
3 Replies
RahulU_Intel
Moderator
742 Views

Hi,

 

Thanks for reaching to devcloud forum.

 

Please follow below guidelines for executing one job after the other.

1. Create separate job files for compilation and execution.

2. Create the common script to call this jobs as below:

$ vi submit_job.sh

You can give the below commands in the script and save.

#!/bin/sh -f

 

FIRST=$(qsub compilation.sh)

echo $FIRST

SECOND=$(qsub -W depend=afterany:$FIRST execution.sh)

echo $SECOND

 

3. Execute the attached script (submit_job.sh) to start the execution

 

For your information, qstat is the general command which we use to check the job queue.

 

Refer the below link for more details on queue management and job submission:

https://devcloud.intel.com/oneapi/documentation/advanced-queue/

https://devcloud.intel.com/oneapi/documentation/job-submission/

 

 

Regards,

Rahul

 

0 Kudos
Saharsa
New Contributor I
728 Views
0 Kudos
RahulU_Intel
Moderator
712 Views

Hi,


Thanks for accepting our solution. If you need any additional information, please submit a new question as this thread will no longer be monitored.


Regards,


Rahul


0 Kudos
Reply