Skip to content

fix: use correct pynvml function name nvmlDeviceGetNumaNodeId#9

Merged
cfregly merged 1 commit intocfregly:mainfrom
cr7258:fix-nvmlDeviceGetNumaNodeId
Mar 15, 2026
Merged

fix: use correct pynvml function name nvmlDeviceGetNumaNodeId#9
cfregly merged 1 commit intocfregly:mainfrom
cr7258:fix-nvmlDeviceGetNumaNodeId

Conversation

@cr7258
Copy link
Contributor

@cr7258 cr7258 commented Mar 15, 2026

The correct function name is nvmlDeviceGetNumaNodeId. (NUMA -> Numa)

python -c "
import pynvml
pynvml.nvmlInit()
handle = pynvml.nvmlDeviceGetHandleByIndex(0)
print(f'GPU 0 NUMA node: {pynvml.nvmlDeviceGetNUMANodeId(handle)}')
"

# Output
Traceback (most recent call last):
  File "<string>", line 5, in <module>
AttributeError: module 'pynvml' has no attribute 'nvmlDeviceGetNUMANodeId'

@cfregly cfregly merged commit 9cd7a50 into cfregly:main Mar 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants