File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -11,32 +11,28 @@ jobs:
1111 runs-on : ubuntu-latest
1212 strategy :
1313 matrix :
14- # Test with and without LibTorch CPU and GPU
14+ # Test with LibTorch CPU and GPU
1515 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"
2119 torch_gpu : " OFF"
2220
2321 steps :
2422 - uses : actions/checkout@v3
25-
23+
2624 - name : Install dependencies
2725 run : |
2826 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
3028
3129 - name : Configure CMake
3230 run : |
3331 cmake -B ${{ github.workspace }}/build \
3432 -DCMAKE_BUILD_TYPE=Release \
35- -DCDDP-CPP_GUROBI=${{ matrix.gurobi }} \
3633 -DCDDP-CPP_BUILD_TESTS=ON \
3734 -DCDDP-CPP_TORCH=${{ matrix.torch }} \
3835 -DCDDP-CPP_TORCH_GPU=${{ matrix.torch_gpu }} \
39- ${{ matrix.gurobi == 'ON' ? '-DGUROBI_ROOT=/opt/gurobi' : '' }} # Adjust GUROBI_ROOT if necessary
4036
4137 - name : Build
4238 run : cmake --build ${{ github.workspace }}/build --config Release
You can’t perform that action at this time.
0 commit comments