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
78f4e19d
Commit
78f4e19d
authored
Nov 13, 2014
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adopt to new signature of `announce`
parent
97ec8418
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
+8
-8
libcaf_opencl/caf/opencl/actor_facade.hpp
libcaf_opencl/caf/opencl/actor_facade.hpp
+3
-3
libcaf_opencl/examples/proper_matrix.cpp
libcaf_opencl/examples/proper_matrix.cpp
+1
-1
libcaf_opencl/examples/simple_matrix.cpp
libcaf_opencl/examples/simple_matrix.cpp
+1
-1
libcaf_opencl/src/program.cpp
libcaf_opencl/src/program.cpp
+1
-1
libcaf_opencl/unit_testing/test_opencl.cpp
libcaf_opencl/unit_testing/test_opencl.cpp
+2
-2
No files found.
libcaf_opencl/caf/opencl/actor_facade.hpp
View file @
78f4e19d
...
...
@@ -68,7 +68,7 @@ class actor_facade<Ret(Args...)> : public abstract_actor {
size_t
result_size
)
{
if
(
global_dims
.
empty
())
{
auto
str
=
"OpenCL kernel needs at least 1 global dimension."
;
CAF_LOGM_ERROR
(
detail
::
demangle
(
typeid
(
actor_facade
)).
c_str
()
,
str
);
CAF_LOGM_ERROR
(
"caf::opencl::actor_facade"
,
str
);
throw
std
::
runtime_error
(
str
);
}
auto
check_vec
=
[
&
](
const
dim_vec
&
vec
,
const
char
*
name
)
{
...
...
@@ -76,7 +76,7 @@ class actor_facade<Ret(Args...)> : public abstract_actor {
std
::
ostringstream
oss
;
oss
<<
name
<<
" vector is not empty, but "
<<
"its size differs from global dimensions vector's size"
;
CAF_LOGM_ERROR
(
detail
::
demangle
<
actor_facade
>
().
c_str
()
,
oss
.
str
());
CAF_LOGM_ERROR
(
"caf::opencl::actor_facade"
,
oss
.
str
());
throw
std
::
runtime_error
(
oss
.
str
());
}
};
...
...
@@ -88,7 +88,7 @@ class actor_facade<Ret(Args...)> : public abstract_actor {
if
(
err
!=
CL_SUCCESS
)
{
std
::
ostringstream
oss
;
oss
<<
"clCreateKernel: "
<<
get_opencl_error
(
err
);
CAF_LOGM_ERROR
(
detail
::
demangle
<
actor_facade
>
().
c_str
()
,
oss
.
str
());
CAF_LOGM_ERROR
(
"caf::opencl::actor_facade"
,
oss
.
str
());
throw
std
::
runtime_error
(
oss
.
str
());
}
if
(
result_size
==
0
)
{
...
...
libcaf_opencl/examples/proper_matrix.cpp
View file @
78f4e19d
...
...
@@ -181,7 +181,7 @@ void multiplier(event_based_actor* self) {
int
main
()
{
// matrix_type ist not a simple type,
// it must be annouced to libcaf
announce
<
matrix_type
>
();
announce
<
matrix_type
>
(
"matrix_type"
);
spawn
(
multiplier
);
await_all_actors_done
();
shutdown
();
...
...
libcaf_opencl/examples/simple_matrix.cpp
View file @
78f4e19d
...
...
@@ -105,7 +105,7 @@ void multiplier(event_based_actor* self) {
}
int
main
()
{
announce
<
vector
<
float
>>
();
announce
<
vector
<
float
>>
(
"float_vector"
);
spawn
(
multiplier
);
await_all_actors_done
();
shutdown
();
...
...
libcaf_opencl/src/program.cpp
View file @
78f4e19d
...
...
@@ -48,7 +48,7 @@ program program::create(const char* kernel_source, const char* options,
oss
<<
"Device id "
<<
device_id
<<
" is not a vaild device. Maximum id is: "
<<
(
devices
.
size
()
-
1
)
<<
"."
;
CAF_LOGM_ERROR
(
detail
::
demangle
<
program
>
().
c_str
()
,
oss
.
str
());
CAF_LOGM_ERROR
(
"caf::opencl::program"
,
oss
.
str
());
throw
runtime_error
(
oss
.
str
());
}
...
...
libcaf_opencl/unit_testing/test_opencl.cpp
View file @
78f4e19d
...
...
@@ -104,7 +104,7 @@ class square_matrix {
static
constexpr
size_t
num_elements
=
Size
*
Size
;
static
void
announce
()
{
caf
::
announce
<
square_matrix
>
(
&
square_matrix
::
m_data
);
caf
::
announce
<
square_matrix
>
(
"square_matrix"
,
&
square_matrix
::
m_data
);
}
square_matrix
(
square_matrix
&&
)
=
default
;
...
...
@@ -311,7 +311,7 @@ void test_opencl() {
int
main
()
{
CAF_TEST
(
tkest_opencl
);
announce
<
ivec
>
();
announce
<
ivec
>
(
"ivec"
);
matrix_type
::
announce
();
test_opencl
();
...
...
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