8000 MSVC WA for ambiguous symbol error · pytorch/pytorch@bc1708e · GitHub
[go: up one dir, main page]

Skip to content

Commit bc1708e

Browse files
ratnampapytorchmergebot
authored andcommitted
MSVC WA for ambiguous symbol error
1 parent 5008d15 commit bc1708e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

caffe2/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,6 +1034,10 @@ if(USE_XPU)
10341034
add_library(torch_xpu ${Caffe2_XPU_SRCS})
10351035
torch_compile_options(torch_xpu) # see cmake/public/utils.cmake
10361036
target_compile_definitions(torch_xpu PRIVATE USE_XPU)
1037+
1038+
if(WIN32)
1039+
target_compile_options(torch_xpu PRIVATE /permissive-)
1040+
endif()
10371041

10381042
# ATen XPU implementation
10391043
set(TORCH_XPU_OPS_DIR ${TORCH_ROOT}/third_party/torch-xpu-ops)

0 commit comments

Comments
 (0)
0