参考Linux上面进行编译
报错:
1、不识别:-faligned-new
方法:删除pytorch目录CMakeLists.txt里面的
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -faligned-new")
endif()
官网:https://caffe2.ai/docs/getting-started.html?platform=mac&configuration=compile#anaconda-install-path