Skip to content

Commit

Permalink
Fix Misc/RunDemos test
Browse files Browse the repository at this point in the history
  • Loading branch information
MihailMihov committed Mar 19, 2024
1 parent e19da9c commit 1fa223a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions test/Misc/RunDemos.C
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
// RUN: %cladclang %S/../../demos/ComputerGraphics/smallpt/SmallPT.cpp -I%S/../../include 2>&1

// XFAIL: asserts
// XFAIL: target={{i586.*}}

//-----------------------------------------------------------------------------/
// Demo: Gradient.cpp
Expand Down Expand Up @@ -109,7 +108,7 @@

//CHECK_FLOAT_SUM: void vanillaSum_grad(float x, unsigned int n, clad::array_ref<float> _d_x, clad::array_ref<unsigned int> _d_n, double &_final_error) {
//CHECK_FLOAT_SUM: float _d_sum = 0;
//CHECK_FLOAT_SUM: unsigned long _t0;
//CHECK_FLOAT_SUM: unsigned {{int|long}} _t0;
//CHECK_FLOAT_SUM: unsigned int _d_i = 0;
//CHECK_FLOAT_SUM: unsigned int i = 0;
//CHECK_FLOAT_SUM: clad::tape<float> _t1 = {};
Expand Down Expand Up @@ -285,8 +284,8 @@
//-----------------------------------------------------------------------------/
// RUN: %cladclang %S/../../demos/VectorForwardMode.cpp -I%S/../../include -oVectorForwardMode.out 2>&1 | FileCheck -check-prefix CHECK_VECTOR_FORWARD_MODE %s
// CHECK_VECTOR_FORWARD_MODE: void weighted_sum_dvec_0_1(double *arr, double *weights, int n, clad::array_ref<double> _d_arr, clad::array_ref<double> _d_weights) {
// CHECK_VECTOR_FORWARD_MODE-NEXT unsigned long indepVarCount = _d_arr.size() + _d_weights.size();
// CHECK_VECTOR_FORWARD_MODE-NEXT clad::matrix<double> _d_vector_arr = clad::identity_matrix(_d_arr.size(), indepVarCount, 0UL);
// CHECK_VECTOR_FORWARD_MODE-NEXT unsigned {{int|long}} indepVarCount = _d_arr.size() + _d_weights.size();
// CHECK_VECTOR_FORWARD_MODE-NEXT clad::matrix<double> _d_vector_arr = clad::identity_matrix(_d_arr.size(), indepVarCount, {{0U|0UL}});
// CHECK_VECTOR_FORWARD_MODE-NEXT clad::matrix<double> _d_vector_weights = clad::identity_matrix(_d_weights.size(), indepVarCount, _d_arr.size());
// CHECK_VECTOR_FORWARD_MODE-NEXT clad::array<int> _d_vector_n = clad::zero_vector(indepVarCount);
// CHECK_VECTOR_FORWARD_MODE-NEXT clad::array<double> _d_vector_res(clad::array<double>(indepVarCount, 0));
Expand All @@ -300,7 +299,7 @@
// CHECK_VECTOR_FORWARD_MODE-NEXT }
// CHECK_VECTOR_FORWARD_MODE-NEXT {
// CHECK_VECTOR_FORWARD_MODE-NEXT clad::array<double> _d_vector_return(clad::array<double>(indepVarCount, _d_vector_res));
// CHECK_VECTOR_FORWARD_MODE-NEXT _d_arr = _d_vector_return.slice(0UL, _d_arr.size());
// CHECK_VECTOR_FORWARD_MODE-NEXT _d_arr = _d_vector_return.slice({{0U|0UL}}, _d_arr.size());
// CHECK_VECTOR_FORWARD_MODE-NEXT _d_weights = _d_vector_return.slice(_d_arr.size(), _d_weights.size());
// CHECK_VECTOR_FORWARD_MODE-NEXT return;
// CHECK_VECTOR_FORWARD_MODE-NEXT }
Expand Down

0 comments on commit 1fa223a

Please sign in to comment.