Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
113 Views

Intel DevCloud Learn

Jump to solution

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

Accepted Solutions
Highlighted
Moderator
76 Views

Re:Intel DevCloud Learn

Jump to solution

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
Highlighted
Beginner
94 Views

Re: Intel DevCloud Learn

Jump to solution

I could not find any vector-add related makefile.

Any hint?

Thanks,

Alex

0 Kudos
Highlighted
Moderator
88 Views

Re:Intel DevCloud Learn

Jump to solution

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

 

0 Kudos
Highlighted
Beginner
78 Views

Re: Re:Intel DevCloud Learn

Jump to solution

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
Highlighted
Moderator
77 Views

Re:Intel DevCloud Learn

Jump to solution

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
Highlighted
Moderator
66 Views

Re:Intel DevCloud Learn

Jump to solution

Hey Alex,


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


Arun Jose


0 Kudos
Highlighted
Beginner
63 Views

Re: Re:Intel DevCloud Learn

Jump to solution

Hi Arun,

the solution you suggested provided help.

I confirm this case can be closed.

Thanks,
Alex

 

0 Kudos
Highlighted
Moderator
56 Views

Re:Intel DevCloud Learn

Jump to solution

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


0 Kudos