Intel® oneAPI Data Analytics Library
Community support for building compute-intensive applications that run fast on Intel® architecture.
213 Discussions

just a quick feedback, aiAnalyticsToolkitSamples helloworld seems broken

anttiryt
Beginner
165 Views

 

at page

 

https://devcloud.intel.com/oneapi/get_started/aiAnalyticsToolkitSamples/

 

2)

Run a Hello World! Sample

 

  1. Bash
  2. 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.

  1. 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
    ########################################################################

    u182694@login-2:~/oneAPI-samples/AI-and-Analytics/Getting-Started-Samples/IntelTensorFlow_GettingSta...

     

     

    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.

     

     

Labels (1)
0 Kudos
1 Solution
VaradJ_Intel
Moderator
137 Views

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!

 

View solution in original post

2 Replies
VaradJ_Intel
Moderator
138 Views

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!

 

VaradJ_Intel
Moderator
84 Views

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!


Reply