You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/build_windows.yml
+22-7Lines changed: 22 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -288,6 +288,15 @@ jobs:
288
288
BUILD_PARAMS: ${{ inputs.wheel-build-params }}
289
289
run: |
290
290
source "${BUILD_ENV_FILE}"
291
+
# commented out due to still failed with the following error:
292
+
# C:\actions-runner\_work\_temp\conda_environment_18042354682\lib\site-packages\torch\include\torch/csrc/utils/python_arg_parser.h(42): fatal error C1083: Cannot open include file: 'fmt/format.h': No such file or directory
293
+
# workaround: download fmt and copy to torch include path in pre_build_script_windows.sh
294
+
# conda update -n base -c defaults conda
295
+
# conda install -c conda-forge fmt -y
296
+
# conda list fmt
297
+
# echo "path: $PATH"
298
+
299
+
${CONDA_RUN} python -m pip install fmt
291
300
if [[ ${{ inputs.is-release-wheel }} == true || ${{ inputs.is-release-tarball }} == true ]]; then
292
301
# release version for upload to pypi
293
302
# BUILD_VERSION example: 2.4.0+cu121, we don't want the +cu121 part, so remove +cu121
export CUDA_HOME="$(echo ${CUDA_PATH}| sed -e 's#\\#\/#g')"
28
28
export TORCH_INSTALL_PATH="$(python -c "import torch, os; print(os.path.dirname(torch.__file__))"| sed -e 's#\\#\/#g')"
29
29
30
+
# tried with conda install -c conda-forge fmt -y, but build still failed in windows with the following error:
31
+
# C:\actions-runner\_work\_temp\conda_environment_18042354682\lib\site-packages\torch\include\torch/csrc/utils/python_arg_parser.h(42): fatal error C1083: Cannot open include file: 'fmt/format.h': No such file or directory
32
+
# workaround: download fmt from github and copy to torch include path
0 commit comments