forked from YogeshRaje/FICE_AVVC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
instructions_AmrutaVishvaVidyalayaChennai _Students.txt
154 lines (99 loc) · 4.47 KB
/
instructions_AmrutaVishvaVidyalayaChennai _Students.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
github link
https://github.com/YogeshRaje/FICE_AVVC
tiny url link
https://tinyurl.com/ficeac
Day1
+++++++++++++++++++++++++++++++++++++++++++
***Task1- Sign In on Intel Devlcloud and create new directory - https://devcloud.intel.com/oneapi/
step1)-Sign In and LogIn into Intel OneAPI Devcloud account
https://devcloud.intel.com/oneapi/
step2) Launch Jupyter Lab
step3) Open Terminal in Dev clould
Click on + symbol and then select Terminal icon form other catergory. It will open linux terminal.
step4)create direcotry ac
$mkdir ac
step5) change directory to ac
$cd ac
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Task2-Run python file on CPU , GPU and FPGA uisng Intel Distribution of Python
(IDP )
step1) Upload file demo_python1.py
or
open terminal and run command
git clone https://github.com/YogeshRaje/FICE_AVVC
step2) Create run.sh file
$nano run.sh
add following line of code
#!/bin/bash
%%qsub
cd $PBS_O_WORKDIR
python demo_python1.py
-save run.sh and return to terminal
step3)run code on GPU- How to target specific GPUs
The command for submitting a job to a compute node hosting a GPU is:
$qsub -l nodes=1:gpu:ppn=2 run.sh
step3a) Run code on genration9 processor
$qsub -l nodes=1:gen9:ppn=2 run.sh
step4) Run code on xeon processor
$qsub -l nodes=1:xeon:ppn=2 run.sh
step5) run code on fpga emulator
$qsub -l nodes=1:fpga_compile:ppn=2 -d . run.sh
step6) run code on fpga hardware Arria
$qsub -l nodes=1:fpga_runtime:arria10:ppn=2 -d . run.sh
step7) run code on fpga hardware Stratix
$qsub -l nodes=1:fpga_runtime:stratix10:ppn=2 -d . run.sh
It will create two files- run.sh.e2081402 and run.sh.o2081402
-To check output run command on terminal
>cat run.sh.o2081402
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Task 3 - Run Basic commands on Intel devcloud terminal-
step1) open devcloud terminal-
Click on + symbol and then select Terminal icon form other catergory. It will open linux terminal.
step2) How to list all compute nodes and their properties
$ pbsnodes
step3)How to list the free compute nodes (lower-case ‘L’)
$ pbsnodes -l free
step4)list details of perticular subnode
$ pbsnodes s001-n144
step5)Listing compute node properties
$ pbsnodes | sort | grep properties
step5)Targeting specific compute nodes
$ pbsnodes | sort | grep properties | grep gpu
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Task4- Install Intel Distribution of Python on Laptop
-Search for intel distribution for python
https://www.intel.com/content/www/us/en/developer/tools/oneapi/distribution-for-python.html
-click on Download the Stand-Alone Version
https://www.intel.com/content/www/us/en/developer/articles/tool/oneapi-standalone-components.html#python
-select Intel Distribution for Python for Windows* to download and install it
Installation of IDP intel distribution of python on linux
-open url https://www.intel.com/content/www/us/en/developer/articles/tool/oneapi-standalone-components.html#python
-download .sh
-chmod 777 filename.sh
-sh filename.sh
-open terminal in home
>cd intel/oneapi
-intialize oneapi
>source setvars.sh
-initialize Intel complier
>source setvars.sh intel64
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Task5- Demo - How to Activate and run sample program using Intel Distribution of Python on Laptop
**After installation of oneAPI:Intel Distribution for Python follow the following steps
-open anaconda Prompt
- cd C:\Program Files (x86)\Intel\oneAPI\intelpython\python3.9\Scripts
-> activate
- Check the python version
> python --version
***It shows output as Python 3.9.10 :Intel Corporation . It means Intel OneAPI:Intel distribution is initialized on your local machine.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Task6 - demo of program using Intel Distribution of python
-Create folder on desktop and change to that directory
>cd F:\FICE\Amruta Chennai Phase 2\demo_Intel_OneAPI
>F:
-open jupyter notebook with Intel version on local machine
> jupyter notebook
-Jupyter notebook will open .
-Create new file and execute command
!python --version
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++