File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1010//
1111//===----------------------------------------------------------------------===//
1212
13- import TestsUtils
13+ #if canImport(_Differentiation)
1414
15+ import TestsUtils
1516import _Differentiation
1617
1718public let Differentiation = [
@@ -68,3 +69,5 @@ public func run_DifferentiationArraySum(N: Int) {
6869 blackHole ( valueWithGradient ( at: onesArray, in: sum) )
6970 }
7071}
72+
73+ #endif
Original file line number Diff line number Diff line change @@ -69,7 +69,9 @@ import DictionaryOfAnyHashableStrings
6969import DictionaryRemove
7070import DictionarySubscriptDefault
7171import DictionarySwap
72+ #if canImport(_Differentiation)
7273import Differentiation
74+ #endif
7375import Diffing
7476import DiffingMyers
7577import DropFirst
@@ -259,7 +261,9 @@ registerBenchmark(DictionaryOfAnyHashableStrings)
259261registerBenchmark ( DictionaryRemove)
260262registerBenchmark ( DictionarySubscriptDefault)
261263registerBenchmark ( DictionarySwap)
264+ #if canImport(_Differentiation)
262265registerBenchmark ( Differentiation)
266+ #endif
263267registerBenchmark ( Diffing)
264268registerBenchmark ( DiffingMyers)
265269registerBenchmark ( DropFirst)
You can’t perform that action at this time.
0 commit comments