Skip to content

Commit

Permalink
Fix some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
krrishnarraj authored Nov 26, 2024
1 parent f66ac42 commit 22c9516
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/clpeak.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ extern "C"
}
#endif

clPeak::clPeak() : forcePlatform(false), forceDevice(false), forceTest(false), useEventTimer(false),
isGlobalBW(true), isComputeHP(true), isComputeSP(true), isComputeDP(true), isComputeIntFast(true), isComputeInt(true),
isComputeChar(true), isComputeShort(true),
isTransferBW(true), isKernelLatency(true),
clPeak::clPeak() : forcePlatform(false), forcePlatformName(false), forceDevice(false),
forceDeviceName(false), forceTest(false), useEventTimer(false),
isGlobalBW(true), isComputeHP(true), isComputeSP(true), isComputeDP(true),
isComputeIntFast(true), isComputeInt(true),
isTransferBW(true), isKernelLatency(true), isComputeChar(true), isComputeShort(true),
specifiedPlatform(0), specifiedDevice(0),
forcePlatformName(false), forceDeviceName(false),
specifiedPlatformName(0), specifiedDeviceName(0), specifiedTestName(0)
{
}
Expand Down Expand Up @@ -60,7 +60,7 @@ int clPeak::runAll()
std::string platformName = platforms[p].getInfo<CL_PLATFORM_NAME>();
trimString(platformName);

if (forcePlatformName && (!strcmp(platformName.c_str(), specifiedPlatformName) == 0))
if (forcePlatformName && !(strcmp(platformName.c_str(), specifiedPlatformName) == 0))
continue;

log->print(NEWLINE "Platform: " + platformName + NEWLINE);
Expand All @@ -84,7 +84,7 @@ int clPeak::runAll()

device_info_t devInfo = getDeviceInfo(devices[d]);

if (forceDeviceName && (!strcmp(devInfo.deviceName.c_str(), specifiedDeviceName) == 0))
if (forceDeviceName && !(strcmp(devInfo.deviceName.c_str(), specifiedDeviceName) == 0))
continue;

log->print(TAB "Device: " + devInfo.deviceName + NEWLINE);
Expand Down

0 comments on commit 22c9516

Please sign in to comment.