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
cb993316
Commit
cb993316
authored
Jan 07, 2014
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remodeled handling of sync. responses
parent
ac4f96fb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
libcaf_opencl/cppa/opencl/actor_facade.hpp
libcaf_opencl/cppa/opencl/actor_facade.hpp
+1
-1
libcaf_opencl/cppa/opencl/command.hpp
libcaf_opencl/cppa/opencl/command.hpp
+3
-3
No files found.
libcaf_opencl/cppa/opencl/actor_facade.hpp
View file @
cb993316
...
@@ -139,7 +139,7 @@ class actor_facade<Ret(Args...)> : public abstract_actor {
...
@@ -139,7 +139,7 @@ class actor_facade<Ret(Args...)> : public abstract_actor {
util
::
int_list
<
Is
...
>
)
{
util
::
int_list
<
Is
...
>
)
{
auto
opt
=
m_map_args
(
std
::
move
(
msg
));
auto
opt
=
m_map_args
(
std
::
move
(
msg
));
if
(
opt
)
{
if
(
opt
)
{
response_
handl
e
handle
{
this
,
sender
,
id
.
response_id
()
};
response_
promis
e
handle
{
this
,
sender
,
id
.
response_id
()
};
size_t
ret_size
=
std
::
accumulate
(
m_global_dimensions
.
begin
(),
size_t
ret_size
=
std
::
accumulate
(
m_global_dimensions
.
begin
(),
m_global_dimensions
.
end
(),
1
,
m_global_dimensions
.
end
(),
1
,
std
::
multiplies
<
size_t
>
{});
std
::
multiplies
<
size_t
>
{});
...
...
libcaf_opencl/cppa/opencl/command.hpp
View file @
cb993316
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
#include "cppa/logging.hpp"
#include "cppa/logging.hpp"
#include "cppa/opencl/global.hpp"
#include "cppa/opencl/global.hpp"
#include "cppa/abstract_actor.hpp"
#include "cppa/abstract_actor.hpp"
#include "cppa/response_
handl
e.hpp"
#include "cppa/response_
promis
e.hpp"
#include "cppa/opencl/smart_ptr.hpp"
#include "cppa/opencl/smart_ptr.hpp"
#include "cppa/util/scope_guard.hpp"
#include "cppa/util/scope_guard.hpp"
...
@@ -51,7 +51,7 @@ class command : public ref_counted {
...
@@ -51,7 +51,7 @@ class command : public ref_counted {
public:
public:
command
(
response_
handl
e
handle
,
command
(
response_
promis
e
handle
,
intrusive_ptr
<
T
>
actor_facade
,
intrusive_ptr
<
T
>
actor_facade
,
std
::
vector
<
mem_ptr
>
arguments
)
std
::
vector
<
mem_ptr
>
arguments
)
:
m_number_of_values
(
std
::
accumulate
(
actor_facade
->
m_global_dimensions
.
begin
(),
:
m_number_of_values
(
std
::
accumulate
(
actor_facade
->
m_global_dimensions
.
begin
(),
...
@@ -107,7 +107,7 @@ class command : public ref_counted {
...
@@ -107,7 +107,7 @@ class command : public ref_counted {
private:
private:
int
m_number_of_values
;
int
m_number_of_values
;
response_
handl
e
m_handle
;
response_
promis
e
m_handle
;
intrusive_ptr
<
T
>
m_actor_facade
;
intrusive_ptr
<
T
>
m_actor_facade
;
event_ptr
m_kernel_event
;
event_ptr
m_kernel_event
;
command_queue_ptr
m_queue
;
command_queue_ptr
m_queue
;
...
...
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