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
b50787f1
Commit
b50787f1
authored
Jul 07, 2023
by
Fernando Pérez Panadero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Solucionado?
parent
da417964
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
test/dirac/test_fp_fa.jl
test/dirac/test_fp_fa.jl
+5
-5
test/dirac/test_solver_plw.jl
test/dirac/test_solver_plw.jl
+3
-3
test/dirac/test_solver_rand.jl
test/dirac/test_solver_rand.jl
+2
-2
No files found.
test/dirac/test_fp_fa.jl
View file @
b50787f1
...
...
@@ -2,7 +2,7 @@ using LatticeGPU
using
CUDA
using
TimerOutputs
@timeit
"fA_fP test"
let
@timeit
"fA_fP test"
begin
function
bndpropagator
(
U
,
dpar
::
DiracParam
{
T
},
dws
::
DiracWorkspace
,
lp
::
SpaceParm
{
4
,
6
,
1
,
D
},
maxiter
::
Int64
,
tol
::
Float64
,
c
::
Int64
,
s
::
Int64
)
where
{
T
,
D
}
...
...
@@ -45,7 +45,7 @@ end
function
fP_test
(;
theta
=
(
0.5
,
0.7
,
1.0
,
0.0
),
m
=
1.3
,
size
=
(
8
,
8
,
8
,
16
),
prec
=
1.0e-16
)
@timeit
"fP inversion (x12)"
let
@timeit
"fP inversion (x12)"
begin
lp
=
SpaceParm
{
4
}(
size
,(
4
,
4
,
4
,
4
),
1
,(
0
,
0
,
0
,
0
,
0
,
0
));
exptheta
=
exp
.
(
im
.*
theta
./
lp
.
iL
);
...
...
@@ -74,7 +74,7 @@ end end
end
@timeit
"fP analitical solution"
let
@timeit
"fP analitical solution"
begin
#THEORETICAL SOLUTION: hep-lat/9606016 eq (2.33)
...
...
@@ -99,7 +99,7 @@ end
function
fA_test
(;
theta
=
(
0.5
,
0.7
,
1.0
,
0.0
),
m
=
1.3
,
size
=
(
8
,
8
,
8
,
16
),
prec
=
1.0e-16
)
@timeit
"fA inversion (x12)"
let
@timeit
"fA inversion (x12)"
begin
lp
=
SpaceParm
{
4
}(
size
,(
4
,
4
,
4
,
4
),
1
,(
0
,
0
,
0
,
0
,
0
,
0
));
exptheta
=
exp
.
(
im
.*
theta
./
lp
.
iL
);
...
...
@@ -129,7 +129,7 @@ function fA_test(;theta = (0.5,0.7,1.0,0.0), m = 1.3, size = (8,8,8,16),prec = 1
end
#THEORETICAL SOLUTION: hep-lat/9606016 eq (2.32)
@timeit
"fA analitical solution"
let
@timeit
"fA analitical solution"
begin
res_th
=
zeros
(
lp
.
iL
[
4
])
pp3
=
ntuple
(
i
->
theta
[
i
]
/
lp
.
iL
[
i
],
3
)
...
...
test/dirac/test_solver_plw.jl
View file @
b50787f1
...
...
@@ -65,8 +65,6 @@ end
end
end
#compute Sum{x} D^-1(x|y)P(y)
@timeit
"Solving propagator"
begin
...
...
@@ -91,11 +89,13 @@ if dif > 1.0e-15
error
(
"Dwpl test for s="
,
s
,
", c="
,
c
,
" failed with difference: "
,
dif
,
"
\n
"
)
end
end
return
dif
end
begin
dif
=
0.0
for
i
in
1
:
3
for
j
in
1
:
4
...
...
test/dirac/test_solver_rand.jl
View file @
b50787f1
...
...
@@ -2,7 +2,7 @@ using CUDA,LatticeGPU, TimerOutputs
#Check that Dw ( (DwdagDw)^{-1} g5 Dw g5 ) psi = psi for random fields
@timeit
"Rand solver test"
let
@timeit
"Rand solver test"
begin
function
pfrandomize
!
(
f
,
lp
::
SpaceParm
,
dpar
::
DiracParam
)
...
...
@@ -32,7 +32,7 @@ function krnl_assign_pf!(f::AbstractArray{T}, p ,lp::SpaceParm) where {T}
end
@timeit
"Generate random fields"
let
@timeit
"Generate random fields"
begin
lp
=
SpaceParm
{
4
}((
16
,
16
,
16
,
16
),
(
4
,
4
,
4
,
4
),
0
,
(
0
,
0
,
0
,
0
,
0
,
0
))
gp
=
GaugeParm
{
Float64
}(
SU3
{
Float64
},
6.0
,
1.0
)
...
...
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