Skip to content

Commit 1433bc1

Browse files
cyyeverpytorchmergebot
authored andcommitted
Remove CAFFE2_USE_EXCEPTION_PTR (pytorch#147247)
The check is for older compilers and is now aways true. Pull Request resolved: pytorch#147247 Approved by: https://github.com/janeyx99
1 parent 43e1284 commit 1433bc1

File tree

3 files changed

+0
-5
lines changed

3 files changed

+0
-5
lines changed

build.bzl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ def define_targets(rules):
1919
"CAFFE2_BUILD_SHARED_LIBS",
2020
"CAFFE2_PERF_WITH_AVX",
2121
"CAFFE2_PERF_WITH_AVX2",
22-
"CAFFE2_USE_EXCEPTION_PTR",
2322
"CAFFE2_USE_CUDNN",
2423
"USE_MKLDNN",
2524
"CAFFE2_USE_ITT",

caffe2/core/macros.h.in

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#cmakedefine CAFFE2_PERF_WITH_AVX2
1414
#cmakedefine CAFFE2_THREADPOOL_MAIN_IMBALANCE
1515
#cmakedefine CAFFE2_THREADPOOL_STATS
16-
#cmakedefine CAFFE2_USE_EXCEPTION_PTR
1716
#cmakedefine CAFFE2_USE_ACCELERATE
1817
#cmakedefine CAFFE2_USE_CUDNN
1918
#cmakedefine CAFFE2_USE_EIGEN_FOR_BLAS
@@ -57,7 +56,6 @@
5756
{"HAS_MKL_SGEMM_PACK", "${CAFFE2_HAS_MKL_SGEMM_PACK}"}, \
5857
{"PERF_WITH_AVX", "${CAFFE2_PERF_WITH_AVX}"}, \
5958
{"PERF_WITH_AVX2", "${CAFFE2_PERF_WITH_AVX2}"}, \
60-
{"USE_EXCEPTION_PTR", "${CAFFE2_USE_EXCEPTION_PTR}"}, \
6159
{"USE_ACCELERATE", "${CAFFE2_USE_ACCELERATE}"}, \
6260
{"USE_EIGEN_FOR_BLAS", "${CAFFE2_USE_EIGEN_FOR_BLAS}"}, \
6361
{"USE_LITE_PROTO", "${CAFFE2_USE_LITE_PROTO}"}, \

cmake/MiscCheck.cmake

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ include(CheckCXXSourceCompiles)
22
include(CheckCXXCompilerFlag)
33
include(CMakePushCheckState)
44

5-
set(CAFFE2_USE_EXCEPTION_PTR 1)
6-
75
# ---[ Check if we want to turn off deprecated warning due to glog.
86
if(USE_GLOG)
97
cmake_push_check_state(RESET)

0 commit comments

Comments
 (0)