<- previous index next ->
Now we attack solving the PDE on multicore and multiprocessor
computer architectures.
The basic concept is to use worker task to do the parallel
computation and a master control task, the main procedure,
to keep the workers synchronized. These examples, in several
languages, use the barrier method of synchronization.
The first example is converting fem_check44_la.adb to
a parallel version. We developed psimeq, parallel simultaneous
equations solver in lecture 3b
Thus we need to choose the number of processors, NP, to pass
to psimeq.
Then we need to parallelize the longest computation, creating
the stiffness matrix, as covered in lecture 32
Care must be taken to insure no worker tasks set any variable that
might by modified by any other worker task or the master task.
Parallelizing Ada, FEM example
fem_check44_pla.adb
fem_check44_pla_ada.out
The other files needed to compile and execute include:
psimeq.ada
laphi.ads
laphi.adb
gaulegf.adb
real_arrays.ads
real_arrays.adb
Ada barrier software
Parallelizing Java, FEM example
The first example is converting fem_check44_la.adb to
a parallel version. We developed psimeq, parallel simultaneous
equations solver in lecture 3b
Thus we need to choose the number of processors, NP, to pass
to psimeq.
Then we need to parallelize the longest computation, creating
the stiffness matrix, as covered in lecture 32
Care must be taken to insure no worker tasks set any variable that
might by modified by any other worker task or the master task.
fem_check44_pla.java
fem_check44_pla_java.out
<- previous index next ->
-
CMSC 455 home page
-
Syllabus - class dates and subjects, homework dates, reading assignments
-
Homework assignments - the details
-
Projects -
-
Partial Lecture Notes, one per WEB page
-
Partial Lecture Notes, one big page for printing
-
Downloadable samples, source and executables
-
Some brief notes on Matlab
-
Some brief notes on Python
-
Some brief notes on Fortran 95
-
Some brief notes on Ada 95
-
An Ada math library (gnatmath95)
-
Finite difference approximations for derivatives
-
MATLAB examples, some ODE, some PDE
-
parallel threads examples
-
Reference pages on Taylor series, identities,
coordinate systems, differential operators
-
selected news related to numerical computation