Skip to content

Commit fd4a6d2

Browse files
committed
GPU: Fix debug message
1 parent adcd323 commit fd4a6d2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

GPU/GPUTracking/Base/opencl-common/GPUReconstructionOCL.cxx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,16 +115,17 @@ int32_t GPUReconstructionOCL::InitDevice_Runtime()
115115
clGetPlatformInfo(mInternals->platforms[i_platform], CL_PLATFORM_VERSION, sizeof(platform_version), platform_version, nullptr);
116116
clGetPlatformInfo(mInternals->platforms[i_platform], CL_PLATFORM_NAME, sizeof(platform_name), platform_name, nullptr);
117117
clGetPlatformInfo(mInternals->platforms[i_platform], CL_PLATFORM_VENDOR, sizeof(platform_vendor), platform_vendor, nullptr);
118-
if (mProcessingSettings.debugLevel >= 2) {
119-
GPUInfo("Available Platform %d: (%s %s) %s %s", i_platform, platform_profile, platform_version, platform_vendor, platform_name);
120-
}
118+
const char* platformUsageInfo = "";
121119
if (!found && CheckPlatform(i_platform)) {
122120
found = true;
123121
mInternals->platform = mInternals->platforms[i_platform];
124122
if (mProcessingSettings.debugLevel >= 2) {
125-
GPUInfo(" Using this platform");
123+
platformUsageInfo = " !!! Using this platform !!!";
126124
}
127125
}
126+
if (mProcessingSettings.debugLevel >= 2) {
127+
GPUInfo("Available Platform %d: (%s %s) %s %s%s", i_platform, platform_profile, platform_version, platform_vendor, platform_name, platformUsageInfo);
128+
}
128129
}
129130
}
130131

0 commit comments

Comments
 (0)