-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenCL always uses first device per platform on Mac #8525
Comments
elpaso
added a commit
to elpaso/gdal
that referenced
this issue
Oct 10, 2023
elpaso
added a commit
to elpaso/gdal
that referenced
this issue
Oct 10, 2023
rouault
pushed a commit
that referenced
this issue
Oct 11, 2023
rouault
pushed a commit
that referenced
this issue
Oct 11, 2023
rouault
added a commit
that referenced
this issue
Oct 11, 2023
bradh
pushed a commit
to bradh/gdal
that referenced
this issue
Oct 22, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The implementation of
get_device()
in https://github.com/OSGeo/gdal/blob/2cf3921a088d42d6840a8b18e5ce7b994d4e9cf4/alg/gdalwarpkernel_opencl.cpp#L291C21-L291C31 only ever gets the first device for each platform.At least on macOS 13.6 (22G120), a single platform lists multiple devices. As such, my dedicated GPU is excluded from consideration and performance is significantly less.
Instead, we should iterate both platforms and devices as
clGetDeviceIDs()
returns an array. https://registry.khronos.org/OpenCL/sdk/3.0/docs/man/html/clGetDeviceIDs.htmlget_device()
debug outputclinfo output
The text was updated successfully, but these errors were encountered: