Skip to content

Commit adb5261

Browse files
Chao1Hanguangyey
authored andcommitted
Update test/distributed/checkpoint/_experimental/test_builder.py
Co-authored-by: Yu, Guangye <106960996+guangyey@users.noreply.github.com>
1 parent 12e06c2 commit adb5261

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/distributed/checkpoint/_experimental/test_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def test_make_async_checkpointer(self) -> None:
123123
# Create async checkpointer using factory function with default parameters
124124
config: CheckpointerConfig = CheckpointerConfig()
125125
config.staging_config = CheckpointStagerConfig(
126-
use_non_blocking_copy=torch.cuda.is_available(),
126+
use_non_blocking_copy=torch.accelerator.is_available(),
127127
use_pinned_memory=torch.cuda.is_available(),
128128
)
129129
checkpointer = make_async_checkpointer(config=config, rank_info=self.rank_info)

0 commit comments

Comments
 (0)