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
c93bb3cb
Commit
c93bb3cb
authored
Jul 12, 2016
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adapt to new coding style
parent
d3c43642
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
libcaf_opencl/examples/proper_matrix.cpp
libcaf_opencl/examples/proper_matrix.cpp
+1
-1
libcaf_opencl/src/manager.cpp
libcaf_opencl/src/manager.cpp
+1
-1
libcaf_opencl/test/opencl.cpp
libcaf_opencl/test/opencl.cpp
+4
-4
No files found.
libcaf_opencl/examples/proper_matrix.cpp
View file @
c93bb3cb
...
@@ -134,7 +134,7 @@ inline bool operator==(const square_matrix<Size>& lhs,
...
@@ -134,7 +134,7 @@ inline bool operator==(const square_matrix<Size>& lhs,
template
<
size_t
Size
>
template
<
size_t
Size
>
inline
bool
operator
!=
(
const
square_matrix
<
Size
>&
lhs
,
inline
bool
operator
!=
(
const
square_matrix
<
Size
>&
lhs
,
const
square_matrix
<
Size
>&
rhs
)
{
const
square_matrix
<
Size
>&
rhs
)
{
return
!
(
lhs
==
rhs
);
return
!
(
lhs
==
rhs
);
}
}
using
matrix_type
=
square_matrix
<
matrix_size
>
;
using
matrix_type
=
square_matrix
<
matrix_size
>
;
...
...
libcaf_opencl/src/manager.cpp
View file @
c93bb3cb
...
@@ -84,7 +84,7 @@ actor_system::module* manager::make(actor_system& sys,
...
@@ -84,7 +84,7 @@ actor_system::module* manager::make(actor_system& sys,
program
manager
::
create_program
(
const
char
*
kernel_source
,
const
char
*
options
,
program
manager
::
create_program
(
const
char
*
kernel_source
,
const
char
*
options
,
uint32_t
device_id
)
{
uint32_t
device_id
)
{
auto
dev
=
get_device
(
device_id
);
auto
dev
=
get_device
(
device_id
);
if
(
!
dev
)
{
if
(
!
dev
)
{
ostringstream
oss
;
ostringstream
oss
;
oss
<<
"No device with id '"
<<
device_id
<<
"' found."
;
oss
<<
"No device with id '"
<<
device_id
<<
"' found."
;
CAF_LOG_ERROR
(
CAF_ARG
(
oss
.
str
()));
CAF_LOG_ERROR
(
CAF_ARG
(
oss
.
str
()));
...
...
libcaf_opencl/test/opencl.cpp
View file @
c93bb3cb
...
@@ -191,7 +191,7 @@ bool operator==(const square_matrix<Size>& lhs,
...
@@ -191,7 +191,7 @@ bool operator==(const square_matrix<Size>& lhs,
template
<
size_t
Size
>
template
<
size_t
Size
>
bool
operator
!=
(
const
square_matrix
<
Size
>&
lhs
,
bool
operator
!=
(
const
square_matrix
<
Size
>&
lhs
,
const
square_matrix
<
Size
>&
rhs
)
{
const
square_matrix
<
Size
>&
rhs
)
{
return
!
(
lhs
==
rhs
);
return
!
(
lhs
==
rhs
);
}
}
using
matrix_type
=
square_matrix
<
matrix_size
>
;
using
matrix_type
=
square_matrix
<
matrix_size
>
;
...
@@ -202,7 +202,7 @@ void check_vector_results(const string& description,
...
@@ -202,7 +202,7 @@ void check_vector_results(const string& description,
const
vector
<
T
>&
result
)
{
const
vector
<
T
>&
result
)
{
auto
cond
=
(
expected
==
result
);
auto
cond
=
(
expected
==
result
);
CAF_CHECK
(
cond
);
CAF_CHECK
(
cond
);
if
(
!
cond
)
{
if
(
!
cond
)
{
CAF_ERROR
(
description
<<
" failed."
);
CAF_ERROR
(
description
<<
" failed."
);
cout
<<
"Expected: "
<<
endl
;
cout
<<
"Expected: "
<<
endl
;
for
(
size_t
i
=
0
;
i
<
expected
.
size
();
++
i
)
{
for
(
size_t
i
=
0
;
i
<
expected
.
size
();
++
i
)
{
...
@@ -220,7 +220,7 @@ void test_opencl(actor_system& sys) {
...
@@ -220,7 +220,7 @@ void test_opencl(actor_system& sys) {
static_cast
<
void
>
(
sys
);
static_cast
<
void
>
(
sys
);
auto
&
mngr
=
sys
.
opencl_manager
();
auto
&
mngr
=
sys
.
opencl_manager
();
auto
opt
=
mngr
.
get_device_if
([](
const
device
&
){
return
true
;
});
auto
opt
=
mngr
.
get_device_if
([](
const
device
&
){
return
true
;
});
if
(
!
opt
)
if
(
!
opt
)
CAF_ERROR
(
"No OpenCL device found."
);
CAF_ERROR
(
"No OpenCL device found."
);
auto
dev
=
*
opt
;
auto
dev
=
*
opt
;
scoped_actor
self
{
sys
};
scoped_actor
self
{
sys
};
...
@@ -292,7 +292,7 @@ void test_opencl(actor_system& sys) {
...
@@ -292,7 +292,7 @@ void test_opencl(actor_system& sys) {
auto
cond
=
(
strcmp
(
"clBuildProgram: CL_BUILD_PROGRAM_FAILURE"
,
auto
cond
=
(
strcmp
(
"clBuildProgram: CL_BUILD_PROGRAM_FAILURE"
,
exc
.
what
())
==
0
);
exc
.
what
())
==
0
);
CAF_CHECK
(
cond
);
CAF_CHECK
(
cond
);
if
(
!
cond
)
{
if
(
!
cond
)
{
CAF_ERROR
(
"Wrong exception cought for program build failure."
);
CAF_ERROR
(
"Wrong exception cought for program build failure."
);
}
}
}
}
...
...
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