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
5b9c16cd
Commit
5b9c16cd
authored
Dec 09, 2015
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix type error on 32-bit systems
parent
b524a6c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
libcaf_opencl/test/opencl.cpp
libcaf_opencl/test/opencl.cpp
+6
-6
No files found.
libcaf_opencl/test/opencl.cpp
View file @
5b9c16cd
...
@@ -328,12 +328,12 @@ void test_opencl() {
...
@@ -328,12 +328,12 @@ void test_opencl() {
});
});
if
(
dev6
)
{
if
(
dev6
)
{
// test for manuel return size selection (max workgroup size 1d)
// test for manuel return size selection (max workgroup size 1d)
const
size_t
max_wg_size
=
min
(
dev6
->
get_max_work_item_sizes
()[
0
],
512UL
);
auto
max_wg_size
=
min
(
dev6
->
get_max_work_item_sizes
()[
0
],
size_t
{
512
}
);
const
size_t
reduce_buffer_size
=
static_cast
<
size_t
>
(
max_wg_size
)
*
8
;
auto
reduce_buffer_size
=
static_cast
<
size_t
>
(
max_wg_size
)
*
8
;
const
size_t
reduce_local_size
=
static_cast
<
size_t
>
(
max_wg_size
);
auto
reduce_local_size
=
static_cast
<
size_t
>
(
max_wg_size
);
const
size_t
reduce_work_groups
=
reduce_buffer_size
/
reduce_local_size
;
auto
reduce_work_groups
=
reduce_buffer_size
/
reduce_local_size
;
const
size_t
reduce_global_size
=
reduce_buffer_size
;
auto
reduce_global_size
=
reduce_buffer_size
;
const
size_t
reduce_result_size
=
reduce_work_groups
;
auto
reduce_result_size
=
reduce_work_groups
;
ivec
arr6
(
reduce_buffer_size
);
ivec
arr6
(
reduce_buffer_size
);
int
n
=
static_cast
<
int
>
(
arr6
.
capacity
());
int
n
=
static_cast
<
int
>
(
arr6
.
capacity
());
generate
(
arr6
.
begin
(),
arr6
.
end
(),
[
&
]{
return
--
n
;
});
generate
(
arr6
.
begin
(),
arr6
.
end
(),
[
&
]{
return
--
n
;
});
...
...
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