Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
FerFlow.jl
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
FerFlow.jl
Commits
2a36a27f
Commit
2a36a27f
authored
Oct 29, 2024
by
Fernando Pérez Panadero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Volume sum semi-optimization
parent
2da4146e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
7 deletions
+51
-7
src/meas.jl
src/meas.jl
+51
-7
No files found.
src/meas.jl
View file @
2a36a27f
...
...
@@ -148,13 +148,22 @@ function one_pt()
flush
(
log_file
)
@timeit
"CPU to GPU"
copyto!
(
dws
.
st
,
psi_CPU
)
Quark_cond
[
:
,
noi
,
fl
]
.=
zero
(
ComplexF64
)
ap_density
.=
Array
(
dot
(
dws
.
st
[
b
,
r
],
psi
[
b
,
r
]))
for
t
in
1
:
lp
.
iL
[
4
]
for
i
in
1
:
lp
.
iL
[
1
]
for
j
in
1
:
lp
.
iL
[
2
]
for
k
in
1
:
lp
.
iL
[
3
]
b
,
r
=
point_index
(
CartesianIndex
{
lp
.
ndim
}((
i
,
j
,
k
,
t
)),
lp
)
CUDA
.
@allowscalar
Quark_cond
[
t
,
noi
,
fl
]
+=
ap_density
[
b
,
r
]
end
end
end
end
Quark_cond_cfl
[
:
,
noi
,
fl
]
.=
zero
(
ComplexF64
)
pp_density
.=
Array
(
norm2
.
(
dws
.
st
))
for
t
in
1
:
lp
.
iL
[
4
]
for
i
in
1
:
lp
.
iL
[
1
]
for
j
in
1
:
lp
.
iL
[
2
]
for
k
in
1
:
lp
.
iL
[
3
]
b
,
r
=
point_index
(
CartesianIndex
{
lp
.
ndim
}((
i
,
j
,
k
,
t
)),
lp
)
CUDA
.
@allowscalar
Quark_cond
[
t
,
noi
,
fl
]
+=
dot
(
dws
.
st
[
b
,
r
],
psi
[
b
,
r
])
CUDA
.
@allowscalar
Quark_cond_cfl
[
t
,
noi
,
fl
]
+=
-
norm2
(
dws
.
st
[
b
,
r
])
CUDA
.
@allowscalar
Quark_cond_cfl
[
t
,
noi
,
fl
]
+=
-
pp_density
[
b
,
r
]
end
end
end
end
...
...
@@ -180,12 +189,31 @@ function one_pt()
@timeit
"CPU to GPU"
copyto!
(
dws
.
st
,
psit_CPU
)
ChiDchi
[
:
,
noi
,
fl
]
.=
zero
(
Float64
)
ap_density
.=
Array
(
dot
(
dws
.
st
[
b
,
r
],
dws
.
sp
[
b
,
r
]))
for
t
in
1
:
lp
.
iL
[
4
]
for
i
in
1
:
lp
.
iL
[
1
]
for
j
in
1
:
lp
.
iL
[
2
]
for
k
in
1
:
lp
.
iL
[
3
]
b
,
r
=
point_index
(
CartesianIndex
{
lp
.
ndim
}((
i
,
j
,
k
,
t
)),
lp
)
CUDA
.
@allowscalar
ChiDchi
[
t
,
noi
,
fl
]
+=
ap_density
[
b
,
r
]
end
end
end
end
Dw!
(
dws
.
sp
,
U
,
dws
.
st
,
dpar
,
dws
,
lp
)
ap_density
.=
Array
(
dot
(
dws
.
sp
[
b
,
r
],
psi
[
b
,
r
]))
for
t
in
1
:
lp
.
iL
[
4
]
for
i
in
1
:
lp
.
iL
[
1
]
for
j
in
1
:
lp
.
iL
[
2
]
for
k
in
1
:
lp
.
iL
[
3
]
b
,
r
=
point_index
(
CartesianIndex
{
lp
.
ndim
}((
i
,
j
,
k
,
t
)),
lp
)
CUDA
.
@allowscalar
ChiDchi
[
t
,
noi
,
fl
]
+=
-
ap_density
[
b
,
r
]
end
end
end
end
Quark_cond2
[
:
,
noi
,
fl
]
.=
zero
(
ComplexF64
)
ap_density
.=
Array
(
dot
(
dws
.
st
[
b
,
r
],
psi
[
b
,
r
]))
for
t
in
1
:
lp
.
iL
[
4
]
for
i
in
1
:
lp
.
iL
[
1
]
for
j
in
1
:
lp
.
iL
[
2
]
for
k
in
1
:
lp
.
iL
[
3
]
b
,
r
=
point_index
(
CartesianIndex
{
lp
.
ndim
}((
i
,
j
,
k
,
t
)),
lp
)
CUDA
.
@allowscalar
ChiDchi
[
t
,
noi
,
fl
]
+=
dot
(
dws
.
st
[
b
,
r
],
dws
.
sp
[
b
,
r
])
CUDA
.
@allowscalar
Quark_cond2
[
t
,
noi
,
fl
]
+=
dot
(
dws
.
st
[
b
,
r
],
psi
[
b
,
r
])
CUDA
.
@allowscalar
Quark_cond2
[
t
,
noi
,
fl
]
+=
ap_density
[
b
,
r
]
end
end
end
end
...
...
@@ -195,13 +223,29 @@ function one_pt()
flw_adapt
(
U
,
psi
,
int
,
flow_times
[
fl
],
gp
,
dpar
,
lp
,
ymws
,
dws
)
Dw!
(
dws
.
sp
,
U
,
psi
,
dpar
,
dws
,
lp
)
Quark_cond2_cfl
[
:
,
noi
,
fl
]
.=
zero
(
ComplexF64
)
ChiDchi_cfl
[
:
,
noi
,
fl
]
.=
zero
(
ComplexF64
)
ap_density
.=
Array
(
dot
(
dws
.
st
[
b
,
r
],
dws
.
sp
[
b
,
r
]))
for
t
in
1
:
lp
.
iL
[
4
]
for
i
in
1
:
lp
.
iL
[
1
]
for
j
in
1
:
lp
.
iL
[
2
]
for
k
in
1
:
lp
.
iL
[
3
]
b
,
r
=
point_index
(
CartesianIndex
{
lp
.
ndim
}((
i
,
j
,
k
,
t
)),
lp
)
CUDA
.
@allowscalar
ChiDchi_cfl
[
t
,
noi
,
fl
]
+=
ap_density
[
b
,
r
]
end
end
end
end
Dw!
(
dws
.
sp
,
U
,
dws
.
st
,
dpar
,
dws
,
lp
)
ap_density
.=
Array
(
dot
(
dws
.
sp
[
b
,
r
],
psi
[
b
,
r
]))
for
t
in
1
:
lp
.
iL
[
4
]
for
i
in
1
:
lp
.
iL
[
1
]
for
j
in
1
:
lp
.
iL
[
2
]
for
k
in
1
:
lp
.
iL
[
3
]
b
,
r
=
point_index
(
CartesianIndex
{
lp
.
ndim
}((
i
,
j
,
k
,
t
)),
lp
)
CUDA
.
@allowscalar
ChiDchi_cfl
[
t
,
noi
,
fl
]
+=
-
ap_density
[
b
,
r
]
end
end
end
end
Quark_cond2_cfl
[
:
,
noi
,
fl
]
.=
zero
(
ComplexF64
)
ap_density
.=
Array
(
dot
(
dws
.
st
[
b
,
r
],
psi
[
b
,
r
]))
for
t
in
1
:
lp
.
iL
[
4
]
for
i
in
1
:
lp
.
iL
[
1
]
for
j
in
1
:
lp
.
iL
[
2
]
for
k
in
1
:
lp
.
iL
[
3
]
b
,
r
=
point_index
(
CartesianIndex
{
lp
.
ndim
}((
i
,
j
,
k
,
t
)),
lp
)
CUDA
.
@allowscalar
ChiDchi_cfl
[
t
,
noi
,
fl
]
+=
dot
(
dws
.
st
[
b
,
r
],
dws
.
sp
[
b
,
r
])
CUDA
.
@allowscalar
Quark_cond2_cfl
[
t
,
noi
,
fl
]
+=
dot
(
dws
.
st
[
b
,
r
],
psi
[
b
,
r
])
CUDA
.
@allowscalar
Quark_cond2_cfl
[
t
,
noi
,
fl
]
+=
ap_density
[
b
,
r
]
end
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