Title: Fix Stream.device and Stream.context with respect to _util.device.from_ctx · Issue #202 · NVIDIA/cuda-python · GitHub
Open Graph Title: Fix Stream.device and Stream.context with respect to _util.device.from_ctx · Issue #202 · NVIDIA/cuda-python
X Title: Fix Stream.device and Stream.context with respect to _util.device.from_ctx · Issue #202 · NVIDIA/cuda-python
Description: The obvious issue is that both of these call get_device_from_ctx which references the unimported Device(). Importing it would cause a circular dependency. This does not appear to be the root of the issue, as per the logic of the Stream c...
Open Graph Description: The obvious issue is that both of these call get_device_from_ctx which references the unimported Device(). Importing it would cause a circular dependency. This does not appear to be the root of the...
X Description: The obvious issue is that both of these call get_device_from_ctx which references the unimported Device(). Importing it would cause a circular dependency. This does not appear to be the root of the...
Opengraph URL: https://github.com/NVIDIA/cuda-python/issues/202
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Fix Stream.device and Stream.context with respect to _util.device.from_ctx","articleBody":"The obvious issue is that both of these call get_device_from_ctx which references the unimported Device(). Importing it would cause a circular dependency. This does not appear to be the root of the issue, as per the logic of the Stream class, and the cuda model, self._device_id can never be None. In short, we can get rid of util.device_from_ctx","author":{"url":"https://github.com/keenan-simpson","@type":"Person","name":"keenan-simpson"},"datePublished":"2024-10-30T22:10:04Z","url":"https://github.com/NVIDIA/cuda-python/issues/202"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ce20721f-9bdb-d0d9-67c7-6ce2f834cf2c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 88B2:22BD8B:4FCE4B:6DE02E:6AF84565 |
| html-safe-nonce | fbb1257a37003ad4e607b0a354a2ae7379b4a1b22a839286f8dcc46861c3873c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OEIyOjIyQkQ4Qjo0RkNFNEI6NkRFMDJFOjZBRjg0NTY1IiwidmlzaXRvcl9pZCI6IjczNzI2NDg1MzMxOTYyOTM0NzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ca632e9dc0eb1f6bd82b6c082e97cadbd68212c29bc8a87783305fc80488506e |
| hovercard-subject-tag | issue:2625466674 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NVIDIA/cuda-python/202/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7a1086ee35f2e87b3fb344a705b7b9d11615fafd31f9bd468c085f12e30feec7/NVIDIA/cuda-python/issues/202 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7a1086ee35f2e87b3fb344a705b7b9d11615fafd31f9bd468c085f12e30feec7/NVIDIA/cuda-python/issues/202 |
| og:image:alt | The obvious issue is that both of these call get_device_from_ctx which references the unimported Device(). Importing it would cause a circular dependency. This does not appear to be the root of the... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | keenan-simpson |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5713ecd83001b2f55c3509fb7a292bf7d66d0f167c7ae87a9f7eaec5a52bf8db |
| turbo-cache-control | no-preview |
| go-import | github.com/NVIDIA/cuda-python git https://github.com/NVIDIA/cuda-python.git |
| octolytics-dimension-user_id | 1728152 |
| octolytics-dimension-user_login | NVIDIA |
| octolytics-dimension-repository_id | 381173759 |
| octolytics-dimension-repository_nwo | NVIDIA/cuda-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 381173759 |
| octolytics-dimension-repository_network_root_nwo | NVIDIA/cuda-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 653be32ff5c755082a4db662491bfbbcfc9112c1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width