Intel® DevCloud
Help for those needing help starting or connecting to the Intel® DevCloud
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
681 Discussions

Intel DevCloud Learn

amara5
New Contributor I
753 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
716 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

7 Replies
amara5
New Contributor I
734 Views

I could not find any vector-add related makefile.

Any hint?

Thanks,

Alex

ArunJ_Intel
Moderator
728 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-bas...

 

 

Arun Jose

 

amara5
New Contributor I
718 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

 

ArunJ_Intel
Moderator
717 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

ArunJ_Intel
Moderator
706 Views

Hey Alex,


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


Arun Jose


amara5
New Contributor I
703 Views

Hi Arun,

the solution you suggested provided help.

I confirm this case can be closed.

Thanks,
Alex

 

ArunJ_Intel
Moderator
696 Views

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


Reply