clover: The unit for CL_DEVICE_MEM_BASE_ADDR_ALIGN is bits not bytes
authorTom Stellard <thomas.stellard@amd.com>
Sat, 21 Mar 2015 00:44:47 +0000 (00:44 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Mon, 23 Mar 2015 13:22:42 +0000 (13:22 +0000)
Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/gallium/state_trackers/clover/api/device.cpp

index 43e7475f439095d4a31cd559b26666ad291cce9f..bc93f91d0ec85e3f95b78ae342c375407515dd77 100644 (file)
@@ -196,6 +196,9 @@ clGetDeviceInfo(cl_device_id d_dev, cl_device_info param,
       break;
 
    case CL_DEVICE_MEM_BASE_ADDR_ALIGN:
+      buf.as_scalar<cl_uint>() = 128 * 8;
+      break;
+
    case CL_DEVICE_MIN_DATA_TYPE_ALIGN_SIZE:
       buf.as_scalar<cl_uint>() = 128;
       break;