Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Oliver Behnke
libclfft
Commits
fe380e8b
Commit
fe380e8b
authored
Mar 23, 2011
by
Oliver Bock
Browse files
Fixed device selection while debugging
parent
83e69711
Changes
1
Hide whitespace changes
Inline
Side-by-side
example/main.cpp
View file @
fe380e8b
...
@@ -824,7 +824,7 @@ int main (int argc, char * const argv[]) {
...
@@ -824,7 +824,7 @@ int main (int argc, char * const argv[]) {
device_id
=
NULL
;
device_id
=
NULL
;
unsigned
int
i
=
0
;
unsigned
int
i
=
0
;
if
(
argc
=
=
3
)
{
if
(
argc
>
=
3
)
{
cl_bool
available
;
cl_bool
available
;
err
=
clGetDeviceInfo
(
device_ids
[
atoi
(
argv
[
2
])],
CL_DEVICE_AVAILABLE
,
sizeof
(
cl_bool
),
&
available
,
NULL
);
err
=
clGetDeviceInfo
(
device_ids
[
atoi
(
argv
[
2
])],
CL_DEVICE_AVAILABLE
,
sizeof
(
cl_bool
),
&
available
,
NULL
);
if
(
err
)
{
if
(
err
)
{
...
...
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