Intel® DevCloud
Help for those needing help starting or connecting to the Intel® DevCloud
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
892 Discussions

How to submit two different job scripts to queue

Saharsa
New Contributor I
305 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
284 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

3 Replies
RahulU_Intel
Moderator
285 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

 

Saharsa
New Contributor I
271 Views
RahulU_Intel
Moderator
255 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


Reply