Title: [BUG] Matmul with fp16 resulting in some NaN values · Issue #3674 · arrayfire/arrayfire · GitHub
Open Graph Title: [BUG] Matmul with fp16 resulting in some NaN values · Issue #3674 · arrayfire/arrayfire
X Title: [BUG] Matmul with fp16 resulting in some NaN values · Issue #3674 · arrayfire/arrayfire
Description: The OpenCL backend test for ConvolveStrided in convolve.cpp fails for half (fp16) data type due to NaN appearing in the array which is a result of the matmul operation done upstream. The library used for matrix multiplication is clblast ...
Open Graph Description: The OpenCL backend test for ConvolveStrided in convolve.cpp fails for half (fp16) data type due to NaN appearing in the array which is a result of the matmul operation done upstream. The library us...
X Description: The OpenCL backend test for ConvolveStrided in convolve.cpp fails for half (fp16) data type due to NaN appearing in the array which is a result of the matmul operation done upstream. The library us...
Opengraph URL: https://github.com/arrayfire/arrayfire/issues/3674
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG] Matmul with fp16 resulting in some NaN values","articleBody":"The OpenCL backend test for ConvolveStrided in convolve.cpp fails for half (fp16) data type due to NaN appearing in the array which is a result of the matmul operation done upstream. The library used for matrix multiplication is clblast which may have this [related issue](https://github.com/CNugteren/CLBlast/issues/561).\n\nDescription\n===========\n* Built Arrayfire commit eaa49caced87c6eb21d612b1d546ab3061d30a73\n* Which backend is experiencing this issue? OpenCL\n* Do you have a workaround?: Forcing internatlly cast to float before the matrix operation resolves it\n* Can the bug be reproduced reliably on your system? Yes\n\nReproducible Code and/or Steps\n------------------------------\nRun test_convolve_opencl. Reproducible with CPU, Nvidia, and Intel GPUs","author":{"url":"https://github.com/edwinsolisf","@type":"Person","name":"edwinsolisf"},"datePublished":"2025-06-30T00:44:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/3674/arrayfire/issues/3674"}
| 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:911fe44d-6c5c-4415-cb52-efd782eb7f86 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D8BC:169C19:4071FFE:562F8A4:696DEC10 |
| html-safe-nonce | 1159489b806661584189029604ccfc1b6eac339524498628cea556002b6d67f0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOEJDOjE2OUMxOTo0MDcxRkZFOjU2MkY4QTQ6Njk2REVDMTAiLCJ2aXNpdG9yX2lkIjoiMjM2MDEyMTk5NTkyMDUzNDU0NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 69e54129fd8ae8cea31450552b4b2ae03f90e0117e575d18ae0e2813a2688b94 |
| hovercard-subject-tag | issue:3186762582 |
| 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/3674/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2163b5374c56ecd05fd8e773f7daf6735bf08e95fbe468a5ddbac6d92ff959a3/arrayfire/arrayfire/issues/3674 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2163b5374c56ecd05fd8e773f7daf6735bf08e95fbe468a5ddbac6d92ff959a3/arrayfire/arrayfire/issues/3674 |
| og:image:alt | The OpenCL backend test for ConvolveStrided in convolve.cpp fails for half (fp16) data type due to NaN appearing in the array which is a result of the matmul operation done upstream. The library us... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | edwinsolisf |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4922b452d03cd8dbce479d866a11bc25b59ef6ee2da23aa9b0ddefa6bd4d0064 |
| turbo-cache-control | no-preview |
| go-import | github.com/arrayfire/arrayfire git https://github.com/arrayfire/arrayfire.git |
| octolytics-dimension-user_id | 5395442 |
| octolytics-dimension-user_login | arrayfire |
| octolytics-dimension-repository_id | 25889802 |
| octolytics-dimension-repository_nwo | arrayfire/arrayfire |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 25889802 |
| octolytics-dimension-repository_network_root_nwo | arrayfire/arrayfire |
| 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 | 7e5ae23c70136152637ceee8d6faceb35596ec46 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width