url = https://github.com/bddppq/onnx-tensorrt
[submodule "third_party/sleef"]
path = third_party/sleef
- url = https://github.com/shibatch/sleef
+ url = https://github.com/zdevito/sleef
[submodule "third_party/ideep"]
path = third_party/ideep
url = https://github.com/intel/ideep
# Set standard properties on the target
torch_set_target_props(caffe2)
-if (NOT MSVC)
- target_compile_options(caffe2 INTERFACE "$<$<COMPILE_LANGUAGE:CXX>:-std=c++11>")
+if (NOT MSVC)
+ target_compile_options(caffe2 INTERFACE "$<$<COMPILE_LANGUAGE:CXX>:-std=c++11>")
endif()
target_compile_options(caffe2 PRIVATE "-DCAFFE2_BUILD_MAIN_LIB")
endif()
endif()
-if (BUILD_PYTHON)
+# Note: we only install the caffe2 python files if BUILD_CAFFE2_OPS is ON
+# This is because the build rules here written in such a way that they always
+# appear to need to be re-run generating >600 pieces of work during the pytorch
+# rebuild step. The long-term fix should be to clean up these rules so they
+# only rerun when needed.
+
+if (BUILD_PYTHON AND BUILD_CAFFE2_OPS)
# Python site-packages
# Get canonical directory for python site packages (relative to install
# location). It varies from system to system.