Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[level-zero] added new recipe #25068

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RaguzovaTatyana
Copy link
Contributor

Summary

Changes to recipe: level-zero/1.17.28

Motivation

Openvino recipe needs level-zero to support execution on Intel NPU devices
this library also might be used by libfabric

Details


@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@RaguzovaTatyana
Copy link
Contributor Author

@uilianries , Could you please re-run checks?

@uilianries
Copy link
Member

@RaguzovaTatyana Hello! I just triggered it now. Thank you for pinging!

@conan-center-bot

This comment has been minimized.

# Binary configuration
settings = "os", "arch", "compiler", "build_type"
options = {
"shared": [True, False],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"shared": [True, False],

You may remove shared option, otherwise, when using -o "/:shared=False" will fail due the InvalidConfiguration in this recipe. In case no having the shared option, it will be linked to the shared library always.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, @uilianries, there's an error saying "Package type is 'library', but no 'shared' option declared", are you sure this option can be removed this case?

settings = "os", "arch", "compiler", "build_type"
options = {
"shared": [True, False],
"fPIC": [True, False]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"fPIC": [True, False]

fpic could be removed as well as it only provides shared library.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

class LevelZeroConan(ConanFile):
name = "level-zero"
license = "MIT"
homepage = "https://github.com/oneapi-src/level-zero"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if this can only be built as a shared library (judging by https://github.com/oneapi-src/level-zero/blob/master/source/CMakeLists.txt#L14-L19) - then I think the package type needs to be set to shared-library

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ❌

Warning

Conan Center will stop receiving updates for Conan 1.x packages soon - please see announcement.

Failure in build 31 (a346410f53d88744a6a4248f99d3ffdebc5a2722):

  • level-zero/1.17.28:
    CI failed to create some packages (All logs)

    Logs for packageID c023db9fc677d4d0b3bd0c20f71385e4cf8a1220:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++11
    compiler.version=5
    os=Linux
    
    [...]
           ^
    In file included from /usr/include/x86_64-linux-gnu/c++/5/bits/c++allocator.h:33:0,
                     from /usr/include/c++/5/bits/allocator.h:46,
                     from /usr/include/c++/5/string:41,
                     from /home/conan/workspace/prod-v1/bsr/106585/aaaaa/.conan/data/level-zero/1.17.28/_/_/build/c023db9fc677d4d0b3bd0c20f71385e4cf8a1220/src/source/inc/ze_util.h:14,
                     from /home/conan/workspace/prod-v1/bsr/106585/aaaaa/.conan/data/level-zero/1.17.28/_/_/build/c023db9fc677d4d0b3bd0c20f71385e4cf8a1220/src/source/layers/validation/ze_validation_layer.h:14,
                     from /home/conan/workspace/prod-v1/bsr/106585/aaaaa/.conan/data/level-zero/1.17.28/_/_/build/c023db9fc677d4d0b3bd0c20f71385e4cf8a1220/src/source/layers/validation/ze_validation_layer.cpp:10:
    /usr/include/c++/5/ext/new_allocator.h: In instantiation of ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = std::pair<_ze_rtas_builder_exp_handle_t* const, std::unique_ptr<validation_layer::_zel_handle_state_t> >; _Args = {const std::pair<_ze_rtas_builder_exp_handle_t* const, std::unique_ptr<validation_layer::_zel_handle_state_t, std::default_delete<validation_layer::_zel_handle_state_t> > >&}; _Tp = std::pair<_ze_rtas_builder_exp_handle_t* const, std::unique_ptr<validation_layer::_zel_handle_state_t> >]’:
    /usr/include/c++/5/bits/alloc_traits.h:530:4:   required from ‘static void std::allocator_traits<std::allocator<_CharT> >::construct(std::allocator_traits<std::allocator<_CharT> >::allocator_type&, _Up*, _Args&& ...) [with _Up = std::pair<_ze_rtas_builder_exp_handle_t* const, std::unique_ptr<validation_layer::_zel_handle_state_t> >; _Args = {const std::pair<_ze_rtas_builder_exp_handle_t* const, std::unique_ptr<validation_layer::_zel_handle_state_t, std::default_delete<validation_layer::_zel_handle_state_t> > >&}; _Tp = std::pair<_ze_rtas_builder_exp_handle_t* const, std::unique_ptr<validation_layer::_zel_handle_state_t> >; std::allocator_traits<std::allocator<_CharT> >::allocator_type = std::allocator<std::pair<_ze_rtas_builder_exp_handle_t* const, std::unique_ptr<validation_layer::_zel_handle_state_t> > >]’
    /usr/include/c++/5/bits/hashtable_policy.h:1955:37:   required from ‘std::__detail::_Hashtable_alloc<_NodeAlloc>::__node_type* std::__detail::_Hashtable_alloc<_NodeAlloc>::_M_allocate_node(_Args&& ...) [with _Args = {const std::pair<_ze_rtas_builder_exp_handle_t* const, std::unique_ptr<validation_layer::_zel_handle_state_t, std::default_delete<validation_layer::_zel_handle_state_t> > >&}; _NodeAlloc = std::allocator<std::__detail::_Hash_node<std::pair<_ze_rtas_builder_exp_handle_t* const, std::unique_ptr<validation_layer::_zel_handle_state_t> >, false> >; std::__detail::_Hashtable_alloc<_NodeAlloc>::__node_type = std::__detail::_Hash_node<std::pair<_ze_rtas_builder_exp_handle_t* const, std::unique_ptr<validation_layer::_zel_handle_state_t> >, false>]’
    /usr/include/c++/5/bits/hashtable_policy.h:180:58:   required from ‘std::__detail::_AllocNode<_NodeAlloc>::__node_type* std::__detail::_AllocNode<_NodeAlloc>::operator()(_Arg&&) const [with _Arg = const std::pair<_ze_rtas_builder_exp_handle_t* const, std::unique_ptr<validation_layer::_zel_handle_state_t> >&; _NodeAlloc = std::allocator<std::__detail::_Hash_node<std::pair<_ze_rtas_builder_exp_handle_t* const, std::unique_ptr<validation_layer::_zel_handle_state_t> >, false> >; std::__detail::_AllocNode<_NodeAlloc>::__node_type = std::__detail::_Hash_node<std::pair<_ze_rtas_builder_exp_handle_t* const, std::unique_ptr<validation_layer::_zel_handle_state_t> >, false>]’
    /usr/include/c++/5/bits/hashtable.h:1703:18:   required from ‘std::pair<typename std::__detail::_Hashtable_base<_Key, _Value, _ExtractKey, _Equal, _H1, _H2, _Hash, _Traits>::iterator, bool> std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::_M_insert(_Arg&&, const _NodeGenerator&, std::true_type) [with _Arg = const std::pair<_ze_rtas_builder_exp_handle_t* const, std::unique_ptr<validation_layer::_zel_handle_state_t> >&; _NodeGenerator = std::__detail::_AllocNode<std::allocator<std::__detail::_Hash_node<std::pair<_ze_rtas_builder_exp_handle_t* const, std::unique_ptr<validation_layer::_zel_handle_state_t> >, false> > >; _Key = _ze_rtas_builder_exp_handle_t*; _Value = std::pair<_ze_rtas_builder_exp_handle_t* const, std::unique_ptr<validation_layer::_zel_handle_state_t> >; _Alloc = std::allocator<std::pair<_ze_rtas_builder_exp_handle_t* const, std::unique_ptr<validation_layer::_zel_handle_state_t> > >; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to<_ze_rtas_builder_exp_handle_t*>; _H1 = std::hash<_ze_rtas_builder_exp_handle_t*>; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits<false, false, true>; typename std::__detail::_Hashtable_base<_Key, _Value, _ExtractKey, _Equal, _H1, _H2, _Hash, _Traits>::iterator = std::__detail::_Node_iterator<std::pair<_ze_rtas_builder_exp_handle_t* const, std::unique_ptr<validation_layer::_zel_handle_state_t> >, false, false>; std::true_type = std::integral_constant<bool, true>]’
    /usr/include/c++/5/bits/hashtable_policy.h:715:55:   required from ‘std::__detail::_Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::__ireturn_type std::__detail::_Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::insert(const value_type&) [with _Key = _ze_rtas_builder_exp_handle_t*; _Value = std::pair<_ze_rtas_builder_exp_handle_t* const, std::unique_ptr<validation_layer::_zel_handle_state_t> >; _Alloc = std::allocator<std::pair<_ze_rtas_builder_exp_handle_t* const, std::unique_ptr<validation_layer::_zel_handle_state_t> > >; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to<_ze_rtas_builder_exp_handle_t*>; _H1 = std::hash<_ze_rtas_builder_exp_handle_t*>; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits<false, false, true>; std::__detail::_Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::__ireturn_type = std::pair<std::__detail::_Node_iterator<std::pair<_ze_rtas_builder_exp_handle_t* const, std::unique_ptr<validation_layer::_zel_handle_state_t> >, false, false>, bool>; std::__detail::_Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::value_type = std::pair<_ze_rtas_builder_exp_handle_t* const, std::unique_ptr<validation_layer::_zel_handle_state_t> >]’
    /usr/include/c++/5/bits/unordered_map.h:433:31:   required from ‘std::pair<typename std::_Hashtable<_Key, std::pair<const _Key, _Tp>, _Alloc, std::__detail::_Select1st, _Pred, _Hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<std::__not_<std::__and_<std::__is_fast_hash<_Hash>, std::__detail::__is_noexcept_hash<_Key, _Hash> > >::value, false, true> >::iterator, bool> std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::insert(const value_type&) [with _Key = _ze_rtas_builder_exp_handle_t*; _Tp = std::unique_ptr<validation_layer::_zel_handle_state_t>; _Hash = std::hash<_ze_rtas_builder_exp_handle_t*>; _Pred = std::equal_to<_ze_rtas_builder_exp_handle_t*>; _Alloc = std::allocator<std::pair<_ze_rtas_builder_exp_handle_t* const, std::unique_ptr<validation_layer::_zel_handle_state_t> > >; typename std::_Hashtable<_Key, std::pair<const _Key, _Tp>, _Alloc, std::__detail::_Select1st, _Pred, _Hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<std::__not_<std::__and_<std::__is_fast_hash<_Hash>, std::__detail::__is_noexcept_hash<_Key, _Hash> > >::value, false, true> >::iterator = std::__detail::_Node_iterator<std::pair<_ze_rtas_builder_exp_handle_t* const, std::unique_ptr<validation_layer::_zel_handle_state_t> >, false, false>; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::value_type = std::pair<_ze_rtas_builder_exp_handle_t* const, std::unique_ptr<validation_layer::_zel_handle_state_t> >]’
    /home/conan/workspace/prod-v1/bsr/106585/aaaaa/.conan/data/level-zero/1.17.28/_/_/build/c023db9fc677d4d0b3bd0c20f71385e4cf8a1220/src/source/layers/validation/handle_lifetime_tracking/handle_lifetime.h:195:55:   required from here
    /usr/include/c++/5/ext/new_allocator.h:120:4: error: use of deleted function ‘constexpr std::pair<_T1, _T2>::pair(const std::pair<_T1, _T2>&) [with _T1 = _ze_rtas_builder_exp_handle_t* const; _T2 = std::unique_ptr<validation_layer::_zel_handle_state_t>]’
      { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
        ^
    In file included from /usr/include/c++/5/bits/stl_algobase.h:64:0,
                     from /usr/include/c++/5/bits/char_traits.h:39,
                     from /usr/include/c++/5/string:40,
                     from /home/conan/workspace/prod-v1/bsr/106585/aaaaa/.conan/data/level-zero/1.17.28/_/_/build/c023db9fc677d4d0b3bd0c20f71385e4cf8a1220/src/source/inc/ze_util.h:14,
                     from /home/conan/workspace/prod-v1/bsr/106585/aaaaa/.conan/data/level-zero/1.17.28/_/_/build/c023db9fc677d4d0b3bd0c20f71385e4cf8a1220/src/source/layers/validation/ze_validation_layer.h:14,
                     from /home/conan/workspace/prod-v1/bsr/106585/aaaaa/.conan/data/level-zero/1.17.28/_/_/build/c023db9fc677d4d0b3bd0c20f71385e4cf8a1220/src/source/layers/validation/ze_validation_layer.cpp:10:
    /usr/include/c++/5/bits/stl_pair.h:127:17: note: ‘constexpr std::pair<_T1, _T2>::pair(const std::pair<_T1, _T2>&) [with _T1 = _ze_rtas_builder_exp_handle_t* const; _T2 = std::unique_ptr<validation_layer::_zel_handle_state_t>]’ is implicitly deleted because the default definition would be ill-formed:
           constexpr pair(const pair&) = default;
                     ^
    /usr/include/c++/5/bits/stl_pair.h:127:17: error: use of deleted function ‘std::unique_ptr<_Tp, _Dp>::unique_ptr(const std::unique_ptr<_Tp, _Dp>&) [with _Tp = validation_layer::_zel_handle_state_t; _Dp = std::default_delete<validation_layer::_zel_handle_state_t>]’
    In file included from /usr/include/c++/5/memory:81:0,
                     from /home/conan/workspace/prod-v1/bsr/106585/aaaaa/.conan/data/level-zero/1.17.28/_/_/build/c023db9fc677d4d0b3bd0c20f71385e4cf8a1220/src/source/layers/validation/handle_lifetime_tracking/handle_lifetime.h:13,
                     from /home/conan/workspace/prod-v1/bsr/106585/aaaaa/.conan/data/level-zero/1.17.28/_/_/build/c023db9fc677d4d0b3bd0c20f71385e4cf8a1220/src/source/layers/validation/ze_validation_layer.h:16,
                     from /home/conan/workspace/prod-v1/bsr/106585/aaaaa/.conan/data/level-zero/1.17.28/_/_/build/c023db9fc677d4d0b3bd0c20f71385e4cf8a1220/src/source/layers/validation/ze_validation_layer.cpp:10:
    /usr/include/c++/5/bits/unique_ptr.h:356:7: note: declared here
           unique_ptr(const unique_ptr&) = delete;
           ^
    make[2]: *** [source/layers/validation/CMakeFiles/ze_validation_layer.dir/ze_validation_layer.cpp.o] Error 1
    make[1]: *** [source/layers/validation/CMakeFiles/ze_validation_layer.dir/all] Error 2
    make[1]: *** Waiting for unfinished jobs....
    make: *** [all] Error 2
    WARN: **************************************************
    WARN: *** Conan 1 is legacy and on a deprecation path **
    WARN: *********** Please upgrade to Conan 2 ************
    WARN: **************************************************
    level-zero/1.17.28: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
    level-zero/1.17.28: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
    level-zero/1.17.28: ERROR: Package 'c023db9fc677d4d0b3bd0c20f71385e4cf8a1220' build failed
    level-zero/1.17.28: WARN: Build folder /home/conan/workspace/prod-v1/bsr/106585/aaaaa/.conan/data/level-zero/1.17.28/_/_/build/c023db9fc677d4d0b3bd0c20f71385e4cf8a1220/build/Release
    ERROR: level-zero/1.17.28: Error in build() method, line 57
    	cmake.build()
    	ConanException: Error 2 while executing cmake --build "/home/conan/workspace/prod-v1/bsr/106585/aaaaa/.conan/data/level-zero/1.17.28/_/_/build/c023db9fc677d4d0b3bd0c20f71385e4cf8a1220/build/Release" '--' '-j3'
    

Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants