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
3fe4e542
Commit
3fe4e542
authored
Apr 11, 2013
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'topic/opencl' into unstable
parents
2cca1db6
66c4bed0
Changes
3
Hide 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 @
3fe4e542
...
@@ -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 @
3fe4e542
...
@@ -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 @
3fe4e542
...
@@ -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