Title: "max" crash when using GTX 1060 and CUDA 11.8 · Issue #367 · arrayfire/arrayfire-rust · GitHub
Open Graph Title: "max" crash when using GTX 1060 and CUDA 11.8 · Issue #367 · arrayfire/arrayfire-rust
X Title: "max" crash when using GTX 1060 and CUDA 11.8 · Issue #367 · arrayfire/arrayfire-rust
Description: The following code will crash when using GTX 1060 and CUDA 11.8 fn main(){ let a = range::
Open Graph Description: The following code will crash when using GTX 1060 and CUDA 11.8 fn main(){ let a = range::
X Description: The following code will crash when using GTX 1060 and CUDA 11.8 fn main(){ let a = range::<f64>(dim4!(2), 0); let b = min(&a, 0); println!("b={}", &b); } Running `target\deb...
Opengraph URL: https://github.com/arrayfire/arrayfire-rust/issues/367
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":" \"max\" crash when using GTX 1060 and CUDA 11.8","articleBody":"The following code will crash when using GTX 1060 and CUDA 11.8\r\n```\r\nfn main(){\r\n let a = range::\u003cf64\u003e(dim4!(2), 0);\r\n let b = min(\u0026a, 0);\r\n println!(\"b={}\", \u0026b);\r\n}\r\n```\r\n\r\n```\r\nRunning `target\\debug\\lent_calibration.exe`\r\nthread 'main' panicked at 'Error message: Error either in ArrayFire or in a project upstream\r\nLast error: In function cuda::kernel::reduce_first_launcher\r\nIn file D:/j_opt/arrayfire/src/backend/cuda\\kernel/reduce.hpp:469\r\nCUDA Error (209): no kernel image is available for execution on the device\r\n\r\n 0# af::exception::~exception in afcuda\r\n 1# af::randomEngine::get in afcuda\r\n 2# af::randomEngine::get in afcuda\r\n 4# af_set_seed in afcuda\r\n 5# af_min in af\r\n 6# arrayfire::algorithm::min\u003cf32\u003e at C:\\Program Files\\AF_dlls\\package\\arrayfire-3.8.0\\src\\algorithm\\mod.rs:154\r\n 7# lent_calibration::main at C:\\Users\\eli\\Desktop\\eg_rust\\src\\main.rs:159\r\n 8# core::ops::function::FnOnce::call_once\u003cvoid (*)(),tuple$\u003c\u003e \u003e at /rustc/897e37553bba8b42751c67658967889d11ecd120\\library\\core\\src\\ops\\function.rs:248\r\n 9# std::sys_common::backtrace::__rust_begin_short_backtrace\u003cvoid (*)(),tuple$\u003c\u003e \u003e at /rustc/897e37553bba8b42751c67658967889d11ecd120\\library\\std\\src\\sys_common\\backtrace.rs:125 \r\n10# std::rt::lang_start::closure$0\u003ctuple$\u003c\u003e \u003e at /rustc/897e37553bba8b42751c67658967889d11ecd120\\library\\std\\src\\rt.rs:166\r\n11', C:\\Program Files\\AF_dlls\\package\\arrayfire-3.8.0\\src\\core\\error.rs:37:14\r\nstack backtrace:\r\n 0: 0x7ff7f9d9a4d2 - std::backtrace_rs::backtrace::dbghelp::trace\r\n at /rustc/897e37553bba8b42751c67658967889d11ecd120/library\\std\\src\\..\\..\\backtrace\\src\\backtrace\\dbghelp.rs:98\r\n 1: 0x7ff7f9d9a4d2 - std::backtrace_rs::backtrace::trace_unsynchronized\r\n at /rustc/897e37553bba8b42751c67658967889d11ecd120/library\\std\\src\\..\\..\\backtrace\\src\\backtrace\\mod.rs:66\r\n 2: 0x7ff7f9d9a4d2 - std::sys_common::backtrace::_print_fmt\r\n at /rustc/897e37553bba8b42751c67658967889d11ecd120/library\\std\\src\\sys_common\\backtrace.rs:66\r\n 3: 0x7ff7f9d9a4d2 - std::sys_common::backtrace::_print::impl$0::fmt\r\n at /rustc/897e37553bba8b42751c67658967889d11ecd120/library\\std\\src\\sys_common\\backtrace.rs:45\r\n 4: 0x7ff7f9da8fcb - core::fmt::write\r\n at /rustc/897e37553bba8b42751c67658967889d11ecd120/library\\core\\src\\fmt\\mod.rs:1202\r\n 5: 0x7ff7f9d984fa - std::io::Write::write_fmt\u003cstd::sys::windows::stdio::Stderr\u003e\r\n at /rustc/897e37553bba8b42751c67658967889d11ecd120/library\\std\\src\\io\\mod.rs:1679\r\n 6: 0x7ff7f9d9c534 - std::sys_common::backtrace::_print\r\n at /rustc/897e37553bba8b42751c67658967889d11ecd120/library\\std\\src\\sys_common\\backtrace.rs:48\r\n 7: 0x7ff7f9d9c534 - std::sys_common::backtrace::print\r\n at /rustc/897e37553bba8b42751c67658967889d11ecd120/library\\std\\src\\sys_common\\backtrace.rs:35\r\n 8: 0x7ff7f9d9c534 - std::panicking::default_hook::closure$1\r\n at /rustc/897e37553bba8b42751c67658967889d11ecd120/library\\std\\src\\panicking.rs:295\r\n 9: 0x7ff7f9d9c16a - std::panicking::default_hook\r\n at /rustc/897e37553bba8b42751c67658967889d11ecd120/library\\std\\src\\panicking.rs:314\r\n 10: 0x7ff7f9d9cd21 - std::panicking::rust_panic_with_hook\r\n at /rustc/897e37553bba8b42751c67658967889d11ecd120/library\\std\\src\\panicking.rs:698\r\n 11: 0x7ff7f9d9cc2d - std::panicking::begin_panic_handler::closure$0\r\n at /rustc/897e37553bba8b42751c67658967889d11ecd120/library\\std\\src\\panicking.rs:588\r\n 12: 0x7ff7f9d9aeff - std::sys_common::backtrace::__rust_end_short_backtrace\u003cstd::panicking::begin_panic_handler::closure_env$0,never$\u003e\r\n at /rustc/897e37553bba8b42751c67658967889d11ecd120/library\\std\\src\\sys_common\\backtrace.rs:138\r\n 13: 0x7ff7f9d9c8f0 - std::panicking::begin_panic_handler\r\n at /rustc/897e37553bba8b42751c67658967889d11ecd120/library\\std\\src\\panicking.rs:584\r\n 14: 0x7ff7f9daed75 - core::panicking::panic_fmt\r\n at /rustc/897e37553bba8b42751c67658967889d11ecd120/library\\core\\src\\panicking.rs:142\r\n 15: 0x7ff7f9d91c72 - arrayfire::core::error::handle_error_general\r\n at C:\\Program Files\\AF_dlls\\package\\arrayfire-3.8.0\\src\\core\\error.rs:37\r\n 16: 0x7ff7f9d91bba - arrayfire::core::error::Callback::call\r\n at C:\\Program Files\\AF_dlls\\package\\arrayfire-3.8.0\\src\\core\\error.rs:29\r\n 17: 0x7ff7f9d91d58 - arrayfire::core::error::HANDLE_ERROR\r\n at C:\\Program Files\\AF_dlls\\package\\arrayfire-3.8.0\\src\\core\\error.rs:95\r\n 18: 0x7ff7f9d914b9 - arrayfire::algorithm::min\u003cf32\u003e\r\n at C:\\Program Files\\AF_dlls\\package\\arrayfire-3.8.0\\src\\algorithm\\mod.rs:155\r\n 19: 0x7ff7f9d912b3 - lent_calibration::main\r\n at C:\\Users\\eli\\Desktop\\eg_rust\\src\\main.rs:159\r\n 20: 0x7ff7f9d913bb - core::ops::function::FnOnce::call_once\u003cvoid (*)(),tuple$\u003c\u003e \u003e\r\n at /rustc/897e37553bba8b42751c67658967889d11ecd120\\library\\core\\src\\ops\\function.rs:248\r\n 21: 0x7ff7f9d9122e - std::sys_common::backtrace::__rust_begin_short_backtrace\u003cvoid (*)(),tuple$\u003c\u003e \u003e\r\n at /rustc/897e37553bba8b42751c67658967889d11ecd120\\library\\std\\src\\sys_common\\backtrace.rs:122\r\n 22: 0x7ff7f9d9122e - std::sys_common::backtrace::__rust_begin_short_backtrace\u003cvoid (*)(),tuple$\u003c\u003e \u003e\r\n at /rustc/897e37553bba8b42751c67658967889d11ecd120\\library\\std\\src\\sys_common\\backtrace.rs:122\r\n 23: 0x7ff7f9d91541 - std::rt::lang_start::closure$0\u003ctuple$\u003c\u003e \u003e\r\n at /rustc/897e37553bba8b42751c67658967889d11ecd120\\library\\std\\src\\rt.rs:166\r\n 24: 0x7ff7f9d96f5e - core::ops::function::impls::impl$2::call_once\r\n at /rustc/897e37553bba8b42751c67658967889d11ecd120/library\\core\\src\\ops\\function.rs:283\r\n 25: 0x7ff7f9d96f5e - std::panicking::try::do_call\r\n at /rustc/897e37553bba8b42751c67658967889d11ecd120/library\\std\\src\\panicking.rs:492\r\n 26: 0x7ff7f9d96f5e - std::panicking::try\r\n at /rustc/897e37553bba8b42751c67658967889d11ecd120/library\\std\\src\\panicking.rs:456\r\n 27: 0x7ff7f9d96f5e - std::panic::catch_unwind\r\n at /rustc/897e37553bba8b42751c67658967889d11ecd120/library\\std\\src\\panic.rs:137\r\n 28: 0x7ff7f9d96f5e - std::rt::lang_start_internal::closure$2\r\n at /rustc/897e37553bba8b42751c67658967889d11ecd120/library\\std\\src\\rt.rs:148\r\n 29: 0x7ff7f9d96f5e - std::panicking::try::do_call\r\n at /rustc/897e37553bba8b42751c67658967889d11ecd120/library\\std\\src\\panicking.rs:492\r\n 30: 0x7ff7f9d96f5e - std::panicking::try\r\n at /rustc/897e37553bba8b42751c67658967889d11ecd120/library\\std\\src\\panicking.rs:456\r\n 31: 0x7ff7f9d96f5e - std::panic::catch_unwind\r\n at /rustc/897e37553bba8b42751c67658967889d11ecd120/library\\std\\src\\panic.rs:137\r\n 32: 0x7ff7f9d96f5e - std::rt::lang_start_internal\r\n at /rustc/897e37553bba8b42751c67658967889d11ecd120/library\\std\\src\\rt.rs:148\r\n 33: 0x7ff7f9d9151a - std::rt::lang_start\u003ctuple$\u003c\u003e \u003e\r\n at /rustc/897e37553bba8b42751c67658967889d11ecd120\\library\\std\\src\\rt.rs:165\r\n 34: 0x7ff7f9d9136c - main\r\n 35: 0x7ff7f9dad6a0 - invoke_main\r\n at D:\\a\\_work\\1\\s\\src\\vctools\\crt\\vcstartup\\src\\startup\\exe_common.inl:78\r\n 36: 0x7ff7f9dad6a0 - __scrt_common_main_seh\r\n at D:\\a\\_work\\1\\s\\src\\vctools\\crt\\vcstartup\\src\\startup\\exe_common.inl:288\r\n 37: 0x7ffee6c974b4 - BaseThreadInitThunk\r\n 38: 0x7ffee70426a1 - RtlUserThreadStart\r\nerror: process didn't exit successfully: `target\\debug\\lent_calibration.exe` (exit code: 101)\r\n```","author":{"url":"https://github.com/3togo","@type":"Person","name":"3togo"},"datePublished":"2022-12-06T15:39:36.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/367/arrayfire-rust/issues/367"}
| 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:d21f2980-e770-f0a5-78a1-574e8add04d5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8E4C:27E50:2782B5:376374:696E4517 |
| html-safe-nonce | 9c7b42f68b46b99e538e40e23fd5016710e0bcf4aef7fc72910780a34a6fe099 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTRDOjI3RTUwOjI3ODJCNTozNzYzNzQ6Njk2RTQ1MTciLCJ2aXNpdG9yX2lkIjoiNDgzMDYxMTExNjEzNzUzMDY0NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bf50ec07610b4eb10c3334386b693c09241e91b4990c50b84f6b1dbc01d6a724 |
| hovercard-subject-tag | issue:1479415100 |
| 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-rust/367/issue_layout |
| twitter:image | https://opengraph.githubassets.com/447963f8735af1cafc67b05bd7165345791f7d0d56dd4746880ae3de59fd4401/arrayfire/arrayfire-rust/issues/367 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/447963f8735af1cafc67b05bd7165345791f7d0d56dd4746880ae3de59fd4401/arrayfire/arrayfire-rust/issues/367 |
| og:image:alt | The following code will crash when using GTX 1060 and CUDA 11.8 fn main(){ let a = range:: |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | 3togo |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d96554e55b469c47dbcd31f74dc86278872b170531e84c6ce7f3389673e01d1 |
| turbo-cache-control | no-preview |
| go-import | github.com/arrayfire/arrayfire-rust git https://github.com/arrayfire/arrayfire-rust.git |
| octolytics-dimension-user_id | 5395442 |
| octolytics-dimension-user_login | arrayfire |
| octolytics-dimension-repository_id | 35817370 |
| octolytics-dimension-repository_nwo | arrayfire/arrayfire-rust |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 35817370 |
| octolytics-dimension-repository_network_root_nwo | arrayfire/arrayfire-rust |
| 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 | ef576694863a4c791d0a5cc9d2b84384d4414bcd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width