Skip to content

Commit

Permalink
Add support for 32bit CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
Krishna-13-cyber committed Feb 28, 2024
1 parent 8d52a36 commit 52040e8
Show file tree
Hide file tree
Showing 33 changed files with 86 additions and 1 deletion.
53 changes: 53 additions & 0 deletions .github/workflows/arch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
name: 'Arch'
on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
architecture:
strategy:
matrix:
target: [x86]
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v3
- name: "Setup latest Alpine Linux"
uses: jirutka/setup-alpine@v1
with:
arch: ${{ matrix.target }}
branch: edge
packages: >
llvm-dev
clang-dev
clang-static
llvm17-static
llvm17-gtest
cmake
llvm
clang
make
git
- name: "Setup"
run: |
clang --version
make --version
shell: alpine.sh {0}

- name: "Compile library"
run: |
mkdir build && cd build
cmake -DLLVM_EXTERNAL_LIT="$(which lit)" ../../clad
make -j 8 check-clad
shell: alpine.sh {0}

- name: Setup tmate session
if: ${{ failure() && runner.debug }}
uses: mxschmitt/action-tmate@v3
# When debugging increase to a suitable value!
timeout-minutes: 30
1 change: 1 addition & 0 deletions test/Arrays/ArrayInputsReverseMode.C
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// RUN: ./ArrayInputsReverseMode.out | FileCheck -check-prefix=CHECK-EXEC %s

//CHECK-NOT: {{.*error|warning|note:.*}}
// XFAIL: target={{i586.*}}

#include "clad/Differentiator/Differentiator.h"

Expand Down
1 change: 1 addition & 0 deletions test/Arrays/Arrays.C
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// RUN: ./Arrays.out | FileCheck -check-prefix=CHECK-EXEC %s

//CHECK-NOT: {{.*error|warning|note:.*}}
// XFAIL: target={{i586.*}}

#include "clad/Differentiator/Differentiator.h"
#include <cmath>
Expand Down
1 change: 1 addition & 0 deletions test/ErrorEstimation/LoopsAndArrays.C
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// RUN: %cladclang -I%S/../../include -oLoopsAndArrays.out %s 2>&1 | FileCheck %s
// CHECK-NOT: {{.*error|warning|note:.*}}
// XFAIL: target={{i586.*}}

#include "clad/Differentiator/Differentiator.h"

Expand Down
1 change: 1 addition & 0 deletions test/ErrorEstimation/LoopsAndArraysExec.C
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// RUN: ./LoopsAndArraysExec.out | FileCheck -check-prefix=CHECK-EXEC %s

// CHECK-NOT: {{.*error|warning|note:.*}}
// XFAIL: target={{i586.*}}

#include "clad/Differentiator/Differentiator.h"

Expand Down
1 change: 1 addition & 0 deletions test/FirstDerivative/BasicArithmeticMulDiv.C
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// RUN: ./BasicArithmeticMulDiv.out | FileCheck -check-prefix=CHECK-EXEC %s

//CHECK-NOT: {{.*error|warning|note:.*}}
// XFAIL: target={{i586.*}}

#include "clad/Differentiator/Differentiator.h"

Expand Down
1 change: 1 addition & 0 deletions test/FirstDerivative/Overloads.C
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// RUN: ./Overloads.out | FileCheck -check-prefix=CHECK-EXEC %s
// XFAIL: asserts
//CHECK-NOT: {{.*error|warning|note:.*}}
// XFAIL: target={{i586.*}}

#include "clad/Differentiator/Differentiator.h"

Expand Down
1 change: 1 addition & 0 deletions test/Gradient/Assignments.C
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// RUN: %cladclang -Xclang -plugin-arg-clad -Xclang -enable-tbr %s -I%S/../../include -oReverseAssignments.out
// RUN: ./ReverseAssignments.out | FileCheck -check-prefix=CHECK-EXEC %s
//CHECK-NOT: {{.*error|warning|note:.*}}
// XFAIL: target={{i586.*}}

#include "clad/Differentiator/Differentiator.h"
#include <cmath>
Expand Down
1 change: 1 addition & 0 deletions test/Gradient/FunctionCalls.C
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// RUN: ./FunctionCalls.out | FileCheck -check-prefix=CHECK-EXEC %s

// CHECK-NOT: {{.*error|warning|note:.*}}
// XFAIL: target={{i586.*}}

#include "clad/Differentiator/Differentiator.h"

Expand Down
1 change: 1 addition & 0 deletions test/Gradient/Gradients.C
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// RUN: ./Gradients.out | FileCheck -check-prefix=CHECK-EXEC %s

//CHECK-NOT: {{.*error|warning|note:.*}}
// XFAIL: target={{i586.*}}

#include "clad/Differentiator/Differentiator.h"
#include <cmath>
Expand Down
1 change: 1 addition & 0 deletions test/Gradient/Loops.C
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// RUN: %cladclang -Xclang -plugin-arg-clad -Xclang -enable-tbr %s -I%S/../../include -oReverseLoops.out
// RUN: ./ReverseLoops.out | FileCheck -check-prefix=CHECK-EXEC %s
//CHECK-NOT: {{.*error|warning|note:.*}}
// XFAIL: target={{i586.*}}

#include "clad/Differentiator/Differentiator.h"
#include <cmath>
Expand Down
1 change: 1 addition & 0 deletions test/Gradient/Pointers.C
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

// FIXME: This test does not work with enable-tbr flag, because the
// current implementation of TBR analysis doesn't support pointers.
// XFAIL: target={{i586.*}}

#include "clad/Differentiator/Differentiator.h"

Expand Down
1 change: 1 addition & 0 deletions test/Gradient/Switch.C
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// RUN: %cladclang %s -I%S/../../include -oSwitch.out 2>&1 -lstdc++ -lm | FileCheck %s
// RUN: ./Switch.out | FileCheck -check-prefix=CHECK-EXEC %s
//CHECK-NOT: {{.*error|warning|note:.*}}
// XFAIL: target={{i586.*}}

#include "clad/Differentiator/Differentiator.h"
#include "../TestUtils.h"
Expand Down
1 change: 1 addition & 0 deletions test/Gradient/SwitchInit.C
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// RUN: %cladclang %s -I%S/../../include -std=c++17 -oSwitchInit.out 2>&1 -lstdc++ -lm | FileCheck %s
// RUN: ./SwitchInit.out | FileCheck -check-prefix=CHECK-EXEC %s
//CHECK-NOT: {{.*error|warning|note:.*}}
// XFAIL: target={{i586.*}}

#include "clad/Differentiator/Differentiator.h"

Expand Down
1 change: 1 addition & 0 deletions test/Gradient/TestTypeConversion.C
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// RUN: ./TestTypeConversion.out | FileCheck -check-prefix=CHECK-EXEC %s

//CHECK-NOT: {{.*error|warning|note:.*}}
// XFAIL: target={{i586.*}}

#include "clad/Differentiator/Differentiator.h"
#include <cmath>
Expand Down
2 changes: 1 addition & 1 deletion test/Gradient/UserDefinedTypes.C
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// RUN: ./UserDefinedTypes.out | FileCheck -check-prefix=CHECK-EXEC %s
// XFAIL: asserts
// CHECK-NOT: {{.*error|warning|note:.*}}

// XFAIL: target={{i586.*}}
#include "clad/Differentiator/Differentiator.h"

#include <utility>
Expand Down
1 change: 1 addition & 0 deletions test/Hessian/Arrays.C
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// RUN: ./Arrays.out | FileCheck -check-prefix=CHECK-EXEC %s

// CHECK-NOT: {{.*error|warning|note:.*}}
// XFAIL: target={{i586.*}}

#include "clad/Differentiator/Differentiator.h"

Expand Down
1 change: 1 addition & 0 deletions test/Hessian/BuiltinDerivatives.C
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@


//CHECK-NOT: {{.*error|warning|note:.*}}
// XFAIL: target={{i586.*}}

#include "clad/Differentiator/Differentiator.h"
#include <math.h>
Expand Down
1 change: 1 addition & 0 deletions test/Hessian/Functors.C
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// RUN: %cladclang -Xclang -plugin-arg-clad -Xclang -enable-tbr %s -I%S/../../include -oFunctors.out
// RUN: ./Functors.out | FileCheck -check-prefix=CHECK-EXEC %s
// CHECK-NOT: {{.*error|warning|note:.*}}
// XFAIL: target={{i586.*}}

#include "clad/Differentiator/Differentiator.h"

Expand Down
1 change: 1 addition & 0 deletions test/Hessian/Hessians.C
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// RUN: ./Hessians.out | FileCheck -check-prefix=CHECK-EXEC %s

//CHECK-NOT: {{.*error|warning|note:.*}}
// XFAIL: target={{i586.*}}

#include "clad/Differentiator/Differentiator.h"

Expand Down
1 change: 1 addition & 0 deletions test/Hessian/NestedFunctionCalls.C
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// RUN: ./NestedFunctionCalls.out | FileCheck -check-prefix=CHECK-EXEC %s

// CHECK-NOT: {{.*error|warning|note:.*}}
// XFAIL: target={{i586.*}}

#include "clad/Differentiator/Differentiator.h"

Expand Down
1 change: 1 addition & 0 deletions test/Hessian/Pointers.C
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// RUN: %cladclang -Xclang -plugin-arg-clad -Xclang -enable-tbr %s -I%S/../../include -oPointers.out
// RUN: ./Pointers.out | FileCheck -check-prefix=CHECK-EXEC %s
// CHECK-NOT: {{.*error|warning|note:.*}}
// XFAIL: target={{i586.*}}

#include "clad/Differentiator/Differentiator.h"

Expand Down
1 change: 1 addition & 0 deletions test/Hessian/TemplateFunctors.C
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// RUN: %cladclang -Xclang -plugin-arg-clad -Xclang -enable-tbr %s -I%S/../../include -oTemplateFunctors.out
// RUN: ./TemplateFunctors.out | FileCheck -check-prefix=CHECK-EXEC %s
// CHECK-NOT: {{.*error|warning|note:.*}}
// XFAIL: target={{i586.*}}

#include "clad/Differentiator/Differentiator.h"

Expand Down
1 change: 1 addition & 0 deletions test/Hessian/constexprTest.C
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// RUN: %cladclang -Xclang -plugin-arg-clad -Xclang -enable-tbr %s -I%S/../../include -std=c++14 -oconstexprTest.out
// RUN: ./constexprTest.out | FileCheck -check-prefix=CHECK-EXEC %s
// CHECK-NOT: {{.*error|warning|note:.*}}
// XFAIL: target={{i586.*}}

#include "clad/Differentiator/Differentiator.h"

Expand Down
1 change: 1 addition & 0 deletions test/Hessian/testhessUtility.C
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// RUN: %cladclang -Xclang -plugin-arg-clad -Xclang -enable-tbr %s -I%S/../../include -otesthessUtility.out
// RUN: ./testhessUtility.out | FileCheck -check-prefix=CHECK-EXEC %s
// CHECK-NOT: {{.*error|warning|note:.*}}
// XFAIL: target={{i586.*}}

#include "clad/Differentiator/Differentiator.h"

Expand Down
1 change: 1 addition & 0 deletions test/Jacobian/FunctionCalls.C
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// RUN: ./FunctionCalls.out | FileCheck -check-prefix=CHECK-EXEC %s

//CHECK-NOT: {{.*error|warning|note:.*}}
// XFAIL: target={{i586.*}}

#include <cmath>
#include "clad/Differentiator/Differentiator.h"
Expand Down
1 change: 1 addition & 0 deletions test/Jacobian/Functors.C
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// RUN: %cladclang -Xclang -plugin-arg-clad -Xclang -enable-tbr %s -I%S/../../include -oFunctors.out
// RUN: ./Functors.out | FileCheck -check-prefix=CHECK-EXEC %s
// CHECK-NOT: {{.*error|warning|note:.*}}
// XFAIL: target={{i586.*}}

#include "clad/Differentiator/Differentiator.h"

Expand Down
1 change: 1 addition & 0 deletions test/Jacobian/Jacobian.C
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// RUN: ./Jacobian.out | FileCheck -check-prefix=CHECK-EXEC %s

//CHECK-NOT: {{.*error|warning|note:.*}}
// XFAIL: target={{i586.*}}

#include "clad/Differentiator/Differentiator.h"
#include <cmath>
Expand Down
2 changes: 2 additions & 0 deletions test/Jacobian/Pointers.C
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ void nonMemFn(double i, double j, double* out) {
// CHECK-NEXT: jacobianMatrix[3UL] += 1;
// CHECK-NEXT: jacobianMatrix[0UL] += 1;
// CHECK-NEXT: }
// XFAIL: target={{i586.*}}


#define NON_MEM_FN_TEST(var)\
res[0]=res[1]=res[2]=res[3]=0;\
Expand Down
1 change: 1 addition & 0 deletions test/Jacobian/TemplateFunctors.C
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// RUN: %cladclang -Xclang -plugin-arg-clad -Xclang -enable-tbr %s -I%S/../../include -oTemplateFunctors.out
// RUN: ./TemplateFunctors.out | FileCheck -check-prefix=CHECK-EXEC %s
// CHECK-NOT: {{.*error|warning|note:.*}}
// XFAIL: target={{i586.*}}

#include "clad/Differentiator/Differentiator.h"

Expand Down
1 change: 1 addition & 0 deletions test/Jacobian/constexprTest.C
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// RUN: %cladclang -Xclang -plugin-arg-clad -Xclang -enable-tbr %s -I%S/../../include -std=c++14 -oconstexprTest.out
// RUN: ./constexprTest.out | FileCheck -check-prefix=CHECK-EXEC %s
// CHECK-NOT: {{.*error|warning|note:.*}}
// XFAIL: target={{i586.*}}

#include "clad/Differentiator/Differentiator.h"

Expand Down
1 change: 1 addition & 0 deletions test/Jacobian/testUtility.C
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// RUN: %cladclang -Xclang -plugin-arg-clad -Xclang -enable-tbr %s -I%S/../../include -otestUtility.out
// RUN: ./testUtility.out | FileCheck -check-prefix=CHECK-EXEC %s
// CHECK-NOT: {{.*error|warning|note:.*}}
// XFAIL: target={{i586.*}}

#include "clad/Differentiator/Differentiator.h"

Expand Down
1 change: 1 addition & 0 deletions test/Misc/RunDemos.C
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// RUN: %cladclang %S/../../demos/ComputerGraphics/smallpt/SmallPT.cpp -I%S/../../include 2>&1

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

//-----------------------------------------------------------------------------/
// Demo: Gradient.cpp
Expand Down

0 comments on commit 52040e8

Please sign in to comment.