Title: Small bug in info_str if selected device number is >= 1 · Issue #266 · arrayfire/arrayfire-python · GitHub
Open Graph Title: Small bug in info_str if selected device number is >= 1 · Issue #266 · arrayfire/arrayfire-python
X Title: Small bug in info_str if selected device number is >= 1 · Issue #266 · arrayfire/arrayfire-python
Description: If the currently selected device number is 1 or greater, info_str will display incorrect information for the selected device. This is due to this conditional in device.py: https://github.com/arrayfire/arrayfire-python/blob/master/arrayfi...
Open Graph Description: If the currently selected device number is 1 or greater, info_str will display incorrect information for the selected device. This is due to this conditional in device.py: https://github.com/arrayf...
X Description: If the currently selected device number is 1 or greater, info_str will display incorrect information for the selected device. This is due to this conditional in device.py: https://github.com/arrayf...
Opengraph URL: https://github.com/arrayfire/arrayfire-python/issues/266
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Small bug in info_str if selected device number is \u003e= 1","articleBody":"If the currently selected device number is 1 or greater, info_str will display incorrect information for the selected device. This is due to this conditional in device.py: https://github.com/arrayfire/arrayfire-python/blob/master/arrayfire/device.py#L108. That is, the previous device is used for the device information. An easy fix should be to simply omit the conditional.\r\n\r\nHowever, the info_str seems to also show wrong devices after the platform has changed (though it could be related to something else too). For example when device number 1 is selected:\r\nArrayFire v3.9.0 (OpenCL 64bit)\r\n-0- AMD Accelerated Parallel Processing: gfx1036 (Compute 2.0)\r\n[1] AMD Accelerated Parallel Processing: gfx1036 (Compute 2.0)\r\n-2- AMD Accelerated Parallel Processing: gfx1036 (Compute 2.0)\r\n-3- Intel(R) OpenCL: AMD_Ryzen_5_7600X_6-Core_Processor (Compute 2.1)\r\n\r\nWith device number 3: \r\nArrayFire v3.9.0 (OpenCL 64bit)\r\n-0- AMD Accelerated Parallel Processing: gfx1036 (Compute 2.0)\r\n-1- AMD Accelerated Parallel Processing: gfx1100 (Compute 2.0)\r\n-2- AMD Accelerated Parallel Processing: gfx1036 (Compute 2.0)\r\n[3] AMD Accelerated Parallel Processing: gfx1036 (Compute 2.0)\r\n\r\nThe correct device is used in the actual computations though.\r\n\r\nNote that the C++ version shows:\r\nArrayFire v3.9.0 (OpenCL, 64-bit Windows, build b59a1ae53)\r\n-0- AMD: gfx1036, 24568 MB\r\n[1] AMD: gfx1100, 20464 MB\r\n-2- INTEL: AMD Ryzen 5 7600X 6-Core Processor , 64662 MB\r\n-3- INTEL: AMD Ryzen 5 7600X 6-Core Processor , 64662 MB","author":{"url":"https://github.com/villekf","@type":"Person","name":"villekf"},"datePublished":"2024-04-15T14:05:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/266/arrayfire-python/issues/266"}
| 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:d6412b0b-135a-1d2d-6d05-bdbddfd3194d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AEBC:3A6082:5463294:6F32FB7:696C0CD7 |
| html-safe-nonce | c7dee8b9ffd5340b216ef5f85bff8dbec5d42876c06e5c0349e679e463aa6bcd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRUJDOjNBNjA4Mjo1NDYzMjk0OjZGMzJGQjc6Njk2QzBDRDciLCJ2aXNpdG9yX2lkIjoiMzYwODMzNTEzNjc2NDcyNjQ4NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | af8ed6ba4de11a7c5cf49ccef8833623d630c4333a378967dbc18c4a3d45725f |
| hovercard-subject-tag | issue:2243781082 |
| 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/arrayfire/arrayfire-python/266/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3456be692a9b800885bda48e7ebbc30cd07f3457067e389ac0b9d8b8b0f9db63/arrayfire/arrayfire-python/issues/266 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3456be692a9b800885bda48e7ebbc30cd07f3457067e389ac0b9d8b8b0f9db63/arrayfire/arrayfire-python/issues/266 |
| og:image:alt | If the currently selected device number is 1 or greater, info_str will display incorrect information for the selected device. This is due to this conditional in device.py: https://github.com/arrayf... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | villekf |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/arrayfire/arrayfire-python git https://github.com/arrayfire/arrayfire-python.git |
| octolytics-dimension-user_id | 5395442 |
| octolytics-dimension-user_login | arrayfire |
| octolytics-dimension-repository_id | 37599258 |
| octolytics-dimension-repository_nwo | arrayfire/arrayfire-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 37599258 |
| octolytics-dimension-repository_network_root_nwo | arrayfire/arrayfire-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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width