Skip to content
Snippets Groups Projects
Commit e3f3940e authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Define Nvidia device props if not available in system ext header

parent 93a7a54b
No related branches found
No related tags found
1 merge request!36Better error msg
...@@ -26,9 +26,33 @@ typedef union ...@@ -26,9 +26,33 @@ typedef union
} cl_device_topology_amd; } cl_device_topology_amd;
#endif #endif
/* {{{ these NV defines are often missing from the system headers */
#ifndef CL_DEVICE_KERNEL_EXEC_TIMEOUT_NV
#define CL_DEVICE_KERNEL_EXEC_TIMEOUT_NV 0x4005
#endif
#ifndef CL_DEVICE_INTEGRATED_MEMORY_NV
#define CL_DEVICE_INTEGRATED_MEMORY_NV 0x4006
#endif
#ifndef CL_DEVICE_ATTRIBUTE_ASYNC_ENGINE_COUNT_NV
#define CL_DEVICE_ATTRIBUTE_ASYNC_ENGINE_COUNT_NV 0x4007
#endif
#ifndef CL_DEVICE_PCI_BUS_ID_NV
#define CL_DEVICE_PCI_BUS_ID_NV 0x4008
#endif
#ifndef CL_DEVICE_PCI_SLOT_ID_NV
#define CL_DEVICE_PCI_SLOT_ID_NV 0x4009
#endif
/* }}} */
#endif #endif
#endif #endif
#endif #endif
/* vim: foldmethod=marker */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment