Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lubomir Riha
ETH-ADI
Commits
e1c5b3ae
Commit
e1c5b3ae
authored
Jul 20, 2016
by
Lubomir Riha
Browse files
ENH: Forward substitution works in 3D Trans Thomas kernel
parent
efe9fabf
Changes
1
Hide whitespace changes
Inline
Side-by-side
preconditioner.h
View file @
e1c5b3ae
...
...
@@ -865,13 +865,13 @@ __global__ void thomas_kernel3D_XT(int const m, FT const alpha, FT const alpha_2
}
//
FT x_reg = sh_x[TILE_SIZE-1][tid_l];
//
sh_x[TILE_SIZE-1][tid_l] = x_reg;
//
//
for (int i = TILE_SIZE-2; i >= 0; --i) {
//
x_reg = sh_x[i][tid_l] - dev_c_prime[m - TILE_SIZE + i] * x_reg;
//
sh_x[i][tid_l] = x_reg;
//
}
FT
x_reg
=
sh_x
[
TILE_SIZE
-
1
][
tid_l
];
sh_x
[
TILE_SIZE
-
1
][
tid_l
]
=
x_reg
;
for
(
int
i
=
TILE_SIZE
-
2
;
i
>=
0
;
--
i
)
{
x_reg
=
sh_x
[
i
][
tid_l
]
-
dev_c_prime
[
m
-
TILE_SIZE
+
i
]
*
x_reg
;
sh_x
[
i
][
tid_l
]
=
x_reg
;
}
// for (int tile = TILES - 1; tile > 0; tile--) {
...
...
@@ -916,7 +916,7 @@ __global__ void thomas_kernel3D_XT(int const m, FT const alpha, FT const alpha_2
return
;
FT
beta
=
alpha_23
;
//
FT beta = alpha_23;
// dev_c_prime - precalculated factors
// b - input
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment