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
a274e64f
Commit
a274e64f
authored
Oct 19, 2023
by
Fernando Pérez Panadero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Typos varios
parent
2ba57494
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/Solvers/Propagators.jl
src/Solvers/Propagators.jl
+4
-4
No files found.
src/Solvers/Propagators.jl
View file @
a274e64f
...
@@ -155,16 +155,16 @@ Returns the boundary to boundary propagator of the Schrodinger functional given
...
@@ -155,16 +155,16 @@ Returns the boundary to boundary propagator of the Schrodinger functional given
"""
"""
function
bndtobnd
(
bndpro
::
AbstractArray
,
U
::
AbstractArray
,
dpar
::
DiracParam
,
dws
::
DiracWorkspace
,
lp
::
SpaceParm
{
4
,
6
,
1
,
D
})
where
{
D
}
function
bndtobnd
(
bndpro
::
AbstractArray
,
U
::
AbstractArray
,
dpar
::
DiracParam
,
dws
::
DiracWorkspace
,
lp
::
SpaceParm
{
4
,
6
,
1
,
D
})
where
{
D
}
function
krnl_bndtobnd
!
(
psi
::
AbstractArray
,
bndp
::
AbstractArray
,
U
::
AbstractArray
,
lp
)
function
krnl_bndtobnd
!
(
psi
::
AbstractArray
,
bndp
::
AbstractArray
,
U
::
AbstractArray
,
lp
::
SpaceParm
)
b
=
Int64
(
CUDA
.
threadIdx
()
.
x
)
b
=
Int64
(
CUDA
.
threadIdx
()
.
x
)
r
=
Int64
(
CUDA
.
blockIdx
()
.
x
)
r
=
Int64
(
CUDA
.
blockIdx
()
.
x
)
it
=
point_time
((
b
,
r
),
lp
)
it
=
point_time
((
b
,
r
),
lp
)
if
it
==
lp
.
i
l
[
end
]
if
it
==
lp
.
i
L
[
end
]
psi
[
b
,
r
]
=
gdagpmul
(
Pgamma
{
4
,
1
},
U
[
b
,
4
,
r
],
bndpro
[
b
,
r
])
psi
[
b
,
r
]
=
gdagpmul
(
Pgamma
{
4
,
1
},
U
[
b
,
4
,
r
],
bndpro
[
b
,
r
])
else
else
psi
[
b
,
r
]
=
0.0
*
bndpro
[
b
,
r
]
psi
[
b
,
r
]
=
0.0
*
bndpro
[
b
,
r
]
end
end
return
nothing
return
nothing
...
@@ -174,7 +174,7 @@ function bndtobnd(bndpro::AbstractArray, U::AbstractArray, dpar::DiracParam, dws
...
@@ -174,7 +174,7 @@ function bndtobnd(bndpro::AbstractArray, U::AbstractArray, dpar::DiracParam, dws
CUDA
.
@cuda
threads
=
lp
.
bsz
blocks
=
lp
.
rsz
krnl_bndtobnd!
(
dws
.
sp
,
bndpro
,
U
,
lp
)
CUDA
.
@cuda
threads
=
lp
.
bsz
blocks
=
lp
.
rsz
krnl_bndtobnd!
(
dws
.
sp
,
bndpro
,
U
,
lp
)
end
end
res
=
-
dpar
.
ct
*
CUDA
.
mapreduce
(
x
->
x
,
+
,
dws
.
sp
)
./
(
lp
.
iL
[
1
]
*
lp
.
iL
[
2
]
*
lp
.
iL
[
3
])
res
=
-
dpar
.
ct
*
CUDA
.
mapreduce
(
x
->
x
,
+
,
dws
.
sp
)
/
(
lp
.
iL
[
1
]
*
lp
.
iL
[
2
]
*
lp
.
iL
[
3
])
return
res
return
res
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