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

Intel DevCloud Learn

amara5
New Contributor I
1,773 Views

I am trying to follow the instructions illustrated in the video at https://devcloud.intel.com/oneapi/learn/

So I built the files: build.sh:

#!/bin/bash
source /opt/intel/inteloneapi/setvars.sh
make clean
make all

and vector-add.sh:

#!/bin/bash
source /opt/intel/inteloneapi/setvars.sh
make run

and executed the commands:

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

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

Giving a look at the error outputs:

$ more build.sh.e634141
make: *** No rule to make target 'clean'.  Stop.
make: *** No rule to make target 'all'.  Stop.

$ more vector-add.sh.e634144
make: *** No rule to make target 'run'.  Stop.

Thanks

0 Kudos
1 Solution
ArunJ_Intel
Moderator
1,738 Views

Hi Alex,

 

The error is because you are in devcloud login node. You have to be in compute node to be able to perform your tasks. You could reach an interactive compute node by using the below command, once you are connected to devcloud.

qsub -I

 

Once you are in your compute node oneapi-cli should work without issues. Hope this helps.

 

Thanks

Arun Jose

 

 

 

 

View solution in original post

0 Kudos
7 Replies
amara5
New Contributor I
1,755 Views

I could not find any vector-add related makefile.

Any hint?

Thanks,

Alex

0 Kudos
ArunJ_Intel
Moderator
1,749 Views

Hi Alex,

 

 

 

Thanks for reaching out to us. The issue in your case is that when you submit a job using qsub you end up in the home folder of your compute node ie "/home/u*****/". As You do not be have your makefile in the home directory, the make complains it does not find any targets

 

So you should edit your job scripts to navigate to the path where you have your vector add make file. Please find below an example

 

build.sh:

 

 

#!/bin/bash

source /opt/intel/inteloneapi/setvars.sh

cd {PATH_TO_vector-add}

make clean

make all

 

 

 

{PATH_TO_vector-add} should be the path of the code which has the Makefile(vector-add)

 

 

If your issue is not being able to get the vector-add makefile. You could get these files using oneapi-cli. PFB a link to oneapi-cli documentation for vector-add sample

 

https://software.intel.com/content/www/us/en/develop/documentation/get-started-with-intel-oneapi-base-linux/top/run-a-sample-project-using-the-command-line.html

 

 

Arun Jose

 

0 Kudos
amara5
New Contributor I
1,740 Views

Hi Arun,

thanks for your detailed reply.

I am not able to find example files (i.e. vector-add, etc.), so I tried to use, as you suggested, oneapi-cli browser to get them.

oneapi-cli is located in the folder:

u40480@login-2:/opt/intel/inteloneapi/dev-utilities/latest/bin$

Its execution generates the messages as registered in the attached file.

Thanks again for you support.

Alex

 

0 Kudos
ArunJ_Intel
Moderator
1,739 Views

Hi Alex,

 

The error is because you are in devcloud login node. You have to be in compute node to be able to perform your tasks. You could reach an interactive compute node by using the below command, once you are connected to devcloud.

qsub -I

 

Once you are in your compute node oneapi-cli should work without issues. Hope this helps.

 

Thanks

Arun Jose

 

 

 

 

0 Kudos
ArunJ_Intel
Moderator
1,728 Views

Hey Alex,


Does that solution provided help. Could you please confirm if we can close this case


Arun Jose


0 Kudos
amara5
New Contributor I
1,725 Views

Hi Arun,

the solution you suggested provided help.

I confirm this case can be closed.

Thanks,
Alex

 

0 Kudos
ArunJ_Intel
Moderator
1,718 Views

Thanks for the confirmation. We are closing this case. Please feel free to raise a new thread in case of further issues


0 Kudos
Reply