Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
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
Operations
Operations
Metrics
Environments
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
cpp-libs
Actor Framework
Commits
8c5c49dc
Commit
8c5c49dc
authored
Jan 24, 2014
by
Joseph Noir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added test for variable result size
... and fixed bug in variable result size.
parent
d1cc64fa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
libcaf_opencl/cppa/opencl/actor_facade.hpp
libcaf_opencl/cppa/opencl/actor_facade.hpp
+2
-1
libcaf_opencl/cppa/opencl/command.hpp
libcaf_opencl/cppa/opencl/command.hpp
+6
-7
No files found.
libcaf_opencl/cppa/opencl/actor_facade.hpp
View file @
8c5c49dc
...
...
@@ -168,7 +168,8 @@ class actor_facade<Ret(Args...)> : public actor {
get_ref
<
Is
>
(
*
opt
)...);
auto
cmd
=
make_counted
<
command
<
actor_facade
,
Ret
>>
(
handle
,
this
,
std
::
move
(
arguments
));
std
::
move
(
arguments
),
m_result_size
);
cmd
->
enqueue
();
}
else
{
CPPA_LOGMF
(
CPPA_ERROR
,
this
,
"actor_facade::enqueue() tuple_cast failed."
);
}
...
...
libcaf_opencl/cppa/opencl/command.hpp
View file @
8c5c49dc
...
...
@@ -53,15 +53,14 @@ class command : public ref_counted {
command
(
response_handle
handle
,
intrusive_ptr
<
T
>
actor_facade
,
std
::
vector
<
mem_ptr
>
arguments
)
:
m_number_of_values
(
std
::
accumulate
(
actor_facade
->
m_global_dimensions
.
begin
(),
actor_facade
->
m_global_dimensions
.
end
(),
1
,
std
::
multiplies
<
size_t
>
{}))
std
::
vector
<
mem_ptr
>
arguments
,
size_t
result_size
)
:
m_result_size
(
result_size
)
,
m_handle
(
handle
)
,
m_actor_facade
(
actor_facade
)
,
m_queue
(
actor_facade
->
m_queue
)
,
m_arguments
(
move
(
arguments
))
,
m_result
(
m_
number_of_values
)
{
}
,
m_result
(
m_
result_size
)
{
}
void
enqueue
()
{
CPPA_LOG_TRACE
(
"command::enqueue()"
);
...
...
@@ -92,7 +91,7 @@ class command : public ref_counted {
m_arguments
[
0
].
get
(),
CL_FALSE
,
0
,
sizeof
(
typename
R
::
value_type
)
*
m_
number_of_values
,
sizeof
(
typename
R
::
value_type
)
*
m_
result_size
,
m_result
.
data
(),
1
,
&
event_k
,
...
...
@@ -125,7 +124,7 @@ class command : public ref_counted {
private:
int
m_
number_of_values
;
int
m_
result_size
;
response_handle
m_handle
;
intrusive_ptr
<
T
>
m_actor_facade
;
event_ptr
m_kernel_event
;
...
...
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