Re-download all Clad patches from GitHub
This guarantees valid patch files.
This commit is contained in:
parent
9735886a70
commit
f23f0ed9ca
@ -1,4 +1,4 @@
|
||||
From 6b2a0b2f168f6615e46b6480df1cc4e961f855f6 Mon Sep 17 00:00:00 2001
|
||||
From 262025e0dc6485700ea938dd3ee873e34a9ebe62 Mon Sep 17 00:00:00 2001
|
||||
From: Garima Singh <garimasingh0028@gmail.com>
|
||||
Date: Tue, 25 Apr 2023 09:25:18 +0200
|
||||
Subject: [PATCH] Fix failure on 32-bit machines due to ambigious cast.
|
||||
@ -14,10 +14,10 @@ this issue.
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/include/clad/Differentiator/Array.h b/include/clad/Differentiator/Array.h
|
||||
index c5f7b46..59c5178 100644
|
||||
index c5f7b464..59c5178f 100644
|
||||
--- a/include/clad/Differentiator/Array.h
|
||||
+++ b/include/clad/Differentiator/Array.h
|
||||
@@ -54,7 +54,7 @@ public:
|
||||
@@ -54,7 +54,7 @@ template <typename T> class array {
|
||||
CUDA_HOST_DEVICE T* ptr() { return m_arr; }
|
||||
/// Returns the reference to the location at the index of the underlying
|
||||
/// array
|
||||
@ -26,5 +26,3 @@ index c5f7b46..59c5178 100644
|
||||
/// Returns the reference to the underlying array
|
||||
CUDA_HOST_DEVICE T& operator*() { return *m_arr; }
|
||||
|
||||
--
|
||||
2.17.1
|
||||
|
@ -10,7 +10,7 @@ Subject: [PATCH] Add std::fma to custom derivatives.
|
||||
3 files changed, 64 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/include/clad/Differentiator/BuiltinDerivatives.h b/include/clad/Differentiator/BuiltinDerivatives.h
|
||||
index 3c41d89..7e7b04f 100644
|
||||
index 3c41d892e..7e7b04f59 100644
|
||||
--- a/include/clad/Differentiator/BuiltinDerivatives.h
|
||||
+++ b/include/clad/Differentiator/BuiltinDerivatives.h
|
||||
@@ -110,6 +110,25 @@ CUDA_HOST_DEVICE void pow_pullback(T1 x, T2 exponent, T3 d_y,
|
||||
@ -48,9 +48,9 @@ index 3c41d89..7e7b04f 100644
|
||||
+using std::fma_pullback;
|
||||
} // namespace custom_derivatives
|
||||
} // namespace clad
|
||||
|
||||
|
||||
diff --git a/test/FirstDerivative/BuiltinDerivatives.C b/test/FirstDerivative/BuiltinDerivatives.C
|
||||
index bd9eed2..cbf2d28 100644
|
||||
index bd9eed2e1..cbf2d2854 100644
|
||||
--- a/test/FirstDerivative/BuiltinDerivatives.C
|
||||
+++ b/test/FirstDerivative/BuiltinDerivatives.C
|
||||
@@ -247,6 +247,15 @@ double f11(double x, double y) {
|
||||
@ -79,7 +79,7 @@ index bd9eed2..cbf2d28 100644
|
||||
return 0;
|
||||
}
|
||||
diff --git a/test/Gradient/Assignments.C b/test/Gradient/Assignments.C
|
||||
index c19cf3c..d62505a 100644
|
||||
index c19cf3cb4..d62505aff 100644
|
||||
--- a/test/Gradient/Assignments.C
|
||||
+++ b/test/Gradient/Assignments.C
|
||||
@@ -1,4 +1,4 @@
|
||||
@ -130,5 +130,3 @@ index c19cf3c..d62505a 100644
|
||||
VAR_TEST(f18, "i, j", 3, 4, 5, &result[0], &result[1]); // CHECK-EXEC: {3.00, 2.00}
|
||||
+ TEST(f19, 1, 2); // CHECK-EXEC: {2.00, 2.00}
|
||||
}
|
||||
--
|
||||
2.17.1
|
||||
|
@ -10,10 +10,10 @@ Subject: [PATCH] Fill clad::array with 0s when assigned an empty brace-init
|
||||
2 files changed, 60 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/include/clad/Differentiator/Array.h b/include/clad/Differentiator/Array.h
|
||||
index 3844502..c5f7b46 100644
|
||||
index 38445024..c5f7b464 100644
|
||||
--- a/include/clad/Differentiator/Array.h
|
||||
+++ b/include/clad/Differentiator/Array.h
|
||||
@@ -86,7 +86,7 @@ public:
|
||||
@@ -86,7 +86,7 @@ template <typename T> class array {
|
||||
/// Initializes the clad::array to the given array
|
||||
CUDA_HOST_DEVICE array<T>& operator=(T* arr) {
|
||||
for (std::size_t i = 0; i < m_size; i++)
|
||||
@ -23,7 +23,7 @@ index 3844502..c5f7b46 100644
|
||||
}
|
||||
/// Performs element wise addition
|
||||
diff --git a/test/Arrays/ArrayInputsReverseMode.C b/test/Arrays/ArrayInputsReverseMode.C
|
||||
index 0c38c68..381c3f4 100644
|
||||
index 0c38c680..381c3f4f 100644
|
||||
--- a/test/Arrays/ArrayInputsReverseMode.C
|
||||
+++ b/test/Arrays/ArrayInputsReverseMode.C
|
||||
@@ -322,6 +322,59 @@ double func5(int k) {
|
||||
@ -98,5 +98,3 @@ index 0c38c68..381c3f4 100644
|
||||
+ localArray.execute(1, &dseed);
|
||||
+ printf("Result = {%.2f}", dseed); // CHECK-EXEC: Result = {9.00}
|
||||
}
|
||||
--
|
||||
2.17.1
|
||||
|
Loading…
x
Reference in New Issue
Block a user