-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Fix warnings when running AutoMate env #3660
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
72388bc
4060cb4
706e30b
00fa5da
0eb6210
5d1ee06
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -123,8 +123,8 @@ class _SoftDTWCUDA(Function): | |
def forward(ctx, D, gamma, bandwidth): | ||
dev = D.device | ||
dtype = D.dtype | ||
gamma = torch.cuda.FloatTensor([gamma]) | ||
bandwidth = torch.cuda.FloatTensor([bandwidth]) | ||
gamma = torch.tensor([gamma], dtype=torch.float, device="cuda") | ||
bandwidth = torch.tensor([bandwidth], dtype=torch.float, device="cuda") | ||
Comment on lines
+126
to
+127
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this using "cuda" and not the dev itself? Not sure if this will work nicely on multi-gpu setup? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We did not run AutoMate env with multi-gpu setting. Could you please suggest how to change device='cuda' for multi-gpu setting? Any example of this? |
||
|
||
B = D.shape[0] | ||
N = D.shape[1] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does the
NUMBA_CUDA_LOW_OCCUPANCY_WARNINGS
do here specifically? Could you add a comment in the code if it needed for something specific?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is a easy fix for the reported warning "/colossus/isaaclab/venv_sim_pip_lab_src/lib/python3.11/site-packages/numba/cuda/dispatcher.py:536: NumbaPerformanceWarning: Grid size 1 will likely result in GPU under-utilization due to low occupancy.
warn(NumbaPerformanceWarning(msg))
[2025-07-23 22:33:10,045][numba.cuda.cudadrv.driver][INFO] - init
/colossus/isaaclab/venv_sim_pip_lab_src/lib/python3.11/site-packages/numba/cuda/dispatcher.py:536: NumbaPerformanceWarning: Grid size 1 will likely result in GPU under-utilization due to low occupancy.
warn(NumbaPerformanceWarning(msg))".