Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
LGPU FPP
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Fernando Pérez Panadero
LGPU FPP
Commits
22707d80
Commit
22707d80
authored
Nov 09, 2023
by
Fernando Pérez Panadero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test for flw with D slash squared
parent
ae47e6ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
16 deletions
+22
-16
src/Dirac/Diracflw.jl
src/Dirac/Diracflw.jl
+22
-16
No files found.
src/Dirac/Diracflw.jl
View file @
22707d80
...
...
@@ -4,7 +4,8 @@ import ..YM.flw, ..YM.force_gauge
function
Nablanabla
!
(
so
,
U
,
si
,
dpar
::
DiracParam
,
dws
::
DiracWorkspace
,
lp
::
SpaceParm
{
4
,
6
,
B
,
D
})
where
{
B
,
D
}
function
Dslash_sq
!
(
so
,
U
,
si
,
dpar
::
DiracParam
,
dws
::
DiracWorkspace
,
lp
::
SpaceParm
{
4
,
6
,
B
,
D
})
where
{
B
,
D
}
if
B
==
BC_SF_AFWB
||
B
==
BC_SF_ORBI
@timeit
"DwdagDw"
begin
...
...
@@ -17,20 +18,20 @@ function Nablanabla!(so, U, si, dpar::DiracParam, dws::DiracWorkspace, lp::Space
@timeit
"g5Dw"
begin
CUDA
.
@sync
begin
CUDA
.
@cuda
threads
=
lp
.
bsz
blocks
=
lp
.
rsz
krnl_g5Dw!
(
st
,
U
,
si
,
dpar
.
m
0
,
dpar
.
th
,
lp
)
CUDA
.
@cuda
threads
=
lp
.
bsz
blocks
=
lp
.
rsz
krnl_g5Dw!
(
dws
.
st
,
U
,
si
,
0.
0
,
dpar
.
th
,
lp
)
end
end
@timeit
"SF fix"
begin
CUDA
.
@sync
begin
CUDA
.
@cuda
threads
=
lp
.
bsz
blocks
=
lp
.
rsz
krnl_sfbndfix!
(
st
,
si
,
dpar
.
ct
,
Gamma
{
5
},
lp
)
CUDA
.
@cuda
threads
=
lp
.
bsz
blocks
=
lp
.
rsz
krnl_sfbndfix!
(
dws
.
st
,
si
,
dpar
.
ct
,
Gamma
{
5
},
lp
)
end
end
if
abs
(
dpar
.
csw
)
>
1.0E-10
@timeit
"Dw_improvement"
begin
CUDA
.
@sync
begin
CUDA
.
@cuda
threads
=
lp
.
bsz
blocks
=
lp
.
rsz
krnl_g5Dw_impr!
(
st
,
dws
.
csw
,
dpar
.
csw
,
si
,
lp
)
CUDA
.
@cuda
threads
=
lp
.
bsz
blocks
=
lp
.
rsz
krnl_g5Dw_impr!
(
dws
.
st
,
dws
.
csw
,
dpar
.
csw
,
si
,
lp
)
end
end
end
...
...
@@ -38,21 +39,21 @@ function Nablanabla!(so, U, si, dpar::DiracParam, dws::DiracWorkspace, lp::Space
@timeit
"g5Dw"
begin
CUDA
.
@sync
begin
CUDA
.
@cuda
threads
=
lp
.
bsz
blocks
=
lp
.
rsz
krnl_g5Dw!
(
so
,
U
,
st
,
dpar
.
m
0
,
dpar
.
th
,
lp
)
CUDA
.
@cuda
threads
=
lp
.
bsz
blocks
=
lp
.
rsz
krnl_g5Dw!
(
so
,
U
,
dws
.
st
,
0.
0
,
dpar
.
th
,
lp
)
end
end
@timeit
"SF fix"
begin
CUDA
.
@sync
begin
CUDA
.
@cuda
threads
=
lp
.
bsz
blocks
=
lp
.
rsz
krnl_sfbndfix!
(
so
,
st
,
dpar
.
ct
,
Gamma
{
5
},
lp
)
CUDA
.
@cuda
threads
=
lp
.
bsz
blocks
=
lp
.
rsz
krnl_sfbndfix!
(
so
,
dws
.
st
,
dpar
.
ct
,
Gamma
{
5
},
lp
)
end
end
if
abs
(
dpar
.
csw
)
>
1.0E-10
@timeit
"Dw_improvement"
begin
CUDA
.
@sync
begin
CUDA
.
@cuda
threads
=
lp
.
bsz
blocks
=
lp
.
rsz
krnl_g5Dw_impr!
(
so
,
dws
.
csw
,
dpar
.
csw
,
st
,
lp
)
CUDA
.
@cuda
threads
=
lp
.
bsz
blocks
=
lp
.
rsz
krnl_g5Dw_impr!
(
so
,
dws
.
csw
,
dpar
.
csw
,
dws
.
st
,
lp
)
end
end
end
...
...
@@ -63,25 +64,25 @@ function Nablanabla!(so, U, si, dpar::DiracParam, dws::DiracWorkspace, lp::Space
else
@timeit
"DwdagDw"
begin
CUDA
.
@sync
begin
CUDA
.
@cuda
threads
=
lp
.
bsz
blocks
=
lp
.
rsz
krnl_g5Dw!
(
st
,
U
,
si
,
dpar
.
m
0
,
dpar
.
th
,
lp
)
CUDA
.
@cuda
threads
=
lp
.
bsz
blocks
=
lp
.
rsz
krnl_g5Dw!
(
dws
.
st
,
U
,
si
,
0.
0
,
dpar
.
th
,
lp
)
end
if
abs
(
dpar
.
csw
)
>
1.0E-10
@timeit
"Dw_improvement"
begin
CUDA
.
@sync
begin
CUDA
.
@cuda
threads
=
lp
.
bsz
blocks
=
lp
.
rsz
krnl_g5Dw_impr!
(
st
,
dws
.
csw
,
dpar
.
csw
,
si
,
lp
)
CUDA
.
@cuda
threads
=
lp
.
bsz
blocks
=
lp
.
rsz
krnl_g5Dw_impr!
(
dws
.
st
,
dws
.
csw
,
dpar
.
csw
,
si
,
lp
)
end
end
end
CUDA
.
@sync
begin
CUDA
.
@cuda
threads
=
lp
.
bsz
blocks
=
lp
.
rsz
krnl_g5Dw!
(
so
,
U
,
st
,
dpar
.
m
0
,
dpar
.
th
,
lp
)
CUDA
.
@cuda
threads
=
lp
.
bsz
blocks
=
lp
.
rsz
krnl_g5Dw!
(
so
,
U
,
dws
.
st
,
0.
0
,
dpar
.
th
,
lp
)
end
if
abs
(
dpar
.
csw
)
>
1.0E-10
@timeit
"Dw_improvement"
begin
CUDA
.
@sync
begin
CUDA
.
@cuda
threads
=
lp
.
bsz
blocks
=
lp
.
rsz
krnl_g5Dw_impr!
(
so
,
dws
.
csw
,
dpar
.
csw
,
st
,
lp
)
CUDA
.
@cuda
threads
=
lp
.
bsz
blocks
=
lp
.
rsz
krnl_g5Dw_impr!
(
so
,
dws
.
csw
,
dpar
.
csw
,
dws
.
st
,
lp
)
end
end
end
...
...
@@ -93,32 +94,37 @@ function Nablanabla!(so, U, si, dpar::DiracParam, dws::DiracWorkspace, lp::Space
end
function
flw
(
U
,
psi
,
int
::
FlowIntr
{
NI
,
T
},
ns
::
Int64
,
eps
,
gp
::
GaugeParm
,
dpar
::
DiracParam
,
lp
::
SpaceParm
,
ymws
::
YMworkspace
,
dws
::
DiracWorkspace
)
where
{
NI
,
T
}
@timeit
"Integrating flow equations"
begin
for
i
in
1
:
ns
force_gauge
(
ymws
,
U
,
int
.
c0
,
1
,
gp
,
lp
)
DwdagDw!
(
dws
.
sAp
,
U
,
psi
,
dpar
,
dws
,
dws
.
st
,
lp
)
if
int
.
add_zth
add_zth_term
(
ymws
::
YMworkspace
,
U
,
lp
)
end
psi
.=
psi
+
0.5
*
int
.
r
*
eps
*
dws
.
sAp
ymws
.
mom
.=
ymws
.
frc1
U
.=
expm
.
(
U
,
ymws
.
mom
,
2
*
eps
*
int
.
r
)
for
k
in
1
:
NI
Dslash_sq!
(
dws
.
sAp
,
U
,
psi
,
dpar
,
dws
,
lp
)
dws
.
sp
.=
dws
.
sAp
psi
.=
psi
+
2
*
int
.
r
*
eps
*
dws
.
sp
for
k
in
1
:
NI
force_gauge
(
ymws
,
U
,
int
.
c0
,
1
,
gp
,
lp
)
DwdagDw!
(
dws
.
sp
,
U
,
psi
,
dpar
,
dws
,
dws
.
st
,
lp
)
if
int
.
add_zth
add_zth_term
(
ymws
::
YMworkspace
,
U
,
lp
)
end
psi
.=
psi
+
2
*
eps
*
int
.
e0
[
k
]
.*
dws
.
sAp
.+
2
*
eps
*
int
.
e1
[
k
]
.*
dws
.
sp
ymws
.
mom
.=
int
.
e0
[
k
]
.*
ymws
.
mom
.+
int
.
e1
[
k
]
.*
ymws
.
frc1
U
.=
expm
.
(
U
,
ymws
.
mom
,
2
*
eps
)
DwdagDw!
(
dws
.
sAp
,
U
,
psi
,
dpar
,
dws
,
dws
.
st
,
lp
)
psi
.=
psi
+
2
*
eps
*
int
.
e0
[
k
]
.*
dws
.
sp
.+
2
*
eps
*
int
.
e1
[
k
]
.*
dws
.
sAp
dws
.
sAp
.=
int
.
e0
[
k
]
.*
dws
.
sAp
.+
int
.
e1
[
k
]
.*
dws
.
sp
end
end
end
...
...
Write
Preview
Markdown
is supported
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