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

[DeprecationWarning] Replacing soon-to-be-deprecated lazyInitCUDA with lazyInitDevice(at::kCUDA) #7855

Merged
merged 2 commits into from
Jan 16, 2025

Conversation

drivanov
Copy link
Contributor

This PR resolves multiple warnings:

[W110 03:11:01.976023226 Context.h:353] Warning: lazyInitCUDA is deprecated. Please use lazyInitDevice(at::kCUDA) instead. (function lazyInitCUDA)
[W110 03:11:01.979291350 Context.h:353] Warning: lazyInitCUDA is deprecated. Please use lazyInitDevice(at::kCUDA) instead. (function lazyInitCUDA)
[W110 03:11:01.980258297 Context.h:353] Warning: lazyInitCUDA is deprecated. Please use lazyInitDevice(at::kCUDA) instead. (function lazyInitCUDA)
[W110 03:11:01.983385323 Context.h:353] Warning: lazyInitCUDA is deprecated. Please use lazyInitDevice(at::kCUDA) instead. (function lazyInitCUDA)
[W110 03:11:01.984356630 Context.h:353] Warning: lazyInitCUDA is deprecated. Please use lazyInitDevice(at::kCUDA) instead. (function lazyInitCUDA)

generated by examples/bgnn/run.py test.

Description

Checklist

Please feel free to remove inapplicable items for your PR.

  • The PR title starts with [$CATEGORY] (such as [NN], [Model], [Doc], [Feature]])
  • I've leverage the tools to beautify the python and c++ code.
  • The PR is complete and small, read the Google eng practice (CL equals to PR) to understand more about small PR. In DGL, we consider PRs with less than 200 lines of core code change are small (example, test and documentation could be exempted).
  • To the best of my knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

Changes

@chang-l chang-l requested review from chang-l and Rhett-Ying January 14, 2025 07:48
Copy link
Collaborator

@chang-l chang-l left a comment

Choose a reason for hiding this comment

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

LGTM

@chang-l
Copy link
Collaborator

chang-l commented Jan 16, 2025

It passed our CI. Can we merge this @Rhett-Ying ?

@Rhett-Ying Rhett-Ying merged commit ba73133 into dmlc:master Jan 16, 2025
1 of 2 checks passed
@drivanov drivanov deleted the lazyInitCUDA branch January 16, 2025 02:12
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