Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions test/test_cuda.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,9 @@ def test_out_of_memory_retry(self):
IS_JETSON, "oom reporting has issues on jetson igx due to partial nvml support"
)
def test_set_per_process_memory_fraction(self):
if torch.version.hip and ('gfx1101' in torch.cuda.get_device_properties(0).gcnArchName):
torch.cuda.empty_cache()
torch.cuda.reset_peak_memory_stats()
orig = torch.cuda.get_per_process_memory_fraction(0)
try:
# test invalid fraction value.
Expand Down