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
6b8b4a32
Commit
6b8b4a32
authored
Jun 28, 2024
by
Fernando Pérez Panadero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
First test for tsource in Sigma. Read not updated.
parent
47fdfc88
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
10 deletions
+36
-10
main.jl
main.jl
+1
-1
src/io.jl
src/io.jl
+4
-2
src/meas.jl
src/meas.jl
+31
-7
No files found.
main.jl
View file @
6b8b4a32
using
Pkg
using
Pkg
Pkg
.
activate
(
"/home/fperez/Git/LGPU_fork
_ferflow
"
)
Pkg
.
activate
(
"/home/fperez/Git/LGPU_fork"
)
using
LatticeGPU
using
LatticeGPU
using
TOML
using
TOML
...
...
src/io.jl
View file @
6b8b4a32
...
@@ -146,8 +146,10 @@ function save_data()
...
@@ -146,8 +146,10 @@ function save_data()
for
fl
in
1
:
length
(
flow_times
)
for
fl
in
1
:
length
(
flow_times
)
BDIO_write!
(
fb
,
pp_corr_t
[
:
,
noi
,
fl
])
BDIO_write!
(
fb
,
pp_corr_t
[
:
,
noi
,
fl
])
BDIO_write!
(
fb
,
ap_corr_t
[
:
,
noi
,
fl
])
BDIO_write!
(
fb
,
ap_corr_t
[
:
,
noi
,
fl
])
BDIO_write!
(
fb
,[
Quark_cond
[
noi
,
fl
]])
## Testblock 4 : Changed the saving of Sigma
BDIO_write!
(
fb
,[
Quark_cond_cfl
[
noi
,
fl
]])
BDIO_write!
(
fb
,[
Quark_cond
[
:
,
noi
,
fl
]])
BDIO_write!
(
fb
,[
Quark_cond_cfl
[
:
,
noi
,
fl
]])
##
BDIO_write!
(
fb
,[
phat_t
[
noi
,
fl
]])
BDIO_write!
(
fb
,[
phat_t
[
noi
,
fl
]])
end
end
end
end
...
...
src/meas.jl
View file @
6b8b4a32
...
@@ -25,8 +25,15 @@ function load_fields()
...
@@ -25,8 +25,15 @@ function load_fields()
global
Eofpla
=
Array
{
Complex
{
Float64
}}(
undef
,
lp
.
iL
[
4
],
lp
.
npls
);
global
Eofpla
=
Array
{
Complex
{
Float64
}}(
undef
,
lp
.
iL
[
4
],
lp
.
npls
);
global
phat_t
=
Array
{
Float64
}(
undef
,
N_noise
,
length
(
flow_times
));
global
phat_t
=
Array
{
Float64
}(
undef
,
N_noise
,
length
(
flow_times
));
global
Quark_cond
=
Array
{
Complex
{
Float64
}}(
undef
,
N_noise
,
length
(
flow_times
));
# global Quark_cond = Array{Complex{Float64}}(undef,N_noise,length(flow_times));
global
Quark_cond_cfl
=
Array
{
Complex
{
Float64
}}(
undef
,
N_noise
,
length
(
flow_times
));
# global Quark_cond_cfl = Array{Complex{Float64}}(undef,N_noise,length(flow_times));
## Test block 1
global
Quark_cond
=
Array
{
Complex
{
Float64
}}(
undef
,
lp
.
iL
[
4
],
N_noise
,
length
(
flow_times
));
global
Quark_cond_cfl
=
Array
{
Complex
{
Float64
}}(
undef
,
lp
.
iL
[
4
],
N_noise
,
length
(
flow_times
));
##
return
nothing
return
nothing
end
end
...
@@ -121,7 +128,9 @@ function one_pt()
...
@@ -121,7 +128,9 @@ function one_pt()
for
noi
in
1
:
N_noise
for
noi
in
1
:
N_noise
pfrandomize!
(
psi
,
lp
)
## Testblock 6 : added tsource
pfrandomize!
(
psi
,
lp
,
params
[
"Fermion"
][
"tsource"
])
##
backflow
(
psi
,
U
,
flow_times
[
fl
],
params
[
"Measurements"
][
"Nsaves"
],
gp
,
dpar
,
lp
,
ymws
,
dws
)
backflow
(
psi
,
U
,
flow_times
[
fl
],
params
[
"Measurements"
][
"Nsaves"
],
gp
,
dpar
,
lp
,
ymws
,
dws
)
...
@@ -138,16 +147,31 @@ function one_pt()
...
@@ -138,16 +147,31 @@ function one_pt()
flush
(
log_file
)
flush
(
log_file
)
@timeit
"CPU to GPU"
copyto!
(
dws
.
sp
,
psi_CPU
)
@timeit
"CPU to GPU"
copyto!
(
dws
.
sp
,
psi_CPU
)
Quark_cond
[
noi
,
fl
]
=
sum
(
dot
.
(
dws
.
sp
,
psi
))
# Quark_cond[noi,fl] = sum(dot.(dws.sp,psi))
Quark_cond_cfl
[
noi
,
fl
]
=
-
sum
(
norm2
.
(
dws
.
sp
))
# Quark_cond_cfl[noi,fl] = -sum(norm2.(dws.sp))
#### Test block 2
Quark_cond
[
:
,
noi
,
fl
]
.=
zero
(
ComplexF64
)
Quark_cond_cfl
[
:
,
noi
,
fl
]
.=
zero
(
ComplexF64
)
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
)
Quark_cond
[
t
,
noi
,
fl
]
+=
dot
(
dws
.
sp
[
b
,
r
],
psi
[
b
,
r
])
Quark_cond_cfl
[
t
,
noi
,
fl
]
+=
-
sum
(
norm2
.
(
dws
.
sp
))
end
end
end
end
#######
@timeit
"CPU to GPU"
copyto!
(
U
,
U_CPU
)
@timeit
"CPU to GPU"
copyto!
(
U
,
U_CPU
)
end
end
end
end
Quark_cond
.=
Quark_cond
./
V4
## Testblock 3 : Changed division V4 to prod(...)
Quark_cond_cfl
.=
Quark_cond_cfl
./
V4
Quark_cond
.=
Quark_cond
./
prod
(
lp
.
iL
[
1
:
3
])
Quark_cond_cfl
.=
Quark_cond_cfl
./
prod
(
lp
.
iL
[
1
:
3
])
##
println
(
log_file
,
"Finished measuring 1pt"
)
println
(
log_file
,
"Finished measuring 1pt"
)
return
nothing
return
nothing
...
...
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