Skip to content

Commit

Permalink
Update device_picker.hpp
Browse files Browse the repository at this point in the history
Fit strstr in C++
  • Loading branch information
tomdeakin committed Nov 27, 2014
1 parent 9ed6ba7 commit bddcf8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Solutions/Cpp_common/device_picker.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void getDeviceName(cl::Device& device, std::string& name)
// Special case for AMD
#ifdef CL_DEVICE_BOARD_NAME_AMD
device.getInfo(CL_DEVICE_VENDOR, &name);
if (strstr(name, "Advanced Micro Devices"))
if (strstr(name.c_str(), "Advanced Micro Devices"))
info = CL_DEVICE_BOARD_NAME_AMD;
#endif

Expand Down

0 comments on commit bddcf8c

Please sign in to comment.