Commit 04e1159
authored
fix(pt): set device for PT C++ (#4261)
Fix #4171.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **New Features**
- Improved GPU initialization to ensure the correct device is utilized.
- Enhanced error handling for clearer context on exceptions.
- **Bug Fixes**
- Updated error handling in multiple methods to catch and rethrow
specific exceptions.
- Added logic to handle communication-related tensors during
computation.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>1 parent 39cddd4 commit 04e1159
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
83 | 86 | | |
84 | 87 | | |
85 | 88 | | |
| |||
0 commit comments