- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
at page
https://devcloud.intel.com/oneapi/get_started/aiAnalyticsToolkitSamples/
2)
Run a Hello World! Sample
-
Bash
- Create a hello-world.sh script with the following contents for executing the sample:
#!/bin/bash source /opt/intel/inteloneapi/setvars.sh > /dev/null 2>&1 source activate tensorflow python TensorFlow_HelloWorld.py
Bash
Run
Jobs submitted in batch mode are placed in a queue waiting for the necessary resources (compute nodes) to become available. The jobs will be executed on a first-come basis on the first available node(s) that have the requested property or label.
- Run the sample on a gpu node:
qsub -l nodes=1:gpu:ppn=2 -d . hello-world.sh
and the end result
u182694@login-2:~/oneAPI-samples/AI-and-Analytics/Getting-Started-Samples/IntelTensorFlow_GettingStarted$ cat hello-world.sh.e2108489
Traceback (most recent call last):
File "/home/u182694/oneAPI-samples/AI-and-Analytics/Getting-Started-Samples/IntelTensorFlow_GettingStarted/TensorFlow_HelloWorld.py", line 11, in <module>
import tensorflow.compat.v1 as tf
ModuleNotFoundError: No module named 'tensorflow' <-----
u182694@login-2:~/oneAPI-samples/AI-and-Analytics/Getting-Started-Samples/IntelTensorFlow_GettingStarted$ cat hello-world.sh.o2108489########################################################################
# Date: Wed 28 Dec 2022 11:51:28 AM PST
# Job ID: 2108489.v-qsvr-1.aidevcloud
# User: u182694
# Resources: cput=75:00:00,neednodes=1:gpu:ppn=2,nodes=1:gpu:ppn=2,walltime=06:00:00
########################################################################
########################################################################
# End of output for job 2108489.v-qsvr-1.aidevcloud
# Date: Wed 28 Dec 2022 11:51:31 AM PST
########################################################################just a side note, the system is mind bogglingly slow and really hard to use. I wish people stopped using NFS/NIS or other shared network infra for user dirs. It was a bad idea 20 years ago, and still is.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Good day to you
Thanks for posting in Intel Communities.
Thanks for reporting this issue. We were able to reproduce it and we have informed the development team about it.
Meanwhile you can follow the below given workaround to move ahead with Hello World Sample.
Before running the hello world sample run the following commands:
source /opt/intel/inteloneapi/setvars.sh
conda activate tensorflow
pip install --user tensorflow==2.10.0
And now follow the instructions given to run the hello world sample.
Please do let us know if you still face any issues.
If this resolves your issue, make sure to accept this as a solution. This would help others with similar issues.
Thank You!
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Good day to you
Thanks for posting in Intel Communities.
Thanks for reporting this issue. We were able to reproduce it and we have informed the development team about it.
Meanwhile you can follow the below given workaround to move ahead with Hello World Sample.
Before running the hello world sample run the following commands:
source /opt/intel/inteloneapi/setvars.sh
conda activate tensorflow
pip install --user tensorflow==2.10.0
And now follow the instructions given to run the hello world sample.
Please do let us know if you still face any issues.
If this resolves your issue, make sure to accept this as a solution. This would help others with similar issues.
Thank You!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Good day to you
Thanks for accepting our solution.
If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.
Thank You!

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