Skip to content

Conversation

PatKamin
Copy link
Contributor

@PatKamin PatKamin commented Sep 9, 2025

Filter out banned OpenCl platforms earlier, in the UR OpenCL adapter instead of the SYCL RT.

Filter out banned OpenCl platforms earlier, in the UR OpenCL adapter
instead of the SYCL RT.
@RossBrunton
Copy link
Contributor

Is there a reason this needs to be baked into the binary? Would having it be specified in a config file not mean it could be modified by vendors/sysadmins without having to rebuild DPCPP?

@@ -30,6 +30,35 @@ static cl_int mapURPlatformInfoToCL(ur_platform_info_t URPropName) {
}
}

static bool isBannedOpenCLPlatform(cl_platform_id platform) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also ban opencl:fpga. If device name is not known for fpga, can we filter on the basis of device type? Perhaps by using clGetDeviceInfo (https://registry.khronos.org/OpenCL/specs/3.0-unified/html/OpenCL_API.html#platform-querying-devices)

Copy link
Contributor

@uditagarwal97 uditagarwal97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to ban opencl:fpga as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants