Title: Perf: Reduce `StridedMemoryView` construction time · Issue #449 · NVIDIA/cuda-python · GitHub
Open Graph Title: Perf: Reduce `StridedMemoryView` construction time · Issue #449 · NVIDIA/cuda-python
X Title: Perf: Reduce `StridedMemoryView` construction time · Issue #449 · NVIDIA/cuda-python
Description: Currently it takes 3.4 - 3.45 us (depending on stream-ordering or not) to create a memory view object: In [4]: x = cp.empty((23, 4)) In [7]: %timeit s = StridedMemoryView(x, -1) 3.4 μs ± 8.7 ns per loop (mean ± std. dev. of 7 runs, 100,0...
Open Graph Description: Currently it takes 3.4 - 3.45 us (depending on stream-ordering or not) to create a memory view object: In [4]: x = cp.empty((23, 4)) In [7]: %timeit s = StridedMemoryView(x, -1) 3.4 μs ± 8.7 ns per...
X Description: Currently it takes 3.4 - 3.45 us (depending on stream-ordering or not) to create a memory view object: In [4]: x = cp.empty((23, 4)) In [7]: %timeit s = StridedMemoryView(x, -1) 3.4 μs ± 8.7 ns per...
Opengraph URL: https://github.com/NVIDIA/cuda-python/issues/449
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Perf: Reduce `StridedMemoryView` construction time","articleBody":"Currently it takes 3.4 - 3.45 us (depending on stream-ordering or not) to create a memory view object:\n```python\nIn [4]: x = cp.empty((23, 4))\n\nIn [7]: %timeit s = StridedMemoryView(x, -1)\n3.4 μs ± 8.7 ns per loop (mean ± std. dev. of 7 runs, 100,000 loops each)\n\nIn [8]: %timeit s = StridedMemoryView(x, 1)\n3.45 μs ± 14.6 ns per loop (mean ± std. dev. of 7 runs, 100,000 loops each)\n```\nwhich could be a bit expensive in a tight loop. We should try to reduce it down to 1 us or O(100) ns if possible.\n\ncc @shwina for vis","author":{"url":"https://github.com/leofang","@type":"Person","name":"leofang"},"datePublished":"2025-02-14T03:49:27Z","url":"https://github.com/NVIDIA/cuda-python/issues/449"}
| 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:11dacf85-c073-ce05-26b9-335603f5b5cd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9D8A:107CDC:39127C:4FB51C:6AF8499C |
| html-safe-nonce | b6d0bce187da244424623f57eff0ca8a571605e61d5bbe5dab3f463b1ac60e9e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDhBOjEwN0NEQzozOTEyN0M6NEZCNTFDOjZBRjg0OTlDIiwidmlzaXRvcl9pZCI6IjI3MTQ5MTgxOTc2MTMwNTQzNjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4d17ac6add89c153a6df7fd8fcee53dc807fb6ad6e0e84fed57af8f70384a2a3 |
| hovercard-subject-tag | issue:2852601961 |
| 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/449/issue_layout |
| twitter:image | https://opengraph.githubassets.com/567647de5935d6ab58d7c6b61532dab938c8e59b10cd0b65d5dcf0f40962fccb/NVIDIA/cuda-python/issues/449 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/567647de5935d6ab58d7c6b61532dab938c8e59b10cd0b65d5dcf0f40962fccb/NVIDIA/cuda-python/issues/449 |
| og:image:alt | Currently it takes 3.4 - 3.45 us (depending on stream-ordering or not) to create a memory view object: In [4]: x = cp.empty((23, 4)) In [7]: %timeit s = StridedMemoryView(x, -1) 3.4 μs ± 8.7 ns per... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | leofang |
| 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