Skip to content

Conversation

@delock
Copy link
Collaborator

@delock delock commented Mar 9, 2023

This PR add checks for CUDA specific code in DeepSpeed. The purpose is to avoid accidental usage of CUDA code in new code.

Two kinds of code are checked against:

  1. torch.cuda code which calls PyTorch cuda runtime.
  2. tensor.cuda() which converts tensor to cuda device.

Also port remaining cuda specific code which can be ported.

Copy link
Collaborator

@jeffra jeffra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is great, thank you @delock

@jeffra jeffra merged commit 090d49e into deepspeedai:master Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants