Skip to content

Commit aea063c

Browse files
authored
Add EnzymeRule for conv!/gather!/scatter!/dropout!/pool! (#536)
* Add EnzymeRule for conv * Fix * Add missing file * Change to enzymecore ext * attempt fix * Finish enzymecore rewrite * Add missing file * Also add gather * Additional functions, tests, and fixes * minor fixup * Add pooling * Add dropout * Fix scatter bug * fix pool * More fixups * fix up pool * split conv/depth * Cleanup rule * Fix minor test bug * Fix depthwise conv * Fix typo * Bound tests * Failing to extension * Add file * Address review * Remove inlining
1 parent d0a03f2 commit aea063c

File tree

8 files changed

+542
-8
lines changed

8 files changed

+542
-8
lines changed

Project.toml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,31 +16,37 @@ Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
1616

1717
[weakdeps]
1818
AMDGPU = "21141c5a-9bdb-4563-92ae-f87d6854732e"
19-
cuDNN = "02a925ec-e4fe-4b08-9a7e-0d78e3d38ccd"
2019
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
20+
EnzymeCore = "f151be2c-9106-41f4-ab19-57ee4f262869"
21+
cuDNN = "02a925ec-e4fe-4b08-9a7e-0d78e3d38ccd"
2122

2223
[extensions]
2324
NNlibAMDGPUExt = "AMDGPU"
24-
NNlibCUDAExt = "CUDA"
2525
NNlibCUDACUDNNExt = ["CUDA", "cuDNN"]
26+
NNlibCUDAExt = "CUDA"
27+
NNlibEnzymeCoreExt = "EnzymeCore"
2628

2729
[compat]
2830
AMDGPU = "0.5, 0.6"
2931
Adapt = "3.2"
3032
Atomix = "0.1"
31-
ChainRulesCore = "1.13"
3233
CUDA = "4, 5"
33-
cuDNN = "1"
34+
ChainRulesCore = "1.13"
35+
EnzymeCore = "0.5, 0.6"
3436
GPUArraysCore = "0.1"
3537
KernelAbstractions = "0.9.2"
3638
Requires = "1.0"
39+
cuDNN = "1"
3740
julia = "1.9"
3841

3942
[extras]
4043
AMDGPU = "21141c5a-9bdb-4563-92ae-f87d6854732e"
4144
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
4245
ChainRulesTestUtils = "cdddcdb0-9152-4a09-a978-84456f9df70a"
4346
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
47+
Enzyme = "7da242da-08ed-463a-9acd-ee780be4f1d9"
48+
EnzymeCore = "f151be2c-9106-41f4-ab19-57ee4f262869"
49+
EnzymeTestUtils = "12d8515a-0907-448a-8884-5fe00fdf1c5a"
4450
FiniteDifferences = "26cc04aa-876d-5657-8c51-4c34ba976000"
4551
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
4652
Logging = "56ddb016-857b-54e1-b83d-db4d58db5568"
@@ -52,6 +58,5 @@ Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
5258
cuDNN = "02a925ec-e4fe-4b08-9a7e-0d78e3d38ccd"
5359

5460
[targets]
55-
test = ["AMDGPU", "CUDA", "ChainRulesTestUtils", "Documenter",
56-
"FiniteDifferences", "ForwardDiff", "Logging", "ReverseDiff",
57-
"StableRNGs", "Test", "UnicodePlots", "Zygote", "cuDNN"]
61+
test = ["AMDGPU", "CUDA", "ChainRulesTestUtils", "Documenter", "FiniteDifferences", "ForwardDiff", "Logging", "ReverseDiff", "StableRNGs", "Test", "UnicodePlots", "Zygote", "cuDNN",
62+
"Enzyme", "EnzymeCore", "EnzymeTestUtils"]

0 commit comments

Comments
 (0)