Title: OpenCL interoperability does not work on CUDA machine · Issue #267 · arrayfire/arrayfire-python · GitHub
Open Graph Title: OpenCL interoperability does not work on CUDA machine · Issue #267 · arrayfire/arrayfire-python
X Title: OpenCL interoperability does not work on CUDA machine · Issue #267 · arrayfire/arrayfire-python
Description: On (Linux) CUDA machine, the backend returned by af.get_backend() remains at unified even if the backend is correctly set as OpenCL. af.get_active_backend() correctly returns OpenCL as the backend, but since the interoperability function...
Open Graph Description: On (Linux) CUDA machine, the backend returned by af.get_backend() remains at unified even if the backend is correctly set as OpenCL. af.get_active_backend() correctly returns OpenCL as the backend,...
X Description: On (Linux) CUDA machine, the backend returned by af.get_backend() remains at unified even if the backend is correctly set as OpenCL. af.get_active_backend() correctly returns OpenCL as the backend,...
Opengraph URL: https://github.com/arrayfire/arrayfire-python/issues/267
X: @github
Domain: redirect.github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"OpenCL interoperability does not work on CUDA machine","articleBody":"On (Linux) CUDA machine, the backend returned by `af.get_backend()` remains at unified even if the backend is correctly set as OpenCL. `af.get_active_backend()` correctly returns OpenCL as the backend, but since the interoperability functions use different way to check the backend, an error is output (see https://github.com/arrayfire/arrayfire-python/blob/master/arrayfire/opencl.py#L107). Commenting all those instances fixes the issue. The (commented) tests reproduce this error, i.e. https://github.com/arrayfire/arrayfire-python/blob/master/tests/simple/interop.py#L82\r\n\r\nNote that this wasn't an issue on a (Windows) AMD machine, where OpenCL is the default backend.","author":{"url":"https://github.com/villekf","@type":"Person","name":"villekf"},"datePublished":"2024-04-22T08:33:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/267/arrayfire-python/issues/267"}
| 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:c333d74c-67db-f59e-6aa0-2c6f6e5d7907 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D54A:B7E00:86827C:AF1841:696B532A |
| html-safe-nonce | 8b63df90998b3f39d2ee7daf69dff2cb277df6abb1a1bb9425ae6e43dd72ed14 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTRBOkI3RTAwOjg2ODI3QzpBRjE4NDE6Njk2QjUzMkEiLCJ2aXNpdG9yX2lkIjoiMTI3MTQ1Mjg3NTY0NDE2Mjg1OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ca793361bf5747eeba6b396ac9c637d1ebd836720bcb2bf1eb01aac96e48a3a4 |
| hovercard-subject-tag | issue:2255930476 |
| 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/267/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c4854872f13a242302341f194aa70cd6e284b844c9231696c9b16996e4e438a0/arrayfire/arrayfire-python/issues/267 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c4854872f13a242302341f194aa70cd6e284b844c9231696c9b16996e4e438a0/arrayfire/arrayfire-python/issues/267 |
| og:image:alt | On (Linux) CUDA machine, the backend returned by af.get_backend() remains at unified even if the backend is correctly set as OpenCL. af.get_active_backend() correctly returns OpenCL as the backend,... |
| 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