The cuGetPointerAttribute()
is passed a pointer to one of multiple types, filled according to the actual attribute requested. Some of those types are stated explicitly or may be deduced implicitly to deduce, but some - not so much. Specifically... what are the types to which a pointer must be passed for the attributes:
CU_POINTER_ATTRIBUTE_BUFFER_ID
- probably a numeric ID, but what's its type?CU_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES
- a bitmask, supposedly, but how wide?
The CUDA driver API doesn't seem to answer these questions.
PS - Even for the boolean attributes it's not made clear enough whether you should pass an int*
or a bool*
.