From c53117ccbb5fedf5a32f3acc6dd146d1f8290d1e Mon Sep 17 00:00:00 2001 From: Niyati Jain Date: Sun, 19 Jul 2026 11:33:46 +0530 Subject: [PATCH] Fix OpenCL Device.addressBits cl_device_info constant Use CL_DEVICE_ADDRESS_BITS (0x100D) instead of CL_DEVICE_TYPE (0x1000). Fixes #102 --- source/dcompute/driver/ocl/device.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/dcompute/driver/ocl/device.d b/source/dcompute/driver/ocl/device.d index 79addcd..b63b46b 100644 --- a/source/dcompute/driver/ocl/device.d +++ b/source/dcompute/driver/ocl/device.d @@ -81,7 +81,7 @@ struct Device @(0x100A) uint preferredVectorWidthFloat; @(0x100B) uint preferredVectorWidthDouble; @(0x100C) uint maxClockFrequency; - @(0x1000) uint addressBits; + @(0x100D) uint addressBits; @(0x100E) uint maxReadImageArgs; @(0x100F) uint maxWriteImageArgs; @(0x1010) ulong maxMemoryAllocSize;