intel / torch-ccl

oneCCL Bindings for Pytorch*
BSD 3-Clause "New" or "Revised" License
86 stars 25 forks source link

won't compile on mac #25

Closed DougStoker closed 2 years ago

DougStoker commented 3 years ago

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) {} ^~~~~ 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 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: ^~~~~ 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) {


/Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/api_functions.hpp:39:19: error: C++ requires a type specifier for all declarations
init_attr CCL_API create_init_attr(attr_val_type&&... avs) {
                  ^
/Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_kvs_attr.cpp:44:1: error: unknown type name 'CCL_HELPER_DLL_EXPORT'
CCL_API kvs_attr::kvs_attr(kvs_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_kvs_attr.cpp:44:19: error: constructor cannot have a return type
CCL_API kvs_attr::kvs_attr(kvs_attr&& src) : base_t(std::move(src)) {}
                  ^~~~~~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
/Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_coll_attr.cpp:77:35: error: unknown type name 'impl_t'
        : base_t(impl_value_t(new impl_t(version))) {}
                                  ^
20 errors generated.
/Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_kvs_attr.cpp:44:63: error: use of undeclared identifier 'src'
CCL_API kvs_attr::kvs_attr(kvs_attr&& src) : base_t(std::move(src)) {}
                                                              ^
/Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_datatype_attr.cpp:45:1: error: unknown type name 'CCL_HELPER_DLL_EXPORT'
CCL_API datatype_attr::datatype_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_datatype_attr.cpp:45:24: error: constructor cannot have a return type
CCL_API datatype_attr::datatype_attr(
                       ^~~~~~~~~~~~~
make[3]: *** [third_party/oneCCL/src/CMakeFiles/ccl-objects.dir/ccl_app_api_comm_attr.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
/Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_datatype_attr.cpp:49:35: error: unknown type name 'impl_t'; did you mean
      'datatype_attr::impl_t'?
        : base_t(impl_value_t(new impl_t(version))) {}
                                  ^~~~~~
                                  datatype_attr::impl_t
/Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/datatype_attr.hpp:46:11: note: 'datatype_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_kvs_attr.cpp:46:1: error: unknown type name 'CCL_HELPER_DLL_EXPORT'
CCL_API kvs_attr::kvs_attr(const kvs_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_kvs_attr.cpp:46:19: error: constructor cannot have a return type
CCL_API kvs_attr::kvs_attr(const kvs_attr& src) : base_t(src) {}
                  ^~~~~~~~
make[3]: *** [third_party/oneCCL/src/CMakeFiles/ccl-objects.dir/ccl_app_api_comm_split_attr.cpp.o] Error 1
/Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/api_functions.hpp:40:63: error: use of undeclared identifier 'attr_val_type'
    return detail::environment::create_init_attr(std::forward<attr_val_type>(avs)...);
                                                              ^
/Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/api_functions.hpp:48:6: error: variable has incomplete type 'void'
void CCL_API init(const init_attr& attr = default_init_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
                ^
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:48:13: error: expected ';' after top level declarator
void CCL_API init(const init_attr& attr = default_init_attr);
            ^
            ;
/Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/api_functions.hpp:54:24: error: expected ';' after top level declarator
library_version CCL_API get_library_version();
                       ^
                       ;
/Users/doug/pytccl/torch-ccl/third_party/oneCCL/include/oneapi/ccl/api_functions.hpp:69:15: error: variable templates are a C++14 extension
      [-Werror,-Wc++14-extensions]
datatype_attr CCL_API create_datatype_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:69:15: 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/api_functions.hpp:54:17: note: previous definition is here
library_version CCL_API get_library_version();
                ^
/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:69:22: error: expected /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_coll_attr.cpp';': 79at: 1end:  of declarationerror: 
unknown type name 'CCL_HELPER_DLL_EXPORT'
datatype_attr CCL_API create_datatype_attr(attr_val_type&&... avs) {
                     ^
                     ;
CCL_API allgatherv_attr& allgatherv_attr::operator=(allgatherv_attr&& src) noexcept {
^
/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:79:24: error: expected ';' after top level declarator
/Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_kvs_attr.cpp:46:58: error: use of undeclared identifier 'src'
CCL_API allgatherv_attr& allgatherv_attr::operator=(allgatherv_attr&& src) noexcept {
                       ^
                       ;
CCL_API kvs_attr::kvs_attr(const kvs_attr& src) : base_t(src) {}
                                                         ^
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:27:
/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:27:30: error: template non-type parameter has a different type
      'ccl::v1::comm_split_attr_id' in template redeclaration
template <comm_split_attr_id attrId, class Value>
                             ^
/Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/comm_attr_impl.hpp:27:24: note: previous non-type template parameter with type 'ccl::v1::comm_attr_id' is
      here
template <comm_attr_id attrId, class Value>
                       ^
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:27:
/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/ccl_app_api_datatype_attr.cpp:49:18: error: use of undeclared identifier 'impl_value_t'
        : base_t(impl_value_t(new impl_t(version))) {}
                 ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
fatal error: too many errors emitted, stopping now [-ferror-limit=]
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
/Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_coll_attr.cpp:305:1: error: unknown type name 'CCL_HELPER_DLL_EXPORT'
COMMON_API_FORCE_INSTANTIATION(allgatherv_attr)
^
/Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_coll_attr.cpp:48:5: note: expanded from macro 'COMMON_API_FORCE_INSTANTIATION'
    API_FORCE_INSTANTIATION( \
    ^
/Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_coll_attr.cpp:45:5: note: expanded from macro 'API_FORCE_INSTANTIATION'
    API_FORCE_INSTANTIATION_GET(class_name, IN_attrType, IN_attrId)
    ^
/Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_coll_attr.cpp:39:14: note: expanded from macro 'API_FORCE_INSTANTIATION_GET'
    template CCL_API const typename detail::ccl_api_type_attr_traits<IN_attrType, \
             ^
/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:305:1: error: expected unqualified-id
/Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_coll_attr.cpp:48:5: note: expanded from macro 'COMMON_API_FORCE_INSTANTIATION'
    API_FORCE_INSTANTIATION( \
    ^
/Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_coll_attr.cpp:45:5: note: expanded from macro 'API_FORCE_INSTANTIATION'
    API_FORCE_INSTANTIATION_GET(class_name, IN_attrType, IN_attrId)
    ^
/Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_coll_attr.cpp:39:22: note: expanded from macro 'API_FORCE_INSTANTIATION_GET'
    template CCL_API const typename detail::ccl_api_type_attr_traits<IN_attrType, \
                     ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
/Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_coll_attr.cpp:305:1: error: unknown type name 'CCL_HELPER_DLL_EXPORT'
/Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_coll_attr.cpp:55:5: note: expanded from macro 'COMMON_API_FORCE_INSTANTIATION'
    API_FORCE_INSTANTIATION_SET( \
    ^
/Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_coll_attr.cpp:34:14: note: expanded from macro 'API_FORCE_INSTANTIATION_SET'
    template CCL_API \
             ^
/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:305:1: error: expected unqualified-id
/Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_coll_attr.cpp:55:5: note: expanded from macro 'COMMON_API_FORCE_INSTANTIATION'
    API_FORCE_INSTANTIATION_SET( \
    ^
/Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_coll_attr.cpp:35:9: note: expanded from macro 'API_FORCE_INSTANTIATION_SET'
        typename detail::ccl_api_type_attr_traits<IN_attrType, IN_attrId>::return_type \
        ^
make[3]: *** [third_party/oneCCL/src/CMakeFiles/ccl-objects.dir/ccl_app_api_kvs_attr.cpp.o] Error 1
make[3]: *** [third_party/oneCCL/src/CMakeFiles/ccl-objects.dir/ccl_app_api_datatype_attr.cpp.o] Error 1
/Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_coll_attr.cpp:305:1: error: unknown type name 'CCL_HELPER_DLL_EXPORT'
/Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_coll_attr.cpp:57:5: note: expanded from macro 'COMMON_API_FORCE_INSTANTIATION'
    API_FORCE_INSTANTIATION_SET(class_name, operation_attr_id, operation_attr_id::priority, int) \
    ^
/Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_app_api_coll_attr.cpp:34:14: note: expanded from macro 'API_FORCE_INSTANTIATION_SET'
    template CCL_API \
             ^
/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
                ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[3]: *** [third_party/oneCCL/src/CMakeFiles/ccl-objects.dir/ccl_app_api_coll_attr.cpp.o] Error 1
In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/ccl_cpp_communicator.cpp:49:
In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/common/comm/l0/comm_context_storage.hpp:21:
In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/common/comm/atl_tag.hpp:18:
In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/common/comm/comm_id_storage.hpp:19:
In file included from /Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/common/log/log.hpp:28:
/Users/doug/pytccl/torch-ccl/third_party/oneCCL/src/common/utils/utils.hpp:25:10: fatal error: 'malloc.h' file not found
#include <malloc.h>
         ^~~~~~~~~~
2 errors generated.
make[3]: *** [third_party/oneCCL/src/CMakeFiles/ccl-objects.dir/ccl_cpp_communicator.cpp.o] Error 1
20 errors generated.
make[3]: *** [third_party/oneCCL/src/CMakeFiles/ccl-objects.dir/ccl_cpp_environment.cpp.o] Error 1
20 errors generated.
make[3]: *** [third_party/oneCCL/src/CMakeFiles/ccl-objects.dir/ccl_api_functions.cpp.o] Error 1
make[2]: *** [third_party/oneCCL/src/CMakeFiles/ccl-objects.dir/all] Error 2
make[1]: *** [src/CMakeFiles/torch_ccl.dir/rule] Error 2
make: *** [torch_ccl] Error 2
Traceback (most recent call last):
  File "setup.py", line 235, in <module>
    'clean': Clean,
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/__init__.py", line 143, in setup
    return distutils.core.setup(**attrs)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/command/install.py", line 67, in run
    self.do_egg_install()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/command/install.py", line 109, in do_egg_install
    self.run_command('bdist_egg')
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/command/bdist_egg.py", line 172, in run
    cmd = self.call_command('install_lib', warn_dir=0)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/command/bdist_egg.py", line 158, in call_command
    self.run_command(cmdname)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/command/install_lib.py", line 11, in run
    self.build()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/command/install_lib.py", line 107, in build
    self.run_command('build_ext')
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "setup.py", line 81, in run
    self.build_cmake(ext)
  File "setup.py", line 129, in build_cmake
    check_call(['make', 'torch_ccl'] + build_args, cwd=str(build_dir))
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 311, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['make', 'torch_ccl', '-j', '8']' returned non-zero exit status 2.
Douglass-MacBook-Pro:torch-ccl doug$ 
chengjunlu commented 3 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.

chengjunlu commented 3 years ago

@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.