Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PyTorch] Adding support for all possible torch.cuda and c10::cuda APIs & Macros #2580

Merged
merged 2 commits into from
Jan 8, 2025

Conversation

TejaX-Alaghari
Copy link
Contributor

@TejaX-Alaghari TejaX-Alaghari commented Dec 22, 2024

This PR adds support for below -

torch.cuda. APIs:

  • torch.cuda.init()
  • torch.cuda.is_initialized()
  • torch.cuda.current_device()
  • torch.cuda.set_device(dev)
  • torch.cuda.get_device_properties(dev)
  • torch.cuda.get_device_name()
  • torch.cuda.device_of(obj)
  • torch.cuda.synchronize()
  • torch.cuda.current_stream()
  • torch.cuda.StreamContext(st)
  • torch.cuda.stream(st)
  • torch.cuda.set_stream(st)

c10::cuda:: APIs:

  • c10::cuda::device_count()
  • c10::cuda::device_count_ensure_non_zero()
  • c10::cuda::current_device()
  • c10::cuda::set_device(idx)
  • DeviceIndex c10::cuda::ExchangeDevice(idx)
  • DeviceIndex c10::cuda::MaybeExchangeDevice(idx)

c10::cuda:: Macros:

  • C10_CUDA_BUILD_SHARED_LIBS
  • C10_CUDA_EXPORT
  • C10_CUDA_IMPORT
  • C10_CUDA_API
  • C10_CUDA_BUILD_MAIN_LIB

@TejaX-Alaghari TejaX-Alaghari changed the title [PyTorch] Adding support for torch.cuda and c10::cuda APIs [PyTorch] Adding support for all possible torch.cuda and c10::cuda APIs & Macros Dec 23, 2024
@TejaX-Alaghari TejaX-Alaghari force-pushed the setup_py_mig branch 3 times, most recently from f584ccb to 376cd80 Compare December 26, 2024 09:53
@zhimingwang36 zhimingwang36 merged commit 2d6ce23 into oneapi-src:SYCLomatic Jan 8, 2025
7 checks passed
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