Closed DougStoker closed 2 years ago
Hi @DougStoker Thanks for the detail build log for the issue. I will rise the question to the oneCCL team about the MacOS supporting.
@DougStoker Because of the oneCCL doesn't suppor tthe MacOS now, we cannot build the torch_ccl on MacOS. Looking forward the oneCCL's supporting the MacOS.
Douglass-MacBook-Pro:torch-ccl doug$ python3.6 setup.py install Building torch-ccl-1.2.0+8786e24 running install running bdist_egg running egg_info writing torch_ccl.egg-info/PKG-INFO writing dependency_links to torch_ccl.egg-info/dependency_links.txt writing top-level names to torch_ccl.egg-info/top_level.txt /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/torch/utils/cpp_extension.py:370: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend. warnings.warn(msg.format('we could not find ninja.')) reading manifest file 'torch_ccl.egg-info/SOURCES.txt' writing manifest file 'torch_ccl.egg-info/SOURCES.txt' installing library code to build/bdist.macosx-10.9-x86_64/egg running install_lib running build_py copying torch_ccl/version.py -> build/lib.macosx-10.9-x86_64-3.6/torch_ccl running build_ext error: patch failed: third_party/oneCCL/CMakeLists.txt:239 error: third_party/oneCCL/CMakeLists.txt: patch does not apply error: patch failed: third_party/oneCCL/src/CMakeLists.txt:253 error: third_party/oneCCL/src/CMakeLists.txt: patch does not apply [ 5%] Building CXX object third_party/oneCCL/src/CMakeFiles/ccl-objects.dir/ccl_api_functions.cpp.o [ 5%] Building CXX object third_party/oneCCL/src/CMakeFiles/ccl-objects.dir/ccl_app_api_comm_attr.cpp.o [ 5%] Building CXX object third_party/oneCCL/src/CMakeFiles/ccl-objects.dir/ccl_cpp_environment.cpp.o [ 5%] Building CXX object third_party/oneCCL/src/CMakeFiles/ccl-objects.dir/ccl_app_api_comm_split_attr.cpp.o [ 5%] Building CXX object third_party/oneCCL/src/CMakeFiles/ccl-objects.dir/ccl_app_api_datatype_attr.cpp.o [ 5%] Building CXX object third_party/oneCCL/src/CMakeFiles/ccl-objects.dir/ccl_app_api_kvs_attr.cpp.o [ 5%] Building CXX object third_party/oneCCL/src/CMakeFiles/ccl-objects.dir/ccl_app_api_coll_attr.cpp.o [ 6%] Building CXX object third_party/oneCCL/src/CMakeFiles/ccl-objects.dir/ccl_cpp_communicator.cpp.o In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_cpp_communicator.cpp:16: In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/types.hpp:20: /Users/doug/pytccl/torch-ccl/build/temp.macosx-10.9-x86_64-3.6.libtorch_ccl/third_party/oneCCL/include/oneapi/ccl/config.h:26:2: error: "unexpected OS"
error "unexpected OS"
^ In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_comm_split_attr.cpp:16: In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/types.hpp:20: /Users/doug/pytccl/torch-ccl/build/temp.macosx-10.9-x86_64-3.6.libtorch_ccl/third_party/oneCCL/include/oneapi/ccl/config.h:26:2: error: "unexpected OS"
error "unexpected OS"
^ In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_api_functions.cpp:16: In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/types.hpp:20: /Users/doug/pytccl/torch-ccl/build/temp.macosx-10.9-x86_64-3.6.libtorch_ccl/third_party/oneCCL/include/oneapi/ccl/config.h:26:2: error: "unexpected OS"
error "unexpected OS"
^ In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_cpp_environment.cpp:16: In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/environment_impl.hpp:18: In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/types.hpp:20: /Users/doug/pytccl/torch-ccl/build/temp.macosx-10.9-x86_64-3.6.libtorch_ccl/third_party/oneCCL/include/oneapi/ccl/config.h:26:2: error: "unexpected OS"
error "unexpected OS"
^ In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_kvs_attr.cpp:16: In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/types.hpp:20: /Users/doug/pytccl/torch-ccl/build/temp.macosx-10.9-x86_64-3.6.libtorch_ccl/third_party/oneCCL/include/oneapi/ccl/config.h:26:2: error: "unexpected OS"
error "unexpected OS"
^ In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_datatype_attr.cpp:16: In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/types.hpp:20: /Users/doug/pytccl/torch-ccl/build/temp.macosx-10.9-x86_64-3.6.libtorch_ccl/third_party/oneCCL/include/oneapi/ccl/config.h:26:2: error: "unexpected OS"
error "unexpected OS"
^ In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_coll_attr.cpp:16: In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/types.hpp:20: /Users/doug/pytccl/torch-ccl/build/temp.macosx-10.9-x86_64-3.6.libtorch_ccl/third_party/oneCCL/include/oneapi/ccl/config.h:26:2: error: "unexpected OS"
error "unexpected OS"
^ In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_comm_attr.cpp:16: In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/types.hpp:20: /Users/doug/pytccl/torch-ccl/build/temp.macosx-10.9-x86_64-3.6.libtorch_ccl/third_party/oneCCL/include/oneapi/ccl/config.h:26:2: error: "unexpected OS"
error "unexpected OS"
^ In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_comm_attr.cpp:25: /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/comm_attr_impl.hpp:28:1: error: unknown type name 'CCL_HELPER_DLL_EXPORT' CCL_API Value comm_attr::set(const Value& v) { ^ /Users/doug/pytccl/torch-ccl/build/temp.macosx-10.9-x86_64-3.6.libtorch_ccl/third_party/oneCCL/include/oneapi/ccl/config.h:29:17: note: expanded from macro 'CCL_API'
define CCL_API CCL_HELPER_DLL_EXPORT
In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_comm_attr.cpp:25: /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/comm_attr_impl.hpp:28:9: error: variable templates are a C++14 extension [-Werror,-Wc++14-extensions] CCL_API Value comm_attr::set(const Value& v) { ^ /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/comm_attr_impl.hpp:28:14: error: expected ';' at end of declaration CCL_API Value comm_attr::set(const Value& v) { ^ ; In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_comm_split_attr.cpp:25: /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/comm_split_attr_impl.hpp:28:1: error: unknown type name 'CCL_HELPER_DLL_EXPORT' CCL_API Value comm_split_attr::set(const Value& v) { ^ /Users/doug/pytccl/torch-ccl/build/temp.macosx-10.9-x86_64-3.6.libtorch_ccl/third_party/oneCCL/include/oneapi/ccl/config.h:29:17: note: expanded from macro 'CCL_API' /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/comm_attr_impl.hpp:28:36: error: unknown type name 'Value' CCL_API Value comm_attr::set(const Value& v) { ^ /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/comm_attr_impl.hpp:28:26: error: C++ requires a type specifier for all declarations CCL_API Value comm_attr::set(const Value& v) { ^
define CCL_API CCL_HELPER_DLL_EXPORT
In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_comm_split_attr.cpp:25: /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/comm_split_attr_impl.hpp:28:9: error: variable templates are a C++14 extension [-Werror,-Wc++14-extensions] CCL_API Value comm_split_attr::set(const Value& v) { ^ /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/comm_split_attr_impl.hpp:28:14: error: expected ';' at end of declaration CCL_API Value comm_split_attr::set(const Value& v) { ^ ; /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/comm_split_attr_impl.hpp:28:/Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/comm_attr_impl.hpp42::30 :59:error : errorunknown: type usename of'Value' undeclared identifier 'attrId' CCL_API Value comm_split_attr::set(const Value& v) { ^ v, detail::ccl_api_type_attr_traits<comm_attr_id, attrId>{}); ^ /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/comm_split_attr_impl.hpp:28:32: error: C++ requires a type specifier for all declarations CCL_API Value comm_split_attr::set(const Value& v) { ^ /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/comm_split_attr_impl.hpp:30:65: error: use of undeclared identifier 'attrId' v, detail::ccl_api_type_attr_traits<comm_split_attr_id, attrId>{}); ^ /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/comm_attr_impl.hpp:34:1: error: unknown type name 'CCL_HELPER_DLL_EXPORT' CCL_API const typename detail::ccl_api_type_attr_traits<comm_attr_id, attrId>::type& ^ /Users/doug/pytccl/torch-ccl/build/temp.macosx-10.9-x86_64-3.6.libtorch_ccl/third_party/oneCCL/include/oneapi/ccl/config.h:29:17: note: expanded from macro 'CCL_API'
define CCL_API CCL_HELPER_DLL_EXPORT
In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_comm_attr.cpp:25: /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/comm_attr_impl.hpp:34:9: error: expected unqualified-id CCL_API const typename detail::ccl_api_type_attr_traits<comm_attr_id, attrId>::type& ^ In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_coll_attr.cpp:24: /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/coll_attr_impl.hpp:28:1: error: unknown type name 'CCL_HELPER_DLL_EXPORT' CCL_API typename detail::ccl_api_type_attr_traits<allgatherv_attr_id, attrId>::return_type allgatherv_attr::set(const Value& v) ^ /Users/doug/pytccl/torch-ccl/build/temp.macosx-10.9-x86_64-3.6.libtorch_ccl/third_party/oneCCL/include/oneapi/ccl/config.h:29:17: note: expanded from macro 'CCL_API'
define CCL_API CCL_HELPER_DLL_EXPORT
In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_coll_attr.cpp:24: /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/coll_attr_impl.hpp:28:9: error: expected unqualified-id CCL_API typename detail::ccl_api_type_attr_traits<allgatherv_attr_id, attrId>::return_type allgatherv_attr::set(const Value& v) ^ In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_datatype_attr.cpp:25: /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/datatype_attr_impl.hpp:28:1: error: unknown type name 'CCL_HELPER_DLL_EXPORT' CCL_API Value datatype_attr::set(const Value& v) { ^ /Users/doug/pytccl/torch-ccl/build/temp.macosx-10.9-x86_64-3.6.libtorch_ccl/third_party/oneCCL/include/oneapi/ccl/config.h:29:17: note: expanded from macro 'CCL_API'
define CCL_API CCL_HELPER_DLL_EXPORT
In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_datatype_attr.cpp:25: /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/datatype_attr_impl.hpp:28:9: error: variable templates are a C++14 extension [-Werror,-Wc++14-extensions] /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/comm_split_attr_impl.hpp:34CCL_API Value datatype_attr::set(const Value& v) {: 1: ^ error: unknown type name 'CCL_HELPER_DLL_EXPORT' CCL_API const typename detail::ccl_api_type_attr_traits<comm_split_attr_id, attrId>::type& ^ /Users/doug/pytccl/torch-ccl/build/temp.macosx-10.9-x86_64-3.6.libtorch_ccl/third_party/oneCCL/include/oneapi/ccl/config.h:29:17: note: expanded from macro 'CCL_API' /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/datatype_attr_impl.hpp:28:14: error: #define CCL_API CCL_HELPER_DLL_EXPORT expected ^ ';' at end ofIn file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_comm_split_attr.cppdeclaration:25 : /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/comm_split_attr_impl.hpp:34:9: error: expected unqualified-id CCL_API Value datatype_attr::set(const Value& v) { ^ ; CCL_API const typename detail::ccl_api_type_attr_traits<comm_split_attr_id, attrId>::type& ^ In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_kvs_attr.cpp:25: /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/kvs_attr_impl.hpp:28:1: error: unknown type name 'CCL_HELPER_DLL_EXPORT' CCL_API Value kvs_attr::set(const Value& v) { ^ /Users/doug/pytccl/torch-ccl/build/temp.macosx-10.9-x86_64-3.6.libtorch_ccl/third_party/oneCCL/include/oneapi/ccl/config.h:29:17: note: expanded from macro 'CCL_API'
define CCL_API CCL_HELPER_DLL_EXPORT
In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_kvs_attr.cpp:25: /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/kvs_attr_impl.hpp:28:9: error: variable templates are a C++14 extension [-Werror,-Wc++14-extensions] CCL_API Value kvs_attr::set(const Value& v) { ^ /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/kvs_attr_impl.hpp:28:14: error: expected ';' at end of declaration CCL_API Value kvs_attr::set(const Value& v) { ^ ; /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_comm_attr.cpp:42:1: error: unknown type name 'CCL_HELPER_DLL_EXPORT' CCL_API comm_attr::comm_attr(ccl_empty_attr) ^ /Users/doug/pytccl/torch-ccl/build/temp.macosx-10.9-x86_64-3.6.libtorch_ccl/third_party/oneCCL/include/oneapi/ccl/config.h:29:17: note: expanded from macro 'CCL_API'
define CCL_API CCL_HELPER_DLL_EXPORT
/Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_comm_attr.cpp:42:20: error: constructor cannot have a return type CCL_API comm_attr::comm_attr(ccl_empty_attr) ^
~~~~ /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/datatype_attr_impl.hpp:28:40: error: unknown type name 'Value' CCL_API Value datatype_attr::set(const Value& v) { ^ /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/datatype_attr_impl.hpp:28:30: error: C++ requires a type specifier for all declarations CCL_API Value datatype_attr::set(const Value& v) { ^ /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/kvs_attr_impl.hpp:28:35: error: unknown type name 'Value' CCL_API Value kvs_attr::set(const Value& v) { ^ /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/kvs_attr_impl.hpp:28:25: error: C++ requires a type specifier for all declarations CCL_API Value kvs_attr::set(const Value& v) { ^ In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_cpp_environment.cpp:16: In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/environment_impl.hpp:19: In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/environment.hpp:62: /Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/kvs.hpp:35:1: error: expected expression public: ^ /Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/kvs.hpp:34:15: error: variable has incomplete type 'class CCL_HELPER_DLL_EXPORT' class CCL_API kvs_interface { ^ /Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/kvs.hpp:34:7: note: forward declaration of 'ccl::v1::CCL_HELPER_DLL_EXPORT' class CCL_API kvs_interface { ^ /Users/doug/pytccl/torch-ccl/build/temp.macosx-10.9-x86_64-3.6.libtorch_ccl/third_party/oneCCL/include/oneapi/ccl/config.h:29:17: note: expanded from macro 'CCL_API'define CCL_API CCL_HELPER_DLL_EXPORT
In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_cpp_environment.cpp:16: In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/environment_impl.hpp:19: In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/environment.hpp:62: /Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/kvs.hpp:43:15: error: variable has incomplete type 'class CCL_HELPER_DLL_EXPORT' class CCL_API kvs final : public kvs_interface { ^ /Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/kvs.hpp:34:7: note: forward declaration of 'ccl::v1::CCL_HELPER_DLL_EXPORT' class CCL_API kvs_interface { ^ /Users/doug/pytccl/torch-ccl/build/temp.macosx-10.9-x86_64-3.6.libtorch_ccl/third_party/oneCCL/include/oneapi/ccl/config.h:29:17: note: expanded from macro 'CCL_API'
define CCL_API CCL_HELPER_DLL_EXPORT
In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_cpp_environment.cpp:16: In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/environment_impl.hpp:19: In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/environment.hpp:62: /Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/kvs.hpp:43:18: error: expected ';' after top level declarator class CCL_API kvs final : public kvs_interface { ^ ; /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_comm_attr.cpp:43:35: error: unknown type name 'impl_t'; did you mean 'comm_attr::impl_t'? : base_t(impl_value_t(new impl_t(ccl_empty_attr::version))) {} ^
~comm_attr::impl_t /Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/comm_attr.hpp:50:11: note: 'comm_attr::impl_t' declared here using impl_t = typename impl_value_t::element_type; ^ /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/datatype_attr_impl.hpp:30:63: error: use of undeclared identifier 'attrId' v, detail::ccl_api_type_attr_traits<datatype_attr_id, attrId>{}); ^ /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_comm_split_attr.cpp:42:1: error: unknown type name 'CCL_HELPER_DLL_EXPORT' CCL_API comm_split_attr::comm_split_attr(ccl_empty_attr) ^ /Users/doug/pytccl/torch-ccl/build/temp.macosx-10.9-x86_64-3.6.libtorch_ccl/third_party/oneCCL/include/oneapi/ccl/config.h:29:17: note: expanded from macro 'CCL_API'define CCL_API CCL_HELPER_DLL_EXPORT
/Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_comm_split_attr.cpp:42:26: error: constructor cannot have a return type CCL_API comm_split_attr::comm_split_attr(ccl_empty_attr) ^
~~~~~~ /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/kvs_attr_impl.hpp:30:90: error: use of undeclared identifier 'attrId' detail::ccl_api_type_attr_traits<kvs_attr_id, attrId>{}); ^ /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_coll_attr.cpp:70:1: error: unknown type name 'CCL_HELPER_DLL_EXPORT' CCL_API allgatherv_attr::allgatherv_attr(allgatherv_attr&& src) : base_t(std::move(src)) {} ^ /Users/doug/pytccl/torch-ccl/build/temp.macosx-10.9-x86_64-3.6.libtorch_ccl/third_party/oneCCL/include/oneapi/ccl/config.h:29:17: note: expanded from macro 'CCL_API'define CCL_API CCL_HELPER_DLL_EXPORT
/Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_coll_attr.cpp:70:26: error: constructor cannot have a return type CCL_API allgatherv_attr::allgatherv_attr(allgatherv_attr&& src) : base_t(std::move(src)) {} ^
~~~~~~ /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_comm_split_attr.cpp:43:35: error: unknown type name 'impl_t'; did you mean 'comm_split_attr::impl_t'? : base_t(impl_value_t(new impl_t(ccl_empty_attr::version))) {} ^~comm_split_attr::impl_t /Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/comm_split_attr.hpp:52:11: note: 'comm_split_attr::impl_t' declared here /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_comm_attr.cpp:43:18: error: use of using impl_t = typename impl_value_t::element_type;undeclared identifier ^ 'impl_value_t' : base_t(impl_value_t(new impl_t(ccl_empty_attr::version))) {} ^ /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_coll_attr.cpp:70:84: error: use of undeclared identifier 'src' CCL_API allgatherv_attr::allgatherv_attr(allgatherv_attr&& src) : base_t(std::move(src)) {} ^ /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/datatype_attr_impl.hpp:34:1: error: unknown type name 'CCL_HELPER_DLL_EXPORT' CCL_API const typename detail::ccl_api_type_attr_traits<datatype_attr_id, attrId>::return_type& ^ /Users/doug/pytccl/torch-ccl/build/temp.macosx-10.9-x86_64-3.6.libtorch_ccl/third_party/oneCCL/include/oneapi/ccl/config.h:29:17: note: expanded from macro 'CCL_API'define CCL_API CCL_HELPER_DLL_EXPORT
In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_datatype_attr.cpp:25: /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/datatype_attr_impl.hpp:34:9: error: expected unqualified-id CCL_API const typename detail::ccl_api_type_attr_traits<datatype_attr_id, attrId>::return_type& ^ /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/kvs_attr_impl.hpp:34:1: error: unknown type name 'CCL_HELPER_DLL_EXPORT' CCL_API const typename detail::ccl_api_type_attr_traits<kvs_attr_id, attrId>::type& kvs_attr::get() ^ /Users/doug/pytccl/torch-ccl/build/temp.macosx-10.9-x86_64-3.6.libtorch_ccl/third_party/oneCCL/include/oneapi/ccl/config.h:29:17: note: expanded from macro 'CCL_API'
define CCL_API CCL_HELPER_DLL_EXPORT
In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_kvs_attr.cpp:25: /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/kvs_attr_impl.hpp:34:9: error: expected unqualified-id CCL_API const typename detail::ccl_api_type_attr_traits<kvs_attr_id, attrId>::type& kvs_attr::get() ^ /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_comm_split_attr.cpp:43:18: error: use of undeclared identifier 'impl_value_t' : base_t(impl_value_t(new impl_t(ccl_empty_attr::version))) {} ^ In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_api_functions.cpp:17: In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/environment.hpp:62: /Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/kvs.hpp:35:1: error: expected expression public: ^ /Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/kvs.hpp:34:15: error: variable has incomplete type 'class CCL_HELPER_DLL_EXPORT' class CCL_API kvs_interface { ^ /Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/kvs.hpp:34:7: note: forward declaration of 'ccl::v1::CCL_HELPER_DLL_EXPORT' class CCL_API kvs_interface { ^ /Users/doug/pytccl/torch-ccl/build/temp.macosx-10.9-x86_64-3.6.libtorch_ccl/third_party/oneCCL/include/oneapi/ccl/config.h:29:17: note: expanded from macro 'CCL_API'
define CCL_API CCL_HELPER_DLL_EXPORT
In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_api_functions.cpp:17: In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/environment.hpp:62: /Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/kvs.hpp:43:15: error: variable has incomplete type 'class CCL_HELPER_DLL_EXPORT' class CCL_API kvs final : public kvs_interface { ^ /Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/kvs.hpp:34:7: note: forward declaration of 'ccl::v1::CCL_HELPER_DLL_EXPORT' class CCL_API kvs_interface { ^ /Users/doug/pytccl/torch-ccl/build/temp.macosx-10.9-x86_64-3.6.libtorch_ccl/third_party/oneCCL/include/oneapi/ccl/config.h:29:17: /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_comm_attr.cpp:44note:: 1:expanded from errormacro: 'CCL_API'
define CCL_API CCL_HELPER_DLL_EXPORT
unknown type name 'CCL_HELPER_DLL_EXPORT' CCL_API comm_attr::comm_attr(comm_attr&& src) : base_t(std::move(src)) {} ^In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_api_functions.cpp:17: In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/environment.hpp:62: /Users/doug/pytccl/torch-ccl/build/temp.macosx-10.9-x86_64-3.6.libtorch_ccl/third_party/oneCCL/include/oneapi/ccl/config.h/Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/kvs.hpp::2943::1718:: noteerror: : expandedexpected from';' macroafter top'CCL_API' level declarator class CCL_API kvs final : public kvs_interface { ^ ;
define CCL_API CCL_HELPER_DLL_EXPORT
/Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_comm_attr.cpp:44:20: error: constructor cannot have a return type CCL_API comm_attr::comm_attr(comm_attr&& src) : base_t(std::move(src)) {} ^
~~~~ /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_coll_attr.cpp:72:1: error: unknown type name 'CCL_HELPER_DLL_EXPORT' CCL_API allgatherv_attr::allgatherv_attr(const allgatherv_attr& src) : base_t(src) {} ^ /Users/doug/pytccl/torch-ccl/build/temp.macosx-10.9-x86_64-3.6.libtorch_ccl/third_party/oneCCL/include/oneapi/ccl/config.h:29:17: note: expanded from macro 'CCL_API'define CCL_API CCL_HELPER_DLL_EXPORT
/Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_coll_attr.cpp:72:26: error: constructor cannot have a return type CCL_API allgatherv_attr::allgatherv_attr(const allgatherv_attr& src) : base_t(src) {} ^
~~~~~~ /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_datatype_attr.cpp:41:1: error: unknown type name 'CCL_HELPER_DLL_EXPORT' CCL_API datatype_attr::datatype_attr(datatype_attr&& src) : base_t(std::move(src)) {} ^ /Users/doug/pytccl/torch-ccl/build/temp.macosx-10.9-x86_64-3.6.libtorch_ccl/third_party/oneCCL/include/oneapi/ccl/config.h:29:17: note: expanded from macro 'CCL_API'define CCL_API CCL_HELPER_DLL_EXPORT
In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_cpp_environment.cpp ^: 16: In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/environment_impl.hpp:19: /Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/environment.hpp:135:44: error: 'kvs' is not a class, namespace, or enumeration/Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_datatype_attr.cpp :41:24: error: constructor cannot have a return type shared_ptr_class create_kvs(const kvs::address_type& addr, const kvs_attr& attr) const;
^
/Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/kvs.hpp:43CCL_API datatype_attr::datatype_attr(datatype_attr&& src) : base_t(std::move(src)) {}:
15: ^
~~~~ note: 'kvs' declared here class CCL_API kvs final : public kvs_interface { ^ /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_comm_attr.cpp:44:66: error: use of undeclared identifier 'src' /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_coll_attr.cpp:72:79: error: use of undeclared identifier 'src' CCL_API comm_attr::comm_attr(comm_attr&& src) : base_t(std::move(src)) {} ^ CCL_API allgatherv_attr::allgatherv_attr(const allgatherv_attr& src) : base_t(src) {} ^ /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_comm_split_attr.cpp:44:1: error: unknown type name 'CCL_HELPER_DLL_EXPORT' CCL_API comm_split_attr::comm_split_attr(comm_split_attr&& src) : base_t(std::move(src)) {} ^ /Users/doug/pytccl/torch-ccl/build/temp.macosx-10.9-x86_64-3.6.libtorch_ccl/third_party/oneCCL/include/oneapi/ccl/config.h:29:17: note: expanded from macro 'CCL_API'define CCL_API CCL_HELPER_DLL_EXPORT
/Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_datatype_attr.cpp: ^41 :78: error: use of undeclared identifier 'src' /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_comm_split_attr.cpp:44:26: error: constructor cannot have a CCL_API datatype_attr::datatype_attr(datatype_attr&& src) : base_t(std::move(src)) {}return type ^
CCL_API comm_split_attr::comm_split_attr(comm_split_attr&& src) : base_t(std::move(src)) {} ^
~~~~~~ /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_kvs_attr.cpp:42:1: error: unknown type name 'CCL_HELPER_DLL_EXPORT' CCL_API kvs_attr::kvs_attr(ccl_empty_attr) ^ /Users/doug/pytccl/torch-ccl/build/temp.macosx-10.9-x86_64-3.6.libtorch_ccl/third_party/oneCCL/include/oneapi/ccl/config.h:29:17: note: expanded from macro 'CCL_API'define CCL_API CCL_HELPER_DLL_EXPORT
/Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_kvs_attr.cpp:42:19: error: constructor cannot have a return type CCL_API kvs_attr::kvs_attr(ccl_empty_attr) ^
~~~ /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_comm_split_attr.cpp:44:84: error: use of undeclared identifier 'src' CCL_API comm_split_attr::comm_split_attr(comm_split_attr&& src) : base_t(std::move(src)) {} ^ /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_kvs_attr.cpp:43:35: error: unknown type name 'impl_t'; did you mean 'kvs_attr::impl_t'? : base_t(impl_value_t(new impl_t(ccl_empty_attr::version))) {} ^~kvs_attr::impl_t /Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/kvs_attr.hpp:49:11: note: 'kvs_attr::impl_t' declared here using impl_t = typename impl_value_t::element_type; ^ /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_comm_attr.cpp:46:1: error: unknown type name 'CCL_HELPER_DLL_EXPORT' /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_coll_attr.cpp:74:1: error: unknown type name 'CCL_HELPER_DLL_EXPORT'CCL_API comm_attr::comm_attr(const comm_attr& src) : base_t(src) {}^ /Users/doug/pytccl/torch-ccl/build/temp.macosx-10.9-x86_64-3.6.libtorch_ccl/third_party/oneCCL/include/oneapi/ccl/config.h:29:17:CCL_API allgatherv_attr::allgatherv_attr( ^ /Users/doug/pytccl/torch-ccl/build/temp.macosx-10.9-x86_64-3.6.libtorch_ccl/third_party/oneCCL/include/oneapi/ccl/config.h:29:17: note: expanded from macro 'CCL_API'
define CCL_API CCL_HELPER_DLL_EXPORT
/Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_coll_attr.cpp:74:26: error: constructor cannot have a return type CCL_API allgatherv_attr::allgatherv_attr( ^
~~~~~~ In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_datatype_attr.cpp:43:1: error: unknown type name 'CCL_HELPER_DLL_EXPORT' CCL_API datatype_attr::datatype_attr(const datatype_attr& src) : base_t(src) {} ^ /Users/doug/pytccl/torch-ccl/build/temp.macosx-10.9-x86_64-3.6.libtorch_ccl/third_party/oneCCL/include/oneapi/ccl/config.h:29:17: note: expanded from macro 'CCL_API'define CCL_API CCL_HELPER_DLL_EXPORT
/Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_datatype_attr.cpp:43:24: error: constructor cannot have a return type CCL_API datatype_attr::datatype_attr(const datatype_attr& src) : base_t(src) {} ^ create_kvs(const kvs::address_type& addr, const kvs_attr& attr) const;
^
/Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/kvs.hpp:43:15: note: 'kvs' declared here
class CCL_API kvs final : public kvs_interface {
^
/Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_cpp_environment.cpp :16:
In file included from note: /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/environment_impl.hpp:expanded24 from:
macro
'CCL_API'/Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/comm_attr_impl.hpp
:28:9: error: variable#define CCL_API CCL_HELPER_DLL_EXPORT
templates ^
are a C++14 extension [-Werror,-Wc++14-extensions]
CCL_API Value comm_attr::set(const Value& v) {/Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_comm_attr.cpp:
46:20: ^
error: constructor cannot have a return type
/Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/comm_attr_impl.hpp:28:9: CCL_API comm_attr::comm_attr(const comm_attr& src) : base_t(src) {}
error: ^
~~~~ In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_api_functions.cpp:17: /Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/environment.hpp:135:44: error: 'kvs' is not a class, namespace, or enumeration shared_ptr_class~~~~ variable has incomplete type 'ccl::v1::CCL_HELPER_DLL_EXPORT' /Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/kvs.hpp:34:7: note: forward declaration of 'ccl::v1::CCL_HELPER_DLL_EXPORT' class CCL_API kvs_interface { ^ /Users/doug/pytccl/torch-ccl/build/temp.macosx-10.9-x86_64-3.6.libtorch_ccl/third_party/oneCCL/include/oneapi/ccl/config.h:29:17: note: expanded from macro 'CCL_API'define CCL_API CCL_HELPER_DLL_EXPORT
In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_cpp_environment.cpp:16: In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/environment_impl.hpp:24: /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/comm_attr_impl.hpp:28:14: error: expected ';' at end of declaration CCL_API Value comm_attr::set(const Value& v) { ^ ; /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_kvs_attr.cpp:43:18: error: use of undeclared identifier 'impl_value_t' : base_t(impl_value_t(new impl_t(ccl_empty_attr::version))) {} ^ /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_datatype_attr.cpp:43:73: error: use of undeclared identifier 'src' /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_comm_split_attr.cpp:46CCL_API datatype_attr::datatype_attr(const datatype_attr& src) : base_t(src) {}: 1: ^ error: unknown type name 'CCL_HELPER_DLL_EXPORT' CCL_API comm_split_attr::comm_split_attr(const comm_split_attr& src) : base_t(src) {} ^ /Users/doug/pytccl/torch-ccl/build/temp.macosx-10.9-x86_64-3.6.libtorch_ccl/third_party/oneCCL/include/oneapi/ccl/config.h:29:17: note: expanded from macro 'CCL_API'
define CCL_API CCL_HELPER_DLL_EXPORT
/Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_comm_split_attr.cpp:46:26: error: constructor cannot have a return type CCL_API comm_split_attr::comm_split_attr(const comm_split_attr& src) : base_t(src) {} ^
~~~~~~ /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_comm_attr.cpp:46:61: error: use of undeclared identifier 'src' CCL_API comm_attr::comm_attr(const comm_attr& src) : base_t(src) {} ^ In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_api_functions.cpp:18: /Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/api_functions.hpp:39:11: error: variable templates are a C++14 extension [-Werror,-Wc++14-extensions] init_attr CCL_API create_init_attr(attr_val_type&&... avs) { ^ /Users/doug/pytccl/torch-ccl/build/temp.macosx-10.9-x86_64-3.6.libtorch_ccl/third_party/oneCCL/include/oneapi/ccl/config.h:29:17: note: expanded from macro 'CCL_API'define CCL_API CCL_HELPER_DLL_EXPORT
In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_api_functions.cpp:18: /Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/api_functions.hpp:39:11: error: redefinition of 'CCL_HELPER_DLL_EXPORT' as different kind of symbol /Users/doug/pytccl/torch-ccl/build/temp.macosx-10.9-x86_64-3.6.libtorch_ccl/third_party/oneCCL/include/oneapi/ccl/config.h:29:17: note: expanded from macro 'CCL_API'
define CCL_API CCL_HELPER_DLL_EXPORT
/Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/kvs.hpp:34:7/Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_comm_split_attr.cpp:: 46:79note:: previous errordefinition: is usehere of undeclared identifier 'src' class CCL_API kvs_interface { ^ /Users/doug/pytccl/torch-ccl/build/temp.macosx-10.9-x86_64-3.6.libtorch_ccl/third_party/oneCCL/include/oneapi/ccl/config.h:29:17: note: expanded from macro CCL_API comm_split_attr::comm_split_attr(const comm_split_attr& src) : base_t(src) {}'CCL_API'
define CCL_API CCL_HELPER_DLL_EXPORT
In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_api_functions.cpp:18: /Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/api_functions.hpp:39:18: error: expected ';' at end of declaration init_attr CCL_API create_init_attr(attr_val_type&&... avs) { ^ ; /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/comm_attr_impl.hpp:28:36: error: unknown type name 'Value' CCL_API Value comm_attr::set(const Value& v) { ^ /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/comm_attr_impl.hpp:28:26: error: C++ requires a type specifier for all declarations CCL_API Value comm_attr::set(const Value& v) { ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/comm_attr_impl.hpp:30:59: error: use of undeclared identifier 'attrId' v, detail::ccl_api_type_attr_traits<comm_attr_id, attrId>{}); ^ /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/comm_attr_impl.hpp:34:15: error: cannot combine with previous 'type-name' declaration specifier CCL_API const typename detail::ccl_api_type_attr_traits<comm_attr_id, attrId>::type& ^ /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/comm_attr_impl.hpp:35:12: error: out-of-line definition of 'get' does not match any declaration in 'ccl::v1::comm_attr' comm_attr::get() const { ^~~ /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/comm_attr_impl.hpp:41:9: error: cannot combine with previous 'type-name' declaration specifier CCL_API bool comm_attr::is_valid() const noexcept { ^ /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/comm_attr_impl.hpp:41:25: error: out-of-line definition of 'is_valid' does not match any declaration in 'ccl::v1::comm_attr' CCL_API bool comm_attr::is_valid() const noexcept { ^
~~~ 20 errors generated. /Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/api_functions.hpp:39:36: error: unknown type name 'attr_val_type' init_attr CCL_API create_init_attr(attr_val_type&&... avs) { ^ /Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/api_functions.hpp:39:51: error: type 'int &&' of function parameter pack does not contain any unexpanded parameter packs init_attr CCL_API create_init_attr(attr_val_type&&... avs) {