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
bc092fb3
Commit
bc092fb3
authored
May 02, 2014
by
Marian Triebe
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into topic/opencl
parents
f10b5aee
37c4ed35
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
libcaf_opencl/cppa/opencl/actor_facade.hpp
libcaf_opencl/cppa/opencl/actor_facade.hpp
+6
-6
libcaf_opencl/src/opencl/opencl_metainfo.cpp
libcaf_opencl/src/opencl/opencl_metainfo.cpp
+5
-3
No files found.
libcaf_opencl/cppa/opencl/actor_facade.hpp
View file @
bc092fb3
...
@@ -118,7 +118,7 @@ class actor_facade<Ret(Args...)> : public abstract_actor {
...
@@ -118,7 +118,7 @@ class actor_facade<Ret(Args...)> : public abstract_actor {
};
};
}
}
void
enqueue
(
const
message_header
&
hdr
,
any_tuple
msg
)
override
{
void
enqueue
(
msg_hdr_cref
hdr
,
any_tuple
msg
,
execution_unit
*
)
override
{
CPPA_LOG_TRACE
(
""
);
CPPA_LOG_TRACE
(
""
);
typename
util
::
il_indices
<
util
::
type_list
<
Args
...
>>::
type
indices
;
typename
util
::
il_indices
<
util
::
type_list
<
Args
...
>>::
type
indices
;
enqueue_impl
(
hdr
.
sender
,
std
::
move
(
msg
),
hdr
.
id
,
indices
);
enqueue_impl
(
hdr
.
sender
,
std
::
move
(
msg
),
hdr
.
id
,
indices
);
...
@@ -130,10 +130,10 @@ class actor_facade<Ret(Args...)> : public abstract_actor {
...
@@ -130,10 +130,10 @@ class actor_facade<Ret(Args...)> : public abstract_actor {
using
args_vec
=
std
::
vector
<
mem_ptr
>
;
using
args_vec
=
std
::
vector
<
mem_ptr
>
;
actor_facade
(
const
program
&
prog
,
kernel_ptr
kernel
,
actor_facade
(
const
program
&
prog
,
kernel_ptr
kernel
,
const
dim_vec
&
global_dimensions
,
const
dim_vec
&
global_dimensions
,
const
dim_vec
&
global_offsets
,
const
dim_vec
&
global_offsets
,
const
dim_vec
&
local_dimensions
,
const
dim_vec
&
local_dimensions
,
arg_mapping
map_args
,
result_mapping
map_result
,
arg_mapping
map_args
,
result_mapping
map_result
,
size_t
result_size
)
size_t
result_size
)
:
m_kernel
(
kernel
)
,
m_program
(
prog
.
m_program
)
:
m_kernel
(
kernel
)
,
m_program
(
prog
.
m_program
)
,
m_context
(
prog
.
m_context
)
,
m_queue
(
prog
.
m_queue
)
,
m_context
(
prog
.
m_context
)
,
m_queue
(
prog
.
m_queue
)
...
@@ -155,10 +155,10 @@ class actor_facade<Ret(Args...)> : public abstract_actor {
...
@@ -155,10 +155,10 @@ class actor_facade<Ret(Args...)> : public abstract_actor {
response_promise
handle
{
this
->
address
(),
sender
,
id
.
response_id
()};
response_promise
handle
{
this
->
address
(),
sender
,
id
.
response_id
()};
evnt_vec
events
;
evnt_vec
events
;
args_vec
arguments
;
args_vec
arguments
;
add_arguments_to_kernel
<
Ret
>
(
events
,
arguments
,
m_result_size
,
add_arguments_to_kernel
<
Ret
>
(
events
,
arguments
,
m_result_size
,
get_ref
<
Is
>
(
*
opt
)...);
get_ref
<
Is
>
(
*
opt
)...);
auto
cmd
=
make_counted
<
command
<
actor_facade
,
Ret
>>
(
auto
cmd
=
make_counted
<
command
<
actor_facade
,
Ret
>>
(
handle
,
this
,
handle
,
this
,
std
::
move
(
events
),
std
::
move
(
arguments
),
std
::
move
(
events
),
std
::
move
(
arguments
),
m_result_size
,
*
opt
m_result_size
,
*
opt
);
);
...
@@ -194,7 +194,7 @@ class actor_facade<Ret(Args...)> : public abstract_actor {
...
@@ -194,7 +194,7 @@ class actor_facade<Ret(Args...)> : public abstract_actor {
}
}
template
<
typename
T0
,
typename
...
Ts
>
template
<
typename
T0
,
typename
...
Ts
>
void
add_arguments_to_kernel_rec
(
evnt_vec
&
events
,
args_vec
&
arguments
,
void
add_arguments_to_kernel_rec
(
evnt_vec
&
events
,
args_vec
&
arguments
,
T0
&
arg0
,
Ts
&
...
args
)
{
T0
&
arg0
,
Ts
&
...
args
)
{
cl_int
err
{
0
};
cl_int
err
{
0
};
size_t
buffer_size
=
sizeof
(
typename
T0
::
value_type
)
*
arg0
.
size
();
size_t
buffer_size
=
sizeof
(
typename
T0
::
value_type
)
*
arg0
.
size
();
...
...
libcaf_opencl/src/opencl/opencl_metainfo.cpp
View file @
bc092fb3
...
@@ -97,9 +97,11 @@ void opencl_metainfo::initialize()
...
@@ -97,9 +97,11 @@ void opencl_metainfo::initialize()
const
void
*
,
const
void
*
,
size_t
,
size_t
,
void
*
)
{
void
*
)
{
CPPA_LOG_ERROR
(
"
\n
##### Error message via pfn_notify #####
\n
"
+
CPPA_LOGC_ERROR
(
"cppa::opencl::opencl_metainfo"
,
string
(
errinfo
)
+
"initialize"
,
"
\n
########################################"
);
"
\n
##### Error message via pfn_notify #####
\n
"
+
string
(
errinfo
)
+
"
\n
########################################"
);
};
};
// create a context
// create a context
...
...
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