Skip to content

Commit

Permalink
xe: ocl: workaround for older Xe2 Windows drivers
Browse files Browse the repository at this point in the history
  • Loading branch information
petercad committed Nov 5, 2024
1 parent 97b04bd commit 04e7eac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gpu/intel/ocl/ocl_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,11 @@ status_t get_ocl_device_eu_count(cl_device_id device,
// for certain buggy drivers.
bool ok = true;

#ifdef _WIN32
// But don't try this on Windows Xe2 to avoid undercounting EUs.
ok &= (arch != gpu::intel::compute::gpu_arch_t::xe2);
#endif

auto do_query = [&](cl_uint query) -> cl_uint {
cl_uint val = 0;
ok = ok
Expand Down

0 comments on commit 04e7eac

Please sign in to comment.