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

Unable to schedule jobs using qsub.

PrasannaIITM
Novice
456 Views

I am not able to run my scripts using qsub. Whenever I schedule my jobs in build.sh using qsub, it is removed from the queue within one second. I was able to run it till today morning.

 

command used to schedule jobs:

qsub -l nodes=1:gpu:ppn=2 -d . build.sh

 

I tried to do it without requesting GPU too. It gets removed from the queue immediately.

0 Kudos
5 Replies
PrasannaIITM
Novice
452 Views

The build.sh.exx generate file is also empty. The build.sh.oxx file has the following contents:


########################################################################
# Date: Tue 04 Oct 2022 02:21:46 AM PDT
# Job ID: 2002983.v-qsvr-1.aidevcloud
# User: u171677
# Resources: neednodes=1:gpu:ppn=2,nodes=1:gpu:ppn=2,walltime=06:00:00
########################################################################


########################################################################
# End of output for job 2002983.v-qsvr-1.aidevcloud
# Date: Tue 04 Oct 2022 02:21:47 AM PDT
########################################################################

 

0 Kudos
JaideepK_Intel
Moderator
431 Views

Hi,

 

Thank you for posting in Intel Communities.

 

In order to understand your issue (Account specific or build.sh script specific), can you try to run the below sample?

  • Create a file named "fibonacci.py" in your home directory.

example:

 

vi fibonacci.py (copy below content in side fibonacci.py)
def Fibonacci(n):
  # Check if input is 0 then it will
  # print incorrect input
  if n < 0:
    print("Incorrect input")
  # Check if n is 0
  # then it will return 0
  elif n == 0:
    return 0
  # Check if n is 1,2
  # it will return 1
  elif n == 1 or n == 2:
    return 1
  else:
    return Fibonacci(n-1) + Fibonacci(n-2)
# Driver Program
print(Fibonacci(43))

 

  • Create a file named "job.sh" in your home directory.
  • Inside job.sh copy the below content

 

#!/bin/bash
echo "start"
echo $(python3 ~/fibonacci.py)
echo "end"
qsub -l nodes=1:gpu:ppn=2 -d . job.sh

 

After running the above command, 2 files are going to be generated that look like job.sh.exx which is empty and job. sh.o.xx is going to have some content which looks like below.

JaideepK_Intel_0-1664888224666.png

 

Thanks,

Jaideep

 

 

0 Kudos
JaideepK_Intel
Moderator
364 Views

Hi,


good day to you.

Can you please try the above steps and give us an update?


Thanks,

Jaideep


0 Kudos
PrasannaIITM
Novice
358 Views

Hi,

Sorry for the late reply, the issue is resolved now.

0 Kudos
JaideepK_Intel
Moderator
340 Views

Hi,


Glad to know that your issue is resolved. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.


Thanks,

Jaideep


0 Kudos
Reply