Title: backends do not load in proper order · Issue #251 · arrayfire/arrayfire-python · GitHub
Open Graph Title: backends do not load in proper order · Issue #251 · arrayfire/arrayfire-python
X Title: backends do not load in proper order · Issue #251 · arrayfire/arrayfire-python
Description: This line has a comment # Iterate in reverse order of preference. However, it loads them with some random order, because the object to iterate is a set, which doesn't keep the order. In my Linux computer, when I run import arrayfire as a...
Open Graph Description: This line has a comment # Iterate in reverse order of preference. However, it loads them with some random order, because the object to iterate is a set, which doesn't keep the order. In my Linux co...
X Description: This line has a comment # Iterate in reverse order of preference. However, it loads them with some random order, because the object to iterate is a set, which doesn't keep the order. In my Linu...
Opengraph URL: https://github.com/arrayfire/arrayfire-python/issues/251
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"backends do not load in proper order","articleBody":"[This line](https://github.com/arrayfire/arrayfire-python/blob/28a0f610c5329ebc718ce4d924f870c3651bfb3e/arrayfire/library.py#L646) has a comment `# Iterate in reverse order of preference`. However, it loads them with some random order, because the object to iterate is a `set`, which doesn't keep the order. In my Linux computer, when I run `import arrayfire as af`, the function will be called and it loads `\"\"` first, and due to `err!=0`, it directly returns and not loads anything.\r\n\r\nBy the way, I simply change `{\"cpu\", \"opencl\", \"cuda\", \"\"}` to `[\"cuda\"]` and I can import arrayfire with no error.","author":{"url":"https://github.com/zzjjbb","@type":"Person","name":"zzjjbb"},"datePublished":"2021-02-24T02:56:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/251/arrayfire-python/issues/251"}
| 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:6acb4de6-d297-9ca0-e252-b69a71502148 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AA22:2C1011:84DF80A:B18AF6E:696E13F4 |
| html-safe-nonce | 7fc593f5e46faaff409db7f214e0acc0eb305e8c79e6b2793487cb99515c8813 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTIyOjJDMTAxMTo4NERGODBBOkIxOEFGNkU6Njk2RTEzRjQiLCJ2aXNpdG9yX2lkIjoiODgyMDI2MTQyMzQyNjcwNDM3MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6c83af9cd6be555106ac3cadbdc6a43bcd43461e7d067d1bcc67773ad73f3c4d |
| hovercard-subject-tag | issue:815032835 |
| 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/251/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a11d9362cc3e1efd2f3a77a6e8272798cb8a2577928c07d80f72509212bc02e4/arrayfire/arrayfire-python/issues/251 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a11d9362cc3e1efd2f3a77a6e8272798cb8a2577928c07d80f72509212bc02e4/arrayfire/arrayfire-python/issues/251 |
| og:image:alt | This line has a comment # Iterate in reverse order of preference. However, it loads them with some random order, because the object to iterate is a set, which doesn't keep the order. In my Linux co... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zzjjbb |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1a7d6d739bf034e67486b9f97a31887ca30302b72a0acac49b6bcddff34356d7 |
| 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 | 87d7872ec7094ed247923539669aabda9230966f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width