|
51 | 51 | echo "$env:CUDA_PATH/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append |
52 | 52 | shell: powershell |
53 | 53 | if: matrix.gpu == true |
54 | | - # Cache boost install |
| 54 | + # Cache boost install |
55 | 55 | - name: Cache Boost |
56 | 56 | id: cache-boost |
57 | 57 | uses: actions/cache@v3 |
@@ -109,6 +109,39 @@ jobs: |
109 | 109 | working-directory: ${{ github.workspace }}/build/Debug |
110 | 110 | run: cmake --build . --target clean |
111 | 111 |
|
| 112 | + - name: Build Debug (oneDNN) |
| 113 | + id: build-debug-onednn |
| 114 | + uses: lukka/run-cmake@v3 |
| 115 | + with: |
| 116 | + buildDirectory: ${{ github.workspace }}/build/Debug-oneDNN |
| 117 | + cmakeAppendedArgs: '-G Ninja |
| 118 | + -DCMAKE_BUILD_TYPE="Debug" |
| 119 | + -DOPENSSL_USE_STATIC_LIBS="TRUE" |
| 120 | + -DOPENSSL_MSVC_STATIC_RT="TRUE" |
| 121 | + -DCOMPILE_CPU="TRUE" |
| 122 | + -DCOMPILE_CUDA="${{ matrix.gpu }}" |
| 123 | + -DCOMPILE_SERVER="FALSE" |
| 124 | + -DCOMPILE_TESTS="TRUE" |
| 125 | + -DDETERMINISTIC="TRUE" |
| 126 | + -DUSE_FBGEMM="TRUE" |
| 127 | + -DUSE_DNNL="TRUE" -DUSE_MKL="FALSE" |
| 128 | + -DUSE_MPI="FALSE" |
| 129 | + -DUSE_NCCL="FALSE" |
| 130 | + -DUSE_SENTENCEPIECE="TRUE" |
| 131 | + -DUSE_STATIC_LIBS="TRUE"' |
| 132 | + cmakeListsOrSettingsJson: CMakeListsTxtAdvanced |
| 133 | + cmakeListsTxtPath: ${{ github.workspace }}/CMakeLists.txt |
| 134 | + useVcpkgToolchainFile: true |
| 135 | + # Building in Debug is sufficient for the all-in CPU+GPU compilation; |
| 136 | + # its main purpose is to detect warnings that the Release build is not |
| 137 | + # able to find sometimes. |
| 138 | + if: matrix.gpu == false |
| 139 | + |
| 140 | + - name: Cleanup Debug |
| 141 | + if: steps.build-debug-onednn.conclusion == 'success' |
| 142 | + working-directory: ${{ github.workspace }}/build/Debug-oneDNN |
| 143 | + run: cmake --build . --target clean |
| 144 | + |
112 | 145 | # Windows CUDA builds use USE_NCCL=off due to compilation errors |
113 | 146 | - name: Build Release |
114 | 147 | uses: lukka/run-cmake@v3 |
|
0 commit comments