Skip to content

Commit

Permalink
Move cxx_abi config down (#5014)
Browse files Browse the repository at this point in the history
```
Step #2 - "build-wheels": -- Detecting C compile features - done
Step #2 - "build-wheels": -- _GLIBCXX_USE_CXX11_ABI= is already defined as a cmake variable
Step #2 - "build-wheels": �[91mCMake Error at CMakeLists.txt:49 (if):
Step #2 - "build-wheels":   if given arguments:
Step #2 - "build-wheels": 
Step #2 - "build-wheels":     "EQUAL" "1"
Step #2 - "build-wheels": 
Step #2 - "build-wheels":   Unknown arguments specified
```
  • Loading branch information
JackCaoG authored May 16, 2023
1 parent fa13962 commit 7c97401
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/experimental/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ ARG cudnn_version=8.1.1.33
# Debian repo doesn't have libcudnn
ARG cuda_repo=ubuntu1804
ARG tf_cuda_compute_capabilities="7.0,7.5,8.0"
ARG cxx_abi="0"

ARG tpuvm=1
ARG build_cpp_tests=0
Expand Down Expand Up @@ -55,6 +54,8 @@ RUN find torch_patches -name '*.diff' | xargs -t -r -n 1 patch -N -p1 -l -i
# Disable CUDA for PyTorch
ENV USE_CUDA "0"

ARG cxx_abi="0"

# Whether to build torch and torch_xla libraries with CXX ABI
ENV _GLIBCXX_USE_CXX11_ABI "${cxx_abi}"
ENV CFLAGS "${CFLAGS} -D_GLIBCXX_USE_CXX11_ABI=${cxx_abi}"
Expand Down

0 comments on commit 7c97401

Please sign in to comment.