100 Commits
Author SHA1 Message Date
Manuel Drehwald 6e0b610049 document the needs-enzyme flag 2025-12-29 02:48:36 -08:00
Manuel Drehwald 7ee7d446bf add has_offload/needs-offload to the test infra 2025-12-29 02:47:53 -08:00
Manuel Drehwald 6f06d386b8 cpuid is safe since the stdarch sync, so remove unsafe from usages 2025-12-26 08:46:49 +01:00
Manuel Drehwald 8e1d80305f Update offloading docs to account for simplified usage 2025-12-23 05:20:11 -08:00
Manuel Drehwald 3fdc6da2aa adding proper error handling for offload 2025-12-23 05:20:11 -08:00
Manuel Drehwald dfef2e96fe Remove the need to call clang for std::offload usages 2025-12-23 05:20:07 -08:00
Manuel Drehwald f3b16d833f Change how we build offload as a single Step 2025-12-22 23:50:11 +01:00
Manuel Drehwald e8a6312474 add new configure_cmake option to let projects set cc/cxx flags 2025-12-22 11:18:35 -08:00
Manuel Drehwald c34ea6e56d remove llvm_enzyme and enzyme fallbacks from most places, enable the autodiff frontend on nightly 2025-12-19 11:02:57 -08:00
Manuel Drehwald 793d990d11 Emit a proper error if we fail to find libEnzyme 2025-12-16 21:33:28 +01:00
Manuel Drehwald 1a114aee72 Merge pull request #2656 from rust-lang/highlevel-offload-doc
add a high-level design description
2025-11-25 15:51:13 -05:00
Manuel Drehwald b881bd29fd add a high-level design description 2025-11-25 15:50:15 -05:00
Manuel Drehwald b31005e381 update dev guide 2025-11-23 00:19:55 -08:00
Manuel Drehwald 5fbe5dae42 Only try to link against offload functions if llvm.enzyme is enabled 2025-11-23 00:19:53 -08:00
Manuel Drehwald 89d50591c0 Replace the first of 4 binary invocations for offload 2025-11-21 02:41:17 -08:00
Manuel Drehwald 0b2e02f135 autodiff: update formating, improve examples for the unstable-book 2025-11-19 03:05:45 -05:00
Manuel Drehwald 2d1fc63101 adding a working rlib autodiff test 2025-11-19 00:18:33 -05:00
Manuel Drehwald 0dfdb6c3da rlib handling 2025-11-19 00:17:37 -05:00
Manuel Drehwald f5892da3f2 add autodiff examples 2025-11-16 23:35:37 -05:00
Manuel Drehwald 2bf2f443f5 Merge pull request #2646 from rust-lang/update-offload-docs
add missing " and -Zoffload=Enable flag
2025-11-14 13:44:07 -05:00
Manuel Drehwald 3dcaf9bc41 add missing " and -Zoffload=Enable flag 2025-11-14 13:41:07 -05:00
Manuel Drehwald c8bae8c06e add a test to verify a good error for enabling autodiff without lto 2025-11-11 23:44:08 -05:00
Manuel Drehwald 63f4b36406 provide an error if an autodiff user does not set in their Cargo.toml 2025-11-11 23:44:06 -05:00
Manuel Drehwald 9774d0ac7a Merge pull request #2632 from rust-lang/autodiff-remove-downloadllvm
the download-ci-llvm experiment turned out to be too unreliable
2025-11-06 14:10:33 -05:00
Manuel Drehwald 5a4bb891f5 the download-ci-llvm experiment turned out to be too unreliable 2025-11-06 14:09:04 -05:00
Manuel Drehwald 360b38cceb Fix device code generation, to account for an implicit dyn_ptr argument. 2025-11-06 03:34:38 -05:00
Manuel Drehwald 1fbaa24d64 fix typo in autodiff docs 2025-10-29 00:31:09 -07:00
Manuel Drehwald a2dce774bc Start documenting autodiff activities 2025-10-28 00:47:29 -07:00
Manuel Drehwald bfbe728d93 Merge pull request #2616 from rust-lang/gpu-example-update
Add the gpu version of the kernel which was missing in the docs
2025-10-24 03:11:16 +02:00
Manuel Drehwald 8badb14d82 Add the gpu version of the kernel which was missing in the docs 2025-10-24 03:09:24 +02:00
Manuel Drehwald 3e32dc27e3 update CONFIG_CHANGE_HISTORY 2025-10-19 21:04:40 +02:00
Manuel Drehwald 788717b60f update autodiff docs in the dev guide 2025-10-19 21:04:36 +02:00
Manuel Drehwald 0f93363124 enzyme/autodiff is compatible with download-ci=true 2025-10-19 19:18:18 +02:00
Manuel Drehwald 5bb815a705 model offload C++ structs through Rust structs 2025-10-19 09:38:46 -07:00
Manuel Drehwald b56d555a36 fix host code 2025-10-19 09:28:39 -07:00
Manuel Drehwald 218fa60795 update ui test since the new frontend is a bit more lenient 2025-10-07 20:13:59 -04:00
Manuel Drehwald 52e7917586 Use globals instead of metadata, since metadata isn't emitted in debug builds 2025-10-07 20:13:59 -04:00
Manuel Drehwald dcc36a8642 add incremental/debug test for autodiff 2025-10-07 20:13:56 -04:00
Manuel Drehwald 7c8fe29fd6 solve autodiffv2.rs FIXME and make identical_fnc test more robust 2025-10-05 03:07:51 -04:00
Manuel Drehwald bd975777a2 Merge pull request #2603 from rust-lang/autodiff-updates
update libEnzyme file name, and add missing strict-aliasing flag
2025-10-05 01:40:12 -04:00
Manuel Drehwald 765e2fe6ee Add potential instability warning 2025-10-05 01:38:29 -04:00
Manuel Drehwald a175921d5e update libEnzyme file name, and add missing strict-aliasing flag 2025-10-04 23:52:33 -04:00
Manuel Drehwald 12cfad9a8b update autodiff batching test 2025-10-03 18:12:22 -04:00
Manuel Drehwald de189fa982 updating tests to not break from new typetree metadata 2025-09-30 22:47:43 -04:00
Manuel Drehwald 28ffbab353 add empty struct ret testcase 2025-09-30 22:47:43 -04:00
Manuel Drehwald ddbaca521e fix void and empty struct ret 2025-09-30 22:47:40 -04:00
Manuel Drehwald ef90d22dda update enzyme submodule 2025-09-17 20:04:57 +08:00
Manuel Drehwald ff591075ec Merge pull request #2385 from KMJ-007/master
documentation for Enzyme Type Trees
2025-09-11 03:43:36 -04:00
Manuel Drehwald 636e147bbb Merge pull request #2524 from rust-lang/offload-device
add gpu device side instructions
2025-08-19 15:52:53 -07:00
Manuel Drehwald 88c42a249a add gpu device side instructions 2025-08-19 15:43:30 -07:00
Manuel Drehwald c00881bcb9 update enzyme submodule to handle llvm 21 2025-08-07 16:31:00 -07:00
Manuel Drehwald dfec44905c Merge pull request #2534 from skrobchik/patch-1
Update installation.md
2025-08-05 14:14:30 -07:00
Manuel Drehwald 732097ea61 disable cfg.has_reliable_f128 on amdgcn 2025-07-23 16:49:39 -07:00
Manuel Drehwald c068599173 add unstable-books doc for offload 2025-07-18 16:30:46 -07:00
Manuel Drehwald e2ab312c94 add gpu offload codegen host side test 2025-07-18 16:30:46 -07:00
Manuel Drehwald 4a1a5a4295 gpu host code generation 2025-07-18 16:30:42 -07:00
Manuel Drehwald 5958ebe829 add various wrappers for gpu code generation 2025-07-18 16:24:12 -07:00
Manuel Drehwald 634016478e add -Zoffload=Enable flag behind -Zunstable-options, to enable gpu (host) code generation 2025-07-18 16:24:00 -07:00
Manuel Drehwald 42d6b0d8bc make more builder functions generic 2025-07-18 16:23:54 -07:00
Manuel Drehwald 3fb1af3987 enzyme submodule update 2025-07-18 16:23:47 -07:00
Manuel Drehwald 39f269c305 Merge pull request #2497 from rust-lang/tshepang-git-clone
tweak some git clone commands
2025-07-14 15:53:33 -07:00
Manuel Drehwald 3fd66139ef Merge pull request #2488 from rust-lang/autodiff-doc-updates
adjust autodiff docs, after splitting up autodiff into two macros
2025-07-03 15:32:02 -07:00
Manuel Drehwald 90d54a1276 adjust docs, after splitting up autodiff into two forward and reverse macros 2025-07-03 15:30:30 -07:00
Manuel Drehwald f25cfe83f2 Merge pull request #2447 from rust-lang/offload-docs
initial instructions for gpu offload
2025-06-18 17:24:36 -07:00
Manuel Drehwald 0a185e422c initial instructions for gpu offload 2025-06-18 17:22:50 -07:00
Manuel Drehwald f1fea6c950 don't unwrap in enzyme builds in case of missing llvm-config 2025-06-16 20:04:57 -07:00
Manuel Drehwald 6359123d25 add and use generic get_const_int function 2025-06-16 14:23:06 -07:00
Manuel Drehwald 7d3a1d49ab make more CodegenCx function generic 2025-06-16 10:36:15 -07:00
Manuel Drehwald 674a4358e8 update gpu offload build command 2025-06-03 13:10:58 -07:00
Manuel Drehwald deed996704 Merge pull request #2350 from rust-lang/update-autodiff-build-instr
update build and test instructions
2025-04-22 01:17:18 -04:00
Manuel Drehwald e9896ccc1e update build and test instructions 2025-04-22 01:16:04 -04:00
Manuel Drehwald b3739f3c0e Only consider MonoItem::Fn when preventing inlining for autodiff source functions 2025-04-19 03:36:02 -04:00
Manuel Drehwald 136171c8d8 skip llvm-config in autodiff check builds, when its unavailable 2025-04-18 00:58:04 -04:00
Manuel Drehwald 9e2e6d71b3 Merge pull request #2340 from rust-lang/autodiff-build-instr
upstream autodiff build instructions
2025-04-17 20:54:12 -04:00
Manuel Drehwald 834dbf565c upstream autodiff build instructions 2025-04-17 20:52:07 -04:00
Manuel Drehwald 1236dcb9ce add a first version of autodiff docs 2025-04-17 14:01:05 +08:00
Manuel Drehwald d7c0c32827 passing test for dualv 2025-04-16 17:13:50 -04:00
Manuel Drehwald a68ae0cbc1 working dupv and dupvonly for fwd mode 2025-04-16 17:13:31 -04:00
Manuel Drehwald f79a992bff add tests for merge_function handling 2025-04-12 02:33:14 -04:00
Manuel Drehwald 5ea9125f37 update documentation 2025-04-12 01:36:47 -04:00
Manuel Drehwald 31578dc587 fix "could not find source function" error by preventing function merging before AD 2025-04-12 01:36:47 -04:00
Manuel Drehwald 75f86e6e2e fix LooseTypes flag and PrintMod behaviour, add debug helper 2025-04-12 01:36:44 -04:00
Manuel Drehwald f151ceadfe emit a better error message for using the macro incorrectly 2025-04-08 21:54:34 -04:00
Manuel Drehwald ca5bea3ebb move old tests, add sret test 2025-04-07 07:11:52 -04:00
Manuel Drehwald d6467d34ae handle sret for scalar autodiff 2025-04-07 07:07:16 -04:00
Manuel Drehwald 89d8948835 add new flag to print the module post-AD, before opts 2025-04-04 14:25:23 -04:00
Manuel Drehwald 79e17bc71e add new tests for autodiff batching and update old ones 2025-04-04 14:24:46 -04:00
Manuel Drehwald b7c63a973f add autodiff batching backend 2025-04-04 14:24:23 -04:00
Manuel Drehwald e0c8ead880 add autodiff batching middle-end 2025-04-03 17:21:21 -04:00
Manuel Drehwald 087ffd73bf add the autodiff batch mode frontend 2025-04-03 17:19:11 -04:00
Manuel Drehwald a1d34bc33c move autodiff from EnzymeAD/Enzyme to our rust-lang/Enzyme soft-fork 2025-04-01 17:17:39 -04:00
Manuel Drehwald e6a2c29bc4 tracking autodiff files via triagebot.toml 2025-03-28 14:15:08 -04:00
Manuel Drehwald 81b2d5508e addressing feedback, removing unused arg 2025-03-18 02:47:37 -04:00
Manuel Drehwald 47c07ed963 [NFC] simplify matching 2025-03-17 19:13:09 -04:00
Manuel Drehwald f4c297802f [NFC] extract autodiff call lowering in cg_llvm into own function 2025-03-17 18:58:51 -04:00
Manuel Drehwald 5f7ff88853 [NFC] use outer_normal_attr helper 2025-03-17 17:23:35 -04:00
Manuel Drehwald f9d0a14639 resolve repeated attribute fixme 2025-03-17 17:06:26 -04:00
Manuel Drehwald f5c37c3732 [NFC] split up gen_body_helper 2025-03-17 16:54:41 -04:00
Manuel Drehwald 03ece26b79 update tests 2025-03-17 16:21:45 -04:00
Manuel Drehwald 90390a1642 update enzyme to handle range metadata 2025-02-28 03:53:22 -05:00