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: redirect.github.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:74e0253f-3ab8-86be-b6c9-7fa2739a7ac5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A2C2:3CA8DF:2497AD:2F594D:696B39E9 |
| html-safe-nonce | 4dbb1afce7928622e18d41949d88d08845542b236d17be33ab3e9a0460a55018 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMkMyOjNDQThERjoyNDk3QUQ6MkY1OTREOjY5NkIzOUU5IiwidmlzaXRvcl9pZCI6IjYyNTc3NDc1MDkyOTE3MjczMzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 91b8c71b80565ada0ac79a5b49e086e39e29814a7d083f5f4249e306ed30b506 |
| 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