Professional Documents
Culture Documents
12 December 2016
Last Time…
Stiffness Matrix Assembly
2
10
Julia v0.47
1
10 MATLAB v2016b
0
10
CPU Time [s]
-1
10
-2
10
-3
10
-4
10 2 3 4 5 6 7
10 10 10 10 10 10
Number of DOFs
𝐤 𝑒 = න 𝐉 −T 𝐁 T 𝐄 𝐉 −𝟏 𝐁 𝑑𝐴
y
x
B. Cohen – 8 February 2019 Slide 5
GPU Implementation A
Generate
(I,J)
Generate Vectors
GPU
Mesh Data
Generate
Ke_Values
Array Double for-loop
implementation
Generate
Ke_Values
Array
GPU
CPU Implementation
CPU Time for I, J, V Assembly [s]
1
10 GPU Implementation A
GPU Implementation B
0
10
-1
10
-2
10
-3
10
-4
10 2 3 4 5 6 7
10 10 10 10 10 10
Number of DOFs
0.4 0.4
0.2 0.2
0 0
102 103 104 105 106 102 103 104 105 106
𝐊𝐮 = 𝐟
CPU Implementation
1
10
GPU Implementation
CPU Time to Solve Ku=f [s]
0
10
-1
10
-2
10
-3
10
-4
10 2 3 4 5 6 7
10 10 10 10 10 10
Number of DOFs