mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-15 14:15:55 -06:00
[GH-ISSUE #69] [Bug] Execution Freeze while using CudaDevice.count() in global scope #41
Labels
No labels
api
bug
bug
cli / tui
dependencies
documentation
documentation
documentation
duplicate
enhancement
exporter
invalid
pull-request
pynvml
question
question
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/nvitop#41
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @aradhyamathur on GitHub (Apr 10, 2023).
Original GitHub issue: https://github.com/XuehaiPan/nvitop/issues/69
Originally assigned to: @XuehaiPan on GitHub.
Required prerequisites
Questions
Upon calling
print(CudaDevice.count())I receive the following error and the execution gets stuck and have to interrupt it manually. Can you please guide ?nvitop version 1.1.1
NVIDIA-SMI 470.182.03 Driver Version: 470.182.03 CUDA Version: 11.4
@aradhyamathur commented on GitHub (Apr 10, 2023):
Seems like it pertains to name, i was directly running without setting the namespace, which led to the above error in the script, whereas in the ipython shell it is already set by already.
@XuehaiPan commented on GitHub (Apr 10, 2023):
Hi @aradhyamathur, thanks for raising this. Having
CudaDevice.count()in global scope is a common use case. I think this should be considered a bug. Executing theCUDA_VISIBLE_DEVICEparser in the global scope will always reports this annoying message:I opened a PR #70 to resolve this. Could you try the patch with the following command?
@XuehaiPan commented on GitHub (Apr 11, 2023):
This fix is included in release 1.1.2.
@aradhyamathur commented on GitHub (Apr 11, 2023):
Thanks I'll check.
@aradhyamathur commented on GitHub (Apr 11, 2023):
Yeah @XuehaiPan it works, thanks.