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
47d231be
Commit
47d231be
authored
Mar 16, 2011
by
Oliver Bock
Browse files
Display info about device used (replaying
dcf5e08e
)
parent
ca8932cf
Changes
1
Show whitespace changes
Inline
Side-by-side
example/main.cpp
View file @
47d231be
...
...
@@ -754,6 +754,14 @@ 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