Skip to content

Commit cb14405

Browse files
authored
[oneDNN] Sample Update (#1268)
1 parent 656478c commit cb14405

File tree

1 file changed

+35
-7
lines changed

1 file changed

+35
-7
lines changed

Libraries/oneDNN/tutorials/tutorial_getting_started.ipynb

Lines changed: 35 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@
152152
"source": [
153153
"!cp $ONEAPI_INSTALL/dnnl/latest/cpu_dpcpp_gpu_dpcpp/examples/example_utils.hpp lab/\n",
154154
"!cp $ONEAPI_INSTALL/dnnl/latest/cpu_dpcpp_gpu_dpcpp/examples/example_utils.h lab/\n",
155-
"!cp $ONEAPI_INSTALL/dnnl/latest/cpu_dpcpp_gpu_dpcpp/examples/CMakeLists.txt lab/"
155+
"!cp $ONEAPI_INSTALL/dnnl/latest/cpu_dpcpp_gpu_dpcpp/examples/CMakeLists.txt lab/\n",
156+
"!cp $ONEAPI_INSTALL/dnnl/latest/cpu_dpcpp_gpu_dpcpp/examples/dpcpp_driver_check.cmake lab/"
156157
]
157158
},
158159
{
@@ -271,6 +272,15 @@
271272
"The following section shows you how to build with G++ and run on CPU."
272273
]
273274
},
275+
{
276+
"cell_type": "code",
277+
"execution_count": null,
278+
"metadata": {},
279+
"outputs": [],
280+
"source": [
281+
"!cp $ONEAPI_INSTALL/dnnl/latest/cpu_gomp/examples/CMakeLists.txt lab/"
282+
]
283+
},
274284
{
275285
"cell_type": "markdown",
276286
"metadata": {},
@@ -378,6 +388,15 @@
378388
"The following section shows you how to build with ICC and run on CPU."
379389
]
380390
},
391+
{
392+
"cell_type": "code",
393+
"execution_count": null,
394+
"metadata": {},
395+
"outputs": [],
396+
"source": [
397+
"!cp $ONEAPI_INSTALL/dnnl/latest/cpu_iomp/examples/CMakeLists.txt lab/"
398+
]
399+
},
381400
{
382401
"cell_type": "markdown",
383402
"metadata": {},
@@ -410,7 +429,7 @@
410429
"export EXAMPLE_ROOT=./lab/\n",
411430
"mkdir cpu_iomp\n",
412431
"cd cpu_iomp\n",
413-
"cmake .. -DCMAKE_C_COMPILER=icc -DCMAKE_CXX_COMPILER=icpc -DDNNL_CPU_RUNTIME=OMP -DDNNL_GPU_RUNTIME=NONE\n",
432+
"cmake .. -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DDNNL_CPU_RUNTIME=OMP -DDNNL_GPU_RUNTIME=NONE\n",
414433
"make getting-started-cpp\n",
415434
"\n"
416435
]
@@ -493,6 +512,15 @@
493512
"The following section shows you how to build with oneTBB and run on CPU."
494513
]
495514
},
515+
{
516+
"cell_type": "code",
517+
"execution_count": null,
518+
"metadata": {},
519+
"outputs": [],
520+
"source": [
521+
"!cp $ONEAPI_INSTALL/dnnl/latest/cpu_tbb/examples/CMakeLists.txt lab/"
522+
]
523+
},
496524
{
497525
"cell_type": "markdown",
498526
"metadata": {},
@@ -619,21 +647,21 @@
619647
],
620648
"metadata": {
621649
"kernelspec": {
622-
"display_name": "Python 3",
650+
"display_name": "Python 2",
623651
"language": "python",
624-
"name": "python3"
652+
"name": "python2"
625653
},
626654
"language_info": {
627655
"codemirror_mode": {
628656
"name": "ipython",
629-
"version": 3
657+
"version": 2
630658
},
631659
"file_extension": ".py",
632660
"mimetype": "text/x-python",
633661
"name": "python",
634662
"nbconvert_exporter": "python",
635-
"pygments_lexer": "ipython3",
636-
"version": "3.6.9"
663+
"pygments_lexer": "ipython2",
664+
"version": "2.7.17"
637665
},
638666
"toc": {
639667
"base_numbering": 1,

0 commit comments

Comments
 (0)