Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arbor
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
arbor-sim
arbor
Commits
73acc4ac
Unverified
Commit
73acc4ac
authored
2 years ago
by
boeschf
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
BUGFIX gpu ppack declarations (#2087)
A couple of declarations in `PPACK_IFACE_BLOCK` are fixed for the GPU backend.
parent
6a183973
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modcc/printer/gpuprinter.cpp
+2
-2
2 additions, 2 deletions
modcc/printer/gpuprinter.cpp
with
2 additions
and
2 deletions
modcc/printer/gpuprinter.cpp
+
2
−
2
View file @
73acc4ac
...
@@ -144,7 +144,7 @@ ARB_LIBMODCC_API std::string emit_gpu_cu_source(const Module& module_, const pri
...
@@ -144,7 +144,7 @@ ARB_LIBMODCC_API std::string emit_gpu_cu_source(const Module& module_, const pri
"arb_index_type * __restrict__ {0}node_index __attribute__((unused)) = params_.node_index;
\\\n
"
"arb_index_type * __restrict__ {0}node_index __attribute__((unused)) = params_.node_index;
\\\n
"
"arb_index_type * __restrict__ {0}peer_index __attribute__((unused)) = params_.peer_index;
\\\n
"
"arb_index_type * __restrict__ {0}peer_index __attribute__((unused)) = params_.peer_index;
\\\n
"
"arb_index_type * __restrict__ {0}multiplicity __attribute__((unused)) = params_.multiplicity;
\\\n
"
"arb_index_type * __restrict__ {0}multiplicity __attribute__((unused)) = params_.multiplicity;
\\\n
"
"arb_value_type * __restrict__ {0}state_vars __attribute__((unused)) = params_.state_vars;
\\\n
"
"arb_value_type *
*
__restrict__ {0}state_vars __attribute__((unused)) = params_.state_vars;
\\\n
"
"arb_value_type * __restrict__ {0}weight __attribute__((unused)) = params_.weight;
\\\n
"
"arb_value_type * __restrict__ {0}weight __attribute__((unused)) = params_.weight;
\\\n
"
"auto& {0}events __attribute__((unused)) = params_.events;
\\\n
"
"auto& {0}events __attribute__((unused)) = params_.events;
\\\n
"
"auto& {0}mechanism_id __attribute__((unused)) = params_.mechanism_id;
\\\n
"
),
"auto& {0}mechanism_id __attribute__((unused)) = params_.mechanism_id;
\\\n
"
),
...
@@ -175,7 +175,7 @@ ARB_LIBMODCC_API std::string emit_gpu_cu_source(const Module& module_, const pri
...
@@ -175,7 +175,7 @@ ARB_LIBMODCC_API std::string emit_gpu_cu_source(const Module& module_, const pri
auto
idx
=
0
;
auto
idx
=
0
;
for
(
const
auto
&
ion
:
module_
.
ion_deps
())
{
for
(
const
auto
&
ion
:
module_
.
ion_deps
())
{
out
<<
fmt
::
format
(
"auto& {}{} __attribute__((unused)) = params_.ion_states[{}];
\\\n
"
,
pp_var_pfx
,
ion_field
(
ion
),
idx
);
out
<<
fmt
::
format
(
"auto& {}{} __attribute__((unused)) = params_.ion_states[{}];
\\\n
"
,
pp_var_pfx
,
ion_field
(
ion
),
idx
);
out
<<
fmt
::
format
(
"arb_
value
_type * __restrict__ {}{} __attribute__((unused)) = params_.ion_states[{}].index;
\\\n
"
,
pp_var_pfx
,
ion_index
(
ion
),
idx
);
out
<<
fmt
::
format
(
"arb_
index
_type * __restrict__ {}{} __attribute__((unused)) = params_.ion_states[{}].index;
\\\n
"
,
pp_var_pfx
,
ion_index
(
ion
),
idx
);
idx
++
;
idx
++
;
}
}
out
<<
"//End of IFACEBLOCK
\n\n
"
;
out
<<
"//End of IFACEBLOCK
\n\n
"
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment