Skip to content

Commit 5af0702

Browse files
committed
TEMP: debug the Windows OpenCL ICD
1 parent 5028582 commit 5af0702

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎ci/test.py‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,11 @@ def main() -> int:
154154
gpu = os.environ.get("GH_CI_DEVICE") == "gpu"
155155
with tempfile.TemporaryDirectory() as merged:
156156
env = sycl_env(gpu, pathlib.Path(merged))
157+
print("DEBUG icd", env.get("OCL_ICD_FILENAMES"), sys.prefix)
158+
if sys.platform == "win32":
159+
subprocess.run(["where", "OpenCL.dll"], env=env)
160+
subprocess.run(["cmd", "/c", "dir", "C:\\Windows\\System32\\OpenCL*"], env=env)
161+
env["OCL_ICD_ENABLE_TRACE"] = "1"
157162
subprocess.run([sys.executable, "-m", "dpctl", "-f"], env=env)
158163
if not devices_ok(devices(env), gpu):
159164
return 1

0 commit comments

Comments
 (0)