Microsoft PowerPoint – COMP528 HAL3Y Quantum, Tools, Libs
Dr Michael K Bane, G14, Computer Science, University of Liverpool
m.k. .uk https://cgi.csc.liv.ac.uk/~mkbane/COMP528
COMP528: Multi-core and
Multi-Processor Programming
3Y – HAL
QUANTUM COMPUTING
• had been arranging some training… but covid-19
• ” the use of quantum-mechanical phenomena such as superposition and
entanglement to perform computation” (Wikipedia)
• IBM-Q, sign up on web. Build “quantum circuits” (potentially via q-assembler).
ht
tp
s:
//t
o
w
ar
d
sd
at
as
ci
en
ce
.c
o
m
/w
ha
t-
is
-a
-q
ua
nt
um
-c
ir
cu
it
–
tr
an
sp
ile
r-
b
a9
a7
8
53
e6
f9
Hybrid
• MPI – across nodes
• OpenMP – on a single node
• MPI * OpenMP
• MPI*OpenMP + GPU/FPGA
• heterogenous computing
• too complex for Amdahl’s Law
Standing on the shoulders of Giants
• If somebody already done it…
• …then build upon that
• whilst giving due credit!
• If parallel app: use it
• If parallel maths lib: use that
• module avail
Tools
• compiler
• -On for n=0,1,… gives optimisations
• can get “optimisation reports” e.g. for Intel “-qopt-report3”
• useful to see why compiler cannot do optimisation – you then amend code
• can also auto-parallelise (a bit): same as you have done using OpenMP
• profilers
• gprof (simple, serial)
• more complex usually cost £££££
• use to identify time consuming region –> optimise that –> re-profile/repeat until happy
• debuggers
• icc -g my.c && gdb ./a.out (then “run”, “where”, “list”, “break”)
Questions via MS Teams / email
Dr Michael K Bane, Computer Science, University of Liverpool
m.k. .uk https://cgi.csc.liv.ac.uk/~mkbane