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
4f69c90a
Commit
4f69c90a
authored
Mar 09, 2011
by
Oliver Bock
Browse files
Fixed messages (log_error and log_info don't support varargs)
parent
2d33a52d
Changes
1
Hide whitespace changes
Inline
Side-by-side
example/main.cpp
View file @
4f69c90a
...
...
@@ -320,7 +320,7 @@ cl_device_type getGlobalDeviceType()
void
notify_callback
(
const
char
*
errinfo
,
const
void
*
private_info
,
size_t
cb
,
void
*
user_data
)
{
log_error
((
char
*
)
"
%s
\n
"
,
errinfo
);
printf
(
"ERROR:
%s
\n
"
,
errinfo
);
}
int
...
...
@@ -377,7 +377,7 @@ int main (int argc, char * const argv[]) {
err
=
clGetDeviceInfo
(
device_ids
[
i
],
CL_DEVICE_AVAILABLE
,
sizeof
(
cl_bool
),
&
available
,
NULL
);
if
(
err
)
{
log_error
((
char
*
)
"
Cannot check device availability of device # %d
\n
"
,
i
);
printf
(
"ERROR:
Cannot check device availability of device # %d
\n
"
,
i
);
}
if
(
available
)
...
...
@@ -391,11 +391,11 @@ int main (int argc, char * const argv[]) {
err
=
clGetDeviceInfo
(
device_ids
[
i
],
CL_DEVICE_NAME
,
sizeof
(
name
),
name
,
NULL
);
if
(
err
==
CL_SUCCESS
)
{
log_info
((
char
*
)
"
Device %s not available for compute
\n
"
,
name
);
printf
(
"INFO:
Device %s not available for compute
\n
"
,
name
);
}
else
{
log_info
((
char
*
)
"
Device # %d not available for compute
\n
"
,
i
);
printf
(
"INFO:
Device # %d not available for compute
\n
"
,
i
);
}
}
}
...
...
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