Skip to content

Commit

Permalink
Added missing condition to test available cl_khr_fp16 extension
Browse files Browse the repository at this point in the history
  • Loading branch information
shajder committed Jun 16, 2023
1 parent ccb864e commit db1f764
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test_conformance/spirv_new/test_op_vector_extract.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,17 @@ int test_extract(cl_device_id deviceID, cl_context context,
return 0;
}
}

if (std::string(name).find("half") != std::string::npos)
{
if (!is_extension_available(deviceID, "cl_khr_fp16"))
{
log_info(
"Extension cl_khr_fp16 not supported; skipping half tests.\n");
return 0;
}
}

cl_int err = CL_SUCCESS;

clProgramWrapper prog;
Expand Down

0 comments on commit db1f764

Please sign in to comment.