This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
guide:intelphi [2015/03/18 11:35] kevin created |
guide:intelphi [2021/12/09 16:42] (current) |
||
|---|---|---|---|
| Line 37: | Line 37: | ||
| For **offload** execution you do not include the '' | For **offload** execution you do not include the '' | ||
| - | =====PBSPro Job Scripts===== | + | =====PBSPro Job Script Examples===== |
| ====Native Execution==== | ====Native Execution==== | ||
| - | **native.pbs**: | + | This is not recommended. |
| + | |||
| + | Job script file **native.pbs**: | ||
| <code bash> | <code bash> | ||
| Line 92: | Line 94: | ||
| ====Offload Execution==== | ====Offload Execution==== | ||
| - | **offload.pbs**: | + | This is the preferred way to run Phi code: execute on the host and offlad the compute intensive part on the Phi device. |
| + | |||
| + | Job script file **offload.pbs**: | ||
| < | < | ||
| Line 138: | Line 142: | ||
| As you can see above //offload// execution is much simpler. | As you can see above //offload// execution is much simpler. | ||
| - | ===Fortran Examples=== | + | =====Warning===== |
| + | |||
| + | The MIC architecture is designed for parallel code with //many// threads. | ||
| + | |||
| + | ====Cons==== | ||
| + | |||
| + | * Only 8GiB of memory | ||
| + | * Only 1GHz CPU clock | ||
| + | * The CPU can only retire an instruction every //second// clock cycle; effectively each thread runs at 500MHz. | ||
| + | * Must use at least two threads per core to use full clock cycles. | ||
| + | * Code must scale well from 120 to 240 threads. | ||
| + | |||
| + | ====Pros==== | ||
| + | |||
| + | * 512 bit wide vector processing unit: can execute '' | ||
| + | * 240 threads in one chip. (But you have to give them all enough work.) | ||