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
einsteinathome
libclfft
Commits
dcf5e08e
Commit
dcf5e08e
authored
Mar 09, 2011
by
Oliver Bock
Browse files
Display info about device used
parent
4f69c90a
Changes
1
Show whitespace changes
Inline
Side-by-side
example/main.cpp
View file @
dcf5e08e
...
...
@@ -383,6 +383,17 @@ int main (int argc, char * const argv[]) {
if
(
available
)
{
device_id
=
device_ids
[
i
];
char
name
[
200
];
err
=
clGetDeviceInfo
(
device_ids
[
i
],
CL_DEVICE_NAME
,
sizeof
(
name
),
name
,
NULL
);
if
(
err
==
CL_SUCCESS
)
{
printf
(
"INFO: Using device %s...
\n
"
,
name
);
}
else
{
printf
(
"INFO: Using device # %d...
\n
"
,
i
);
}
break
;
}
else
...
...
Write
Preview
Supports
Markdown
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