[NFC] Only assign gIsEmbedded in the test harness (#1672)

Signed-off-by: Kévin Petit <kpet@free.fr>
This commit is contained in:
Kévin Petit
2023-03-16 12:15:51 +00:00
committed by GitHub
parent 1f94b5748b
commit 9755c7ac58
3 changed files with 0 additions and 35 deletions

View File

@@ -55,17 +55,6 @@ int test_step_internal(cl_device_id deviceID, cl_context context,
return -1;
}
// detect whether profile of the device is embedded
char profile[1024] = "";
err = clGetDeviceInfo(deviceID, CL_DEVICE_PROFILE, sizeof(profile), profile,
NULL);
if (err)
{
print_error(err, "clGetDeviceInfo for CL_DEVICE_PROFILE failed\n");
return -1;
}
gIsEmbedded = NULL != strstr(profile, "EMBEDDED_PROFILE");
for (typeIdx = 0; types[typeIdx] != kNumExplicitTypes; ++typeIdx)
{
if (types[typeIdx] == kDouble)