- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I could not find any vector-add related makefile.
Any hint?
Thanks,
Alex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Arun Jose
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hey Alex,
Does that solution provided help. Could you please confirm if we can close this case
Arun Jose
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Arun,
the solution you suggested provided help.
I confirm this case can be closed.
Thanks,
Alex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the confirmation. We are closing this case. Please feel free to raise a new thread in case of further issues

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page