File tree 1 file changed +6
-10
lines changed
1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -11,32 +11,28 @@ jobs:
11
11
runs-on : ubuntu-latest
12
12
strategy :
13
13
matrix :
14
- # Test with and without LibTorch CPU and GPU
14
+ # Test with LibTorch CPU and GPU
15
15
include :
16
- - gurobi : " OFF"
17
- torch : " ON"
18
- torch_gpu : " ON"
19
- - gurobi : " OFF"
20
- torch : " ON"
16
+ - torch : " ON"
17
+ torch_gpu : " ON"
18
+ - torch : " ON"
21
19
torch_gpu : " OFF"
22
20
23
21
steps :
24
22
- uses : actions/checkout@v3
25
-
23
+
26
24
- name : Install dependencies
27
25
run : |
28
26
sudo apt-get update
29
- sudo apt-get install -y --no-install-recommends ${{ matrix.torch == 'ON' && matrix.torch_gpu == 'ON' ? ' cuda-toolkit-12-4' : '' }} # Install CUDA Toolkit if needed
27
+ sudo apt-get install -y --no-install-recommends cuda-toolkit-12-4 # Install CUDA Toolkit
30
28
31
29
- name : Configure CMake
32
30
run : |
33
31
cmake -B ${{ github.workspace }}/build \
34
32
-DCMAKE_BUILD_TYPE=Release \
35
- -DCDDP-CPP_GUROBI=${{ matrix.gurobi }} \
36
33
-DCDDP-CPP_BUILD_TESTS=ON \
37
34
-DCDDP-CPP_TORCH=${{ matrix.torch }} \
38
35
-DCDDP-CPP_TORCH_GPU=${{ matrix.torch_gpu }} \
39
- ${{ matrix.gurobi == 'ON' ? '-DGUROBI_ROOT=/opt/gurobi' : '' }} # Adjust GUROBI_ROOT if necessary
40
36
41
37
- name : Build
42
38
run : cmake --build ${{ github.workspace }}/build --config Release
You can’t perform that action at this time.
0 commit comments