oneapi-src / oneDNN

oneAPI Deep Neural Network Library (oneDNN)
https://uxlfoundation.org
Apache License 2.0
3.59k stars 990 forks source link

DevCloud oneDNN getting started #744

Closed RushivArora closed 4 years ago

RushivArora commented 4 years ago

Hello,

I am running the getting-started.cpp on devcloud using the command oneapi-cli in my devcloud terminal. I am running it via the jupyter notebook and am getting a lot of errors. It seems like the source given for oneapi on devcloud doesn't exist (is it possibly changed?)

The code is: %env ONEAPI_INSTALL=/home/intel/intel/inteloneapi/

I have manually traced this path and cannot find it either. Could I get some help on this?

vpirogov commented 4 years ago

+@louie-tsai, @nathan-greeneltch-intel

louie-tsai commented 4 years ago

Hello

The source is under /opt/intel/inteloneapi/oneDNN/latest/cpu_dpcpp_gpu_dpcpp/examples.

For compilation on DevCloud console, could you try to follow below README? https://github.com/intel/BaseKit-code-samples/tree/master/oneDNN/oneDNN_Getting_Started

For getting started, there is a jupyter notebook for users and it should be better starting point for you to try samples on DevCloud. Here is the jupyter notebook link, and you will also get the notebook via oneapi-cli. https://github.com/intel/BaseKit-code-samples/blob/master/oneDNN/oneDNN_Getting_Started/oneDNN_Getting_Started.ipynb

After downloading it, you can easily open it on DevCloud and run through it

jnotebook

Once you finish Getting Started, I would suggest you to try below notebook as next step. https://github.com/intel/BaseKit-code-samples/blob/master/oneDNN/oneDNN_CNN_INFERENCE_FP32/oneDNN_CPU2GPU_Porting.ipynb

thanks

RushivArora commented 4 years ago

@louie-tsai I was using the jupyter notebook in devcloud for this project. Everytime I load it says /intel/intel/inteloneapi instead of /intel/inteloneapi (tried this 2 times). I have made the change and it is working now. Thank you for pointing me to the notebook!

Would you happen to know why this error was happening? I went to oneapi-cli and selected the getting started project for oneDNN.

vpirogov commented 4 years ago

Hi @RushivArora,

The default installation path in the getting started Jupyter notebook indeed points to to /home/intel/intel/inteloneapi. To run this notebook on oneAPI DevCloud you need to update it to /opt/intel/inteloneapi. I would expect the default value in the notebook points to the default oneAPI installation location, like it's done in CPU2GPU notebook. Thank you for the report.

vpirogov commented 4 years ago

The issue is transferred to oneAPI samples.