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
faf03ec9
Commit
faf03ec9
authored
May 20, 2011
by
Oliver Bock
Browse files
Show number of available devices
parent
8700469d
Changes
1
Hide whitespace changes
Inline
Side-by-side
example/main.cpp
View file @
faf03ec9
...
@@ -826,12 +826,14 @@ int main (int argc, char * const argv[]) {
...
@@ -826,12 +826,14 @@ int main (int argc, char * const argv[]) {
}
}
err
=
clGetDeviceIDs
(
platform
,
device_type
,
MAX_DEVICES
,
device_ids
,
&
num_devices
);
err
=
clGetDeviceIDs
(
platform
,
device_type
,
MAX_DEVICES
,
device_ids
,
&
num_devices
);
if
(
err
)
if
(
err
)
{
{
printf
(
"ERROR: clGetDeviceIDs failed with error: %d
\n
"
,
err
);
printf
(
"ERROR: clGetDeviceIDs failed with error: %d
\n
"
,
err
);
test_finish
();
test_finish
();
return
-
1
;
return
-
1
;
}
}
else
{
printf
(
"INFO: Found %d suitable device(s)...
\n
"
,
num_devices
);
}
device_id
=
NULL
;
device_id
=
NULL
;
unsigned
int
i
=
0
;
unsigned
int
i
=
0
;
...
...
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