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
66c4bed0
Commit
66c4bed0
authored
Apr 11, 2013
by
Joseph Noir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed signature of conversion funs for spawn_cl
From const any_tuple& to any_tunple
parent
d663a2e1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
libcaf_opencl/cppa/opencl/actor_facade.hpp
libcaf_opencl/cppa/opencl/actor_facade.hpp
+2
-2
libcaf_opencl/cppa/opencl/command.hpp
libcaf_opencl/cppa/opencl/command.hpp
+3
-3
libcaf_opencl/cppa/opencl/command_dispatcher.hpp
libcaf_opencl/cppa/opencl/command_dispatcher.hpp
+1
-1
No files found.
libcaf_opencl/cppa/opencl/actor_facade.hpp
View file @
66c4bed0
...
@@ -69,7 +69,7 @@ class actor_facade<Ret(Args...)> : public actor {
...
@@ -69,7 +69,7 @@ class actor_facade<Ret(Args...)> : public actor {
public:
public:
typedef
cow_tuple
<
typename
util
::
rm_ref
<
Args
>::
type
...
>
args_tuple
;
typedef
cow_tuple
<
typename
util
::
rm_ref
<
Args
>::
type
...
>
args_tuple
;
typedef
std
::
function
<
option
<
args_tuple
>
(
const
any_tuple
&
)
>
arg_mapping
;
typedef
std
::
function
<
option
<
args_tuple
>
(
any_tuple
)
>
arg_mapping
;
typedef
std
::
function
<
any_tuple
(
Ret
&
)
>
result_mapping
;
typedef
std
::
function
<
any_tuple
(
Ret
&
)
>
result_mapping
;
static
actor_facade
*
create
(
command_dispatcher
*
dispatcher
,
static
actor_facade
*
create
(
command_dispatcher
*
dispatcher
,
...
@@ -152,7 +152,7 @@ class actor_facade<Ret(Args...)> : public actor {
...
@@ -152,7 +152,7 @@ class actor_facade<Ret(Args...)> : public actor {
void
enqueue_impl
(
const
actor_ptr
&
sender
,
any_tuple
msg
,
message_id
id
,
util
::
int_list
<
Is
...
>
)
{
void
enqueue_impl
(
const
actor_ptr
&
sender
,
any_tuple
msg
,
message_id
id
,
util
::
int_list
<
Is
...
>
)
{
auto
opt
=
m_map_args
(
msg
);
auto
opt
=
m_map_args
(
msg
);
if
(
opt
)
{
if
(
opt
)
{
response_handle
handle
{
this
,
sender
,
id
};
response_handle
handle
{
this
,
sender
,
id
.
response_id
()
};
size_t
number_of_values
{
1
};
size_t
number_of_values
{
1
};
std
::
for_each
(
m_global_dimensions
.
begin
(),
std
::
for_each
(
m_global_dimensions
.
begin
(),
m_global_dimensions
.
end
(),
m_global_dimensions
.
end
(),
...
...
libcaf_opencl/cppa/opencl/command.hpp
View file @
66c4bed0
...
@@ -148,13 +148,13 @@ class command_impl : public command {
...
@@ -148,13 +148,13 @@ class command_impl : public command {
/* get results from gpu */
/* get results from gpu */
cl_int
err
{
0
};
cl_int
err
{
0
};
cl_event
read_event
;
cl_event
read_event
;
T
result
s
(
m_number_of_values
);
T
result
(
m_number_of_values
);
err
=
clEnqueueReadBuffer
(
m_queue
.
get
(),
err
=
clEnqueueReadBuffer
(
m_queue
.
get
(),
m_arguments
[
0
].
get
(),
m_arguments
[
0
].
get
(),
CL_TRUE
,
CL_TRUE
,
0
,
0
,
sizeof
(
typename
T
::
value_type
)
*
m_number_of_values
,
sizeof
(
typename
T
::
value_type
)
*
m_number_of_values
,
result
s
.
data
(),
result
.
data
(),
0
,
0
,
NULL
,
NULL
,
&
read_event
);
&
read_event
);
...
@@ -164,7 +164,7 @@ class command_impl : public command {
...
@@ -164,7 +164,7 @@ class command_impl : public command {
+
get_opencl_error
(
err
)
+
get_opencl_error
(
err
)
+
"'."
);
+
"'."
);
}
}
auto
mapped_result
=
m_map_result
(
result
s
);
auto
mapped_result
=
m_map_result
(
result
);
reply_tuple_to
(
m_handle
,
mapped_result
);
reply_tuple_to
(
m_handle
,
mapped_result
);
//reply_to(m_handle, results);
//reply_to(m_handle, results);
}
}
...
...
libcaf_opencl/cppa/opencl/command_dispatcher.hpp
View file @
66c4bed0
...
@@ -87,7 +87,7 @@ class command_dispatcher {
...
@@ -87,7 +87,7 @@ class command_dispatcher {
std
::
vector
<
size_t
>
global_dims
,
std
::
vector
<
size_t
>
global_dims
,
std
::
vector
<
size_t
>
global_offs
,
std
::
vector
<
size_t
>
global_offs
,
std
::
vector
<
size_t
>
local_dims
,
std
::
vector
<
size_t
>
local_dims
,
std
::
function
<
option
<
cow_tuple
<
typename
util
::
rm_ref
<
Args
>::
type
...
>>
(
const
any_tuple
&
)
>
map_args
,
std
::
function
<
option
<
cow_tuple
<
typename
util
::
rm_ref
<
Args
>::
type
...
>>
(
any_tuple
)
>
map_args
,
std
::
function
<
any_tuple
(
Ret
&
)
>
map_result
)
std
::
function
<
any_tuple
(
Ret
&
)
>
map_result
)
{
{
return
actor_facade
<
Ret
(
Args
...)
>::
create
(
this
,
return
actor_facade
<
Ret
(
Args
...)
>::
create
(
this
,
...
...
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