Skip to content

[BUG]: Many device attributes are missing #675

Open
@leofang

Description

@leofang

Is this a duplicate?

Type of Bug

Something else

Component

cuda.core

Describe the bug

Many device attributes are not exposed for some reason.

How to Reproduce

>>> from cuda.bindings import driver
>>> with open("cuda/core/experimental/_device.py") as f:
...     code = f.read()
... 
>>> 
>>> for e in driver.CUdevice_attribute:
...     if e.name not in code:
...             print(f"{e.name} is missing!")
... 
CU_DEVICE_ATTRIBUTE_SURFACE_ALIGNMENT is missing!
CU_DEVICE_ATTRIBUTE_ASYNC_ENGINE_COUNT is missing!
CU_DEVICE_ATTRIBUTE_CAN_TEX2D_GATHER is missing!
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_GATHER_WIDTH is missing!
CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_GATHER_HEIGHT is missing!
CU_DEVICE_ATTRIBUTE_STREAM_PRIORITIES_SUPPORTED is missing!
CU_DEVICE_ATTRIBUTE_CAN_USE_STREAM_MEM_OPS_V1 is missing!
CU_DEVICE_ATTRIBUTE_CAN_USE_64_BIT_STREAM_MEM_OPS_V1 is missing!
CU_DEVICE_ATTRIBUTE_CAN_USE_STREAM_WAIT_VALUE_NOR_V1 is missing!
CU_DEVICE_ATTRIBUTE_COOPERATIVE_LAUNCH is missing!
CU_DEVICE_ATTRIBUTE_COOPERATIVE_MULTI_DEVICE_LAUNCH is missing!
CU_DEVICE_ATTRIBUTE_CAN_FLUSH_REMOTE_WRITES is missing!
CU_DEVICE_ATTRIBUTE_HOST_REGISTER_SUPPORTED is missing!
CU_DEVICE_ATTRIBUTE_VIRTUAL_ADDRESS_MANAGEMENT_SUPPORTED is missing!
CU_DEVICE_ATTRIBUTE_TIMELINE_SEMAPHORE_INTEROP_SUPPORTED is missing!
CU_DEVICE_ATTRIBUTE_CLUSTER_LAUNCH is missing!
CU_DEVICE_ATTRIBUTE_CAN_USE_64_BIT_STREAM_MEM_OPS is missing!
CU_DEVICE_ATTRIBUTE_CAN_USE_STREAM_WAIT_VALUE_NOR is missing!
CU_DEVICE_ATTRIBUTE_DMA_BUF_SUPPORTED is missing!
CU_DEVICE_ATTRIBUTE_IPC_EVENT_SUPPORTED is missing!
CU_DEVICE_ATTRIBUTE_MEM_SYNC_DOMAIN_COUNT is missing!
CU_DEVICE_ATTRIBUTE_TENSOR_MAP_ACCESS_SUPPORTED is missing!
CU_DEVICE_ATTRIBUTE_HANDLE_TYPE_FABRIC_SUPPORTED is missing!
CU_DEVICE_ATTRIBUTE_UNIFIED_FUNCTION_POINTERS is missing!
CU_DEVICE_ATTRIBUTE_MPS_ENABLED is missing!
CU_DEVICE_ATTRIBUTE_HOST_NUMA_ID is missing!
CU_DEVICE_ATTRIBUTE_D3D12_CIG_SUPPORTED is missing!
CU_DEVICE_ATTRIBUTE_MEM_DECOMPRESS_ALGORITHM_MASK is missing!
CU_DEVICE_ATTRIBUTE_MEM_DECOMPRESS_MAXIMUM_LENGTH is missing!
CU_DEVICE_ATTRIBUTE_VULKAN_CIG_SUPPORTED is missing!
CU_DEVICE_ATTRIBUTE_GPU_PCI_DEVICE_ID is missing!
CU_DEVICE_ATTRIBUTE_GPU_PCI_SUBSYSTEM_ID is missing!
CU_DEVICE_ATTRIBUTE_HOST_NUMA_VIRTUAL_MEMORY_MANAGEMENT_SUPPORTED is missing!
CU_DEVICE_ATTRIBUTE_HOST_NUMA_MEMORY_POOLS_SUPPORTED is missing!
CU_DEVICE_ATTRIBUTE_HOST_NUMA_MULTINODE_IPC_SUPPORTED is missing!

Expected behavior

cuda.core should always expose the superset of device attributes supported by the underlying 2 cuda.bindings major versions.

Operating System

No response

nvidia-smi output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0High priority - Must do!bugSomething isn't workingcuda.coreEverything related to the cuda.core moduletriageNeeds the team's attention

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions