diff --git a/doc/make_constants.py b/doc/make_constants.py index d2c7a42bcef4119388d0feb8a84c98ca8f823141..00162371d7521cb5500b1f2ff0b13b8c864cba65 100644 --- a/doc/make_constants.py +++ b/doc/make_constants.py @@ -112,6 +112,7 @@ const_ext_lookup = { "ATTRIBUTE_ASYNC_ENGINE_COUNT_NV": nv_devattr, "PCI_BUS_ID_NV": nv_devattr, "PCI_BUS_SLOT_NV": nv_devattr, + "PCI_BUS_DOMAIN_NV": nv_devattr, "DOUBLE_FP_CONFIG": ("cl_khr_fp64", "2011.1"), diff --git a/src/clinfo_ext.h b/src/clinfo_ext.h index dc4d6a8e6b9dd42b58b1fdf5dafeadd5fb2a4671..bcd2ae57a448e1a22d6e9ded0335a95151db2472 100644 --- a/src/clinfo_ext.h +++ b/src/clinfo_ext.h @@ -49,6 +49,7 @@ #define CL_DEVICE_ATTRIBUTE_ASYNC_ENGINE_COUNT_NV 0x4007 #define CL_DEVICE_PCI_BUS_ID_NV 0x4008 #define CL_DEVICE_PCI_SLOT_ID_NV 0x4009 +#define CL_DEVICE_PCI_DOMAIN_ID_NV 0x4010 /* cl_ext_atomic_counters_{32,64} */ #define CL_DEVICE_MAX_ATOMIC_COUNTERS_EXT 0x4032 diff --git a/src/pyopencl_ext.h b/src/pyopencl_ext.h index a9792d8b07cb5be7a2def7d0b4a50941639442e1..ef49b6b2dd224ed894d1a30d90f9bcf55c2b9555 100644 --- a/src/pyopencl_ext.h +++ b/src/pyopencl_ext.h @@ -49,6 +49,10 @@ typedef union #define CL_DEVICE_PCI_SLOT_ID_NV 0x4009 #endif +#ifndef CL_DEVICE_PCI_DOMAIN_ID_NV +#define CL_DEVICE_PCI_DOMAIN_ID_NV 0x4010 +#endif + /* }}} */ #endif diff --git a/src/wrap_cl.hpp b/src/wrap_cl.hpp index f00a6b882d50471efb14940f9aad7f93bc720b59..03932d828e29bee75c4b17b47f797e05b5b322df 100644 --- a/src/wrap_cl.hpp +++ b/src/wrap_cl.hpp @@ -811,6 +811,10 @@ namespace pyopencl case CL_DEVICE_PCI_SLOT_ID_NV: DEV_GET_INT_INF(cl_uint); #endif +#ifdef CL_DEVICE_PCI_DOMAIN_ID_NV + case CL_DEVICE_PCI_DOMAIN_ID_NV: + DEV_GET_INT_INF(cl_uint); +#endif #ifdef CL_DEVICE_THREAD_TRACE_SUPPORTED_AMD case CL_DEVICE_THREAD_TRACE_SUPPORTED_AMD: DEV_GET_INT_INF(cl_bool); #endif diff --git a/src/wrap_constants.cpp b/src/wrap_constants.cpp index 0cc20d8fc8e1a4bb1e25ec637ae31ccc147a8eb2..77dbc25fde9af39aaf0103bb326e52190575913d 100644 --- a/src/wrap_constants.cpp +++ b/src/wrap_constants.cpp @@ -378,6 +378,9 @@ void pyopencl_expose_constants(py::module &m) #ifdef CL_DEVICE_PCI_SLOT_ID_NV ADD_ATTR(DEVICE_, PCI_SLOT_ID_NV); #endif +#ifdef CL_DEVICE_PCI_SLOT_ID_NV + ADD_ATTR(DEVICE_, PCI_DOMAIN_ID_NV); +#endif #endif // {{{ cl_amd_device_attribute_query