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
eccce80f
Commit
eccce80f
authored
1 year ago
by
Fernando Pérez Panadero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GPU selection
parent
286d9a77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/io.jl
src/io.jl
+5
-0
No files found.
src/io.jl
View file @
eccce80f
...
...
@@ -36,6 +36,10 @@ function parse_commandline()
help
=
"Config written with the export_cnfg_cern() convention"
action
=
:
store_true
"-G"
help
=
"GPU for the job. Default 0"
arg_type
=
Int
default
=
0
end
return
parse_args
(
s
)
...
...
@@ -50,6 +54,7 @@ Stores in global variables the needed structures, i.e. lp, gp, dpar, dws, ymws
"""
function
load_structs
()
CUDA
.
device!
(
parsed_args
[
"G"
])
global
lp
=
SpaceParm
{
4
}(
tuple
(
params
[
"Space"
][
"size"
]
...
),
tuple
(
params
[
"Space"
][
"blocks"
]
...
),
0
,
(
0
,
0
,
0
,
0
,
0
,
0
))
global
gp
=
GaugeParm
{
Float64
}(
SU3
{
Float64
},
params
[
"Fermion"
][
"beta"
],
1.0
,(
0.0
,
0.0
),(
0.0
,
0.0
),
lp
.
iL
);
global
dpar
=
DiracParam
{
Float64
}(
SU3fund
,(
1
/
(
2
*
params
[
"Fermion"
][
"kappa"
]))
-
4
,
params
[
"Fermion"
][
"csw"
],
ntuple
(
i
->
exp
(((
i!
=
4
)
*
im
*
params
[
"Fermion"
][
"theta"
]
/
lp
.
iL
[
i
])
+
((
i
==
4
)
*
im
*
params
[
"Fermion"
][
"theta_t"
]
/
lp
.
iL
[
i
])),
4
),
1.0
);
...
...
This diff is collapsed.
Click to expand it.
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