This patch make the cl_nv_device_attribute_query extension work with the latest nVidia Cuda toolkit 3.1. Tested on Ubuntu 10.4.
Actually, the inclusion of the extension header is commented. Anyway I have used the cl_ext.h header provided by the official nVidia installer labeled "CUDA Toolkit for Ubuntu Linux 9.10" All the best, Paolo -- Paolo Simone Gasparello
diff --git a/src/wrapper/wrap_cl.hpp b/src/wrapper/wrap_cl.hpp
index 7ae60dd..2a46276 100644
--- a/src/wrapper/wrap_cl.hpp
+++ b/src/wrapper/wrap_cl.hpp
@@ -527,9 +527,20 @@ namespace pyopencl
case CL_DEVICE_OPENCL_C_VERSION:
PYOPENCL_GET_STR_INFO(Device, m_device, param_name);
#endif
+#ifdef CL_DEVICE_COMPUTE_CAPABILITY_MAJOR_NV
+ case CL_DEVICE_COMPUTE_CAPABILITY_MAJOR_NV:
+ case CL_DEVICE_COMPUTE_CAPABILITY_MINOR_NV:
+ case CL_DEVICE_REGISTERS_PER_BLOCK_NV:
+ case CL_DEVICE_WARP_SIZE_NV:
+ DEV_GET_INT_INF(cl_uint);
+ case CL_DEVICE_GPU_OVERLAP_NV:
+ case CL_DEVICE_KERNEL_EXEC_TIMEOUT_NV:
+ case CL_DEVICE_INTEGRATED_MEMORY_NV:
+ DEV_GET_INT_INF(cl_bool);
+#endif
default:
- throw error("Platform.get_info", CL_INVALID_VALUE);
+ throw error("Device.get_info", CL_INVALID_VALUE);
}
}
};
signature.asc
Description: OpenPGP digital signature
_______________________________________________ PyOpenCL mailing list [email protected] http://lists.tiker.net/listinfo/pyopencl
