File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -284,7 +284,7 @@ build_and_run_example_cpp () {
284
284
GLIBCXX_USE_CXX11_ABI=0
285
285
fi
286
286
setup_link_flags
287
- g++ ${TEST_CODE_DIR} /$1 .cpp -I${install_root} /include -I${install_root} /include/torch/csrc/api/include -D_GLIBCXX_USE_CXX11_ABI=$GLIBCXX_USE_CXX11_ABI -std=gnu++14 -L${install_root} /lib ${REF_LIB} ${ADDITIONAL_LINKER_FLAGS} -ltorch $TORCH_CPU_LINK_FLAGS $TORCH_CUDA_LINK_FLAGS $C10_LINK_FLAGS -o $1
287
+ g++ ${TEST_CODE_DIR} /$1 .cpp -I${install_root} /include -I${install_root} /include/torch/csrc/api/include -D_GLIBCXX_USE_CXX11_ABI=$GLIBCXX_USE_CXX11_ABI -std=gnu++17 -L${install_root} /lib ${REF_LIB} ${ADDITIONAL_LINKER_FLAGS} -ltorch $TORCH_CPU_LINK_FLAGS $TORCH_CUDA_LINK_FLAGS $C10_LINK_FLAGS -o $1
288
288
./$1
289
289
}
290
290
@@ -296,7 +296,7 @@ build_example_cpp_with_incorrect_abi () {
296
296
fi
297
297
set +e
298
298
setup_link_flags
299
- g++ ${TEST_CODE_DIR} /$1 .cpp -I${install_root} /include -I${install_root} /include/torch/csrc/api/include -D_GLIBCXX_USE_CXX11_ABI=$GLIBCXX_USE_CXX11_ABI -std=gnu++14 -L${install_root} /lib ${REF_LIB} ${ADDITIONAL_LINKER_FLAGS} -ltorch $TORCH_CPU_LINK_FLAGS $TORCH_CUDA_LINK_FLAGS $C10_LINK_FLAGS -o $1
299
+ g++ ${TEST_CODE_DIR} /$1 .cpp -I${install_root} /include -I${install_root} /include/torch/csrc/api/include -D_GLIBCXX_USE_CXX11_ABI=$GLIBCXX_USE_CXX11_ABI -std=gnu++17 -L${install_root} /lib ${REF_LIB} ${ADDITIONAL_LINKER_FLAGS} -ltorch $TORCH_CPU_LINK_FLAGS $TORCH_CUDA_LINK_FLAGS $C10_LINK_FLAGS -o $1
300
300
ERRCODE=$?
301
301
set -e
302
302
if [ " $ERRCODE " -eq " 0" ]; then
You can’t perform that action at this time.
0 commit comments