[Hardware] Replace torch.cuda.device_count/current_device/set_device API (#36145)
Signed-off-by: Kunshang Ji <jikunshang95@gmail.com> Signed-off-by: Kunshang Ji <kunshang.ji@intel.com>
This commit is contained in:
@@ -491,7 +491,7 @@ class FlashInferAllToAllManager(All2AllManagerBase):
|
||||
self.initialize(
|
||||
world_size=self.world_size,
|
||||
rank=self.rank,
|
||||
gpus_per_node=torch.cuda.device_count,
|
||||
gpus_per_node=torch.accelerator.device_count,
|
||||
)
|
||||
return self.initialized
|
||||
|
||||
|
||||
Reference in New Issue
Block a user