|
9 | 9 | "## Learning Objectives\n", |
10 | 10 | "In this module, the developer will:\n", |
11 | 11 | "* Learn different oneCCL configurations inside the Intel® oneAPI toolkit\n", |
12 | | - "* Learn how to compile a oneCCL sample with different configurations via batch jobs on the Intel® DevCloud for oneAPI or in local environments\n", |
| 12 | + "* Learn how to compile a oneCCL sample with different configurations in local environment\n", |
13 | 13 | "* Learn how to program oneCCL with a simple sample\n", |
14 | 14 | "* Learn how to port a oneCCL sample from CPU-only version to CPU&GPU version by using DPC++\n", |
15 | 15 | "* Learn how to collect VTune™ Amplifier data for CPU and GPU runs\n", |
|
78 | 78 | "metadata": {}, |
79 | 79 | "outputs": [], |
80 | 80 | "source": [ |
81 | | - "!rm -rf lab;mkdir -p lab" |
| 81 | + "!rm -rf lab; mkdir -p lab" |
82 | 82 | ] |
83 | 83 | }, |
84 | 84 | { |
|
100 | 100 | "metadata": {}, |
101 | 101 | "outputs": [], |
102 | 102 | "source": [ |
103 | | - "!cp $ONEAPI_INSTALL/ccl/latest/examples/cpu/cpu_allreduce_test.cpp lab/" |
| 103 | + "!cp $ONEAPI_INSTALL/ccl/latest/share/doc/ccl/examples/cpu/cpu_allreduce_test.cpp lab/" |
104 | 104 | ] |
105 | 105 | }, |
106 | 106 | { |
|
116 | 116 | "metadata": {}, |
117 | 117 | "outputs": [], |
118 | 118 | "source": [ |
119 | | - "!cp $ONEAPI_INSTALL/ccl/latest/examples/cpu/CMakeLists.txt lab/\n", |
120 | | - "!cp $ONEAPI_INSTALL/ccl/latest/examples/include/base.hpp lab/" |
| 119 | + "!cp $ONEAPI_INSTALL/ccl/latest/share/doc/ccl/examples/cpu/CMakeLists.txt lab/\n", |
| 120 | + "!cp $ONEAPI_INSTALL/ccl/latest/share/doc/ccl/examples/include/base.hpp lab/" |
121 | 121 | ] |
122 | 122 | }, |
123 | 123 | { |
|
164 | 164 | "cell_type": "markdown", |
165 | 165 | "metadata": {}, |
166 | 166 | "source": [ |
167 | | - "Once you achieve an all-clear from your compilation, you execute your program on the Intel DevCloud or in local environments.\n", |
| 167 | + "Once you achieve an all-clear from your compilation, you execute your program in your local environment.\n", |
168 | 168 | "\n", |
169 | 169 | "#### Script - run.sh\n", |
170 | | - "the script **run.sh** encapsulates the program for submission to the job queue for execution.\n", |
| 170 | + "The script **run.sh** encapsulates the program for execution.\n", |
171 | 171 | "The user must switch to the g++ oneCCL configuration by inputting a custom configuration \"--ccl-configuration=cpu\" when running \"source setvars.sh\".\n" |
172 | 172 | ] |
173 | 173 | }, |
|
190 | 190 | "cell_type": "markdown", |
191 | 191 | "metadata": {}, |
192 | 192 | "source": [ |
193 | | - "\n", |
194 | | - "#### Submitting **build.sh** and **run.sh** to the job queue\n", |
195 | | - "Now we can submit the **build.sh** and **run.sh** to the job queue.\n", |
196 | | - "\n", |
197 | | - "##### NOTE - it is possible to execute any of the build and run commands in local environments.\n", |
198 | | - "To enable users to run their scripts both on the DevCloud or in local environments, this and subsequent training checks for the existence of the job submission command **qsub**. If the check fails, it is assumed that build/run will be local." |
| 193 | + "#### Run build.sh and run.sh" |
199 | 194 | ] |
200 | 195 | }, |
201 | 196 | { |
|
204 | 199 | "metadata": {}, |
205 | 200 | "outputs": [], |
206 | 201 | "source": [ |
207 | | - "!rm -rf cpu_gomp; chmod 755 q; chmod 755 build.sh; chmod 755 run.sh;if [ -x \"$(command -v qsub)\" ]; then ./q build.sh; ./q run.sh; else ./build.sh; ./run.sh; fi" |
| 202 | + "!rm -rf cpu_gomp; chmod 755 build.sh; chmod 755 run.sh; ./build.sh; ./run.sh;" |
208 | 203 | ] |
209 | 204 | }, |
210 | 205 | { |
|
258 | 253 | "metadata": {}, |
259 | 254 | "outputs": [], |
260 | 255 | "source": [ |
261 | | - "! chmod 755 vtune_collect.sh; if [ -x \"$(command -v qsub)\" ]; then ./q vtune_collect.sh; else ./vtune_collect.sh; fi" |
| 256 | + "! chmod 755 vtune_collect.sh; ./vtune_collect.sh;" |
262 | 257 | ] |
263 | 258 | }, |
264 | 259 | { |
|
329 | 324 | "metadata": {}, |
330 | 325 | "outputs": [], |
331 | 326 | "source": [ |
332 | | - "! chmod 755 vtune_collect.sh; if [ -x \"$(command -v qsub)\" ]; then ./q vtune_collect.sh; else ./vtune_collect.sh; fi" |
| 327 | + "! chmod 755 vtune_collect.sh; ./vtune_collect.sh;" |
333 | 328 | ] |
334 | 329 | }, |
335 | 330 | { |
|
408 | 403 | "metadata": {}, |
409 | 404 | "outputs": [], |
410 | 405 | "source": [ |
411 | | - "!cp $ONEAPI_INSTALL/ccl/latest/examples/sycl/CMakeLists.txt lab/\n", |
412 | | - "!cp $ONEAPI_INSTALL/ccl/latest/examples/include/sycl_base.hpp lab/\n", |
413 | | - "!cp $ONEAPI_INSTALL/ccl/latest/examples/include/base_utils.hpp lab/" |
| 406 | + "!cp $ONEAPI_INSTALL/ccl/latest/share/doc/ccl/examples/sycl/CMakeLists.txt lab/\n", |
| 407 | + "!cp $ONEAPI_INSTALL/ccl/latest/share/doc/ccl/examples/include/sycl_base.hpp lab/\n", |
| 408 | + "!cp $ONEAPI_INSTALL/ccl/latest/share/doc/ccl/examples/include/base_utils.hpp lab/" |
414 | 409 | ] |
415 | 410 | }, |
416 | 411 | { |
|
426 | 421 | "metadata": {}, |
427 | 422 | "outputs": [], |
428 | 423 | "source": [ |
429 | | - "!cp $ONEAPI_INSTALL/ccl/latest/examples/sycl/sycl_allreduce_test.cpp lab/" |
| 424 | + "!cp $ONEAPI_INSTALL/ccl/latest/share/doc/ccl/examples/sycl/sycl_allreduce_test.cpp lab/" |
430 | 425 | ] |
431 | 426 | }, |
432 | 427 | { |
|
589 | 584 | "cell_type": "markdown", |
590 | 585 | "metadata": {}, |
591 | 586 | "source": [ |
592 | | - "Once you achieve an all-clear from your compilation, execute your program on the DevCloud or in local environments.\n", |
| 587 | + "Once you achieve an all-clear from your compilation, execute your program in your local environment.\n", |
593 | 588 | "\n", |
594 | 589 | "#### Script - run.sh\n", |
595 | | - "The script **run.sh** encapsulates the program for submission to the job queue for execution.\n" |
| 590 | + "The script **run.sh** encapsulates the program for execution.\n" |
596 | 591 | ] |
597 | 592 | }, |
598 | 593 | { |
|
614 | 609 | "cell_type": "markdown", |
615 | 610 | "metadata": {}, |
616 | 611 | "source": [ |
617 | | - "#### Submitting **build.sh** and **run.sh** to the job queue\n", |
618 | | - "Now we can submit the **build.sh** and **run.sh** to the job queue.\n", |
619 | | - "\n", |
620 | | - "##### NOTE - it is possible to execute any of the build and run commands in local environments.\n", |
621 | | - "To enable users to run their scripts both on the Intel DevCloud or in local environments, this and subsequent training checks for the existence of the job submission command **qsub**. If the check fails it is assumed that build/run will be local." |
| 612 | + "#### Run build.sh and run.sh" |
622 | 613 | ] |
623 | 614 | }, |
624 | 615 | { |
|
627 | 618 | "metadata": {}, |
628 | 619 | "outputs": [], |
629 | 620 | "source": [ |
630 | | - "!rm -rf dpcpp; chmod 755 q; chmod 755 build.sh; chmod 755 run.sh;if [ -x \"$(command -v qsub)\" ]; then ./q build.sh; ./q run.sh; else ./build.sh; ./run.sh; fi" |
| 621 | + "!rm -rf dpcpp; chmod 755 build.sh; chmod 755 run.sh; ./build.sh; ./run.sh;" |
631 | 622 | ] |
632 | 623 | }, |
633 | 624 | { |
|
681 | 672 | "metadata": {}, |
682 | 673 | "outputs": [], |
683 | 674 | "source": [ |
684 | | - "! chmod 755 vtune_collect.sh; if [ -x \"$(command -v qsub)\" ]; then ./q vtune_collect.sh; else ./vtune_collect.sh; fi" |
| 675 | + "! chmod 755 vtune_collect.sh; ./vtune_collect.sh;" |
685 | 676 | ] |
686 | 677 | }, |
687 | 678 | { |
|
746 | 737 | "metadata": {}, |
747 | 738 | "outputs": [], |
748 | 739 | "source": [ |
749 | | - "! chmod 755 vtune_collect.sh; if [ -x \"$(command -v qsub)\" ]; then ./q vtune_collect.sh; else ./vtune_collect.sh; fi" |
| 740 | + "! chmod 755 vtune_collect.sh; ./vtune_collect.sh;" |
750 | 741 | ] |
751 | 742 | }, |
752 | 743 | { |
|
803 | 794 | "# Summary\n", |
804 | 795 | "In this lab the developer will have learned the following:\n", |
805 | 796 | "* Know different oneCCL configurations inside oneAPI toolkit\n", |
806 | | - "* Know how to compile a oneCCL sample with different configurations via batch jobs on the Intel oneAPI DevCloud or in local environments\n", |
| 797 | + "* Know how to compile a oneCCL sample with different configurations in local environment\n", |
807 | 798 | "* Know how to program oneCCL with a simple sample\n", |
808 | 799 | "* Know how to port a oneCCL sample from CPU-only version to CPU&GPU version by using DPC++\n", |
809 | 800 | "* Know how to collect VTune Amplifier data for CPU and GPU runs" |
|
0 commit comments