Skip to content
This repository has been archived by the owner on Jan 9, 2021. It is now read-only.

Commit

Permalink
coding fixes OCL
Browse files Browse the repository at this point in the history
  • Loading branch information
S74nk0 committed Nov 4, 2016
1 parent ebde5b9 commit eb37570
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ocl_device_utils/opencl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ bool clCompileKernel(cl_context gContext,
try {
stream.open(i);
} catch (std::system_error& e) {
fprintf(stderr, "<error> %s\n", e.code().message());
fprintf(stderr, "<error> %s\n", e.code().message().c_str());
return false;
}
std::string str((std::istreambuf_iterator<char>(stream)), std::istreambuf_iterator<char>());
Expand Down
2 changes: 1 addition & 1 deletion ocl_xpm/ocl_xmp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ void ocl_xmp::start(ocl_xmp& device_context) {

for (size_t i = 0; i < gpus.size(); i++) {
char kernelName[64];
sprintf(kernelName, "equiw200k9_gpu%u_%u.bin", (unsigned)i);
sprintf(kernelName, "equiw200k9_gpu%u.bin", (unsigned)i);
if (!clCompileKernel(gContext[i],
gpus[i],
kernelName,
Expand Down

1 comment on commit eb37570

@maztheman
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's possbile that we would want to include the platform id in the kernel name, perhaps that was the original intent?

Please sign in to comment.