Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Samsung runner build fails with -DEXECUTORCH_BUILD_TESTS=ON #15310

Open
Assignees
Labels
module: samsung triagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module
@brucekk-kim

Description

🐛 Describe the bug

  1. Building Samsung backend runner with test flags on invokes an error from executorch/extension/data_loader/test/shared_ptr_data_loader_test.cpp, and therefore leads to build failure at Samsung backend too.

  2. Verifying Samsung's LiteCore Release experiences the same issue.
    @Jiseong-oh will include the details in the comment.

  • Build script
executorch/backends/samsung/build.sh
  • cmake config added
-DEXECUTORCH_BUILD_TESTS=ON
  • Command
export EXYNOS_AI_LITECORE_ROOT=/your/path/to/AI_LiteCore
executorch/backends/samsung$ ENN_SDK_ROOT=none ./build.sh -b android 
  • Error Log
CMake Deprecation Warning at /mlperf/brucekk.kim/work/src/android-ndk-r25c/build/cmake/android.toolchain.cmake:34 (cmake_minimum_required):
 Compatibility with CMake < 3.10 will be removed from a future version of
 CMake.
 Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
 to tell CMake that the project requires at least <min> but has been updated
 to work with policies introduced by <max> or earlier.
Call Stack (most recent call first):
 build_samsung_android/CMakeFiles/3.31.6/CMakeSystem.cmake:6 (include)
 CMakeLists.txt:51 (project)
CMake Deprecation Warning at /mlperf/brucekk.kim/work/src/android-ndk-r25c/build/cmake/android-legacy.toolchain.cmake:34 (cmake_minimum_required):
 Compatibility with CMake < 3.10 will be removed from a future version of
 CMake.
 Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
 to tell CMake that the project requires at least <min> but has been updated
 to work with policies introduced by <max> or earlier.
Call Stack (most recent call first):
 /mlperf/brucekk.kim/work/src/android-ndk-r25c/build/cmake/android.toolchain.cmake:54 (include)
 build_samsung_android/CMakeFiles/3.31.6/CMakeSystem.cmake:6 (include)
 CMakeLists.txt:51 (project)
CMake Deprecation Warning at third-party/gflags/CMakeLists.txt:73 (cmake_minimum_required):
 Compatibility with CMake < 3.10 will be removed from a future version of
 CMake.
 Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
 to tell CMake that the project requires at least <min> but has been updated
 to work with policies introduced by <max> or earlier.
CMake Deprecation Warning at third-party/googletest/CMakeLists.txt:4 (cmake_minimum_required):
 Compatibility with CMake < 3.10 will be removed from a future version of
 CMake.
 Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
 to tell CMake that the project requires at least <min> but has been updated
 to work with policies introduced by <max> or earlier.
CMake Deprecation Warning at third-party/googletest/googlemock/CMakeLists.txt:45 (cmake_minimum_required):
 Compatibility with CMake < 3.10 will be removed from a future version of
 CMake.
 Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
 to tell CMake that the project requires at least <min> but has been updated
 to work with policies introduced by <max> or earlier.
CMake Deprecation Warning at third-party/googletest/googletest/CMakeLists.txt:56 (cmake_minimum_required):
 Compatibility with CMake < 3.10 will be removed from a future version of
 CMake.
 Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
 to tell CMake that the project requires at least <min> but has been updated
 to work with policies introduced by <max> or earlier.
CMake Deprecation Warning at third-party/flatcc/CMakeLists.txt:2 (cmake_minimum_required):
 Compatibility with CMake < 3.10 will be removed from a future version of
 CMake.
 Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
 to tell CMake that the project requires at least <min> but has been updated
 to work with policies introduced by <max> or earlier.
CMake Deprecation Warning at backends/xnnpack/third-party/FXdiv/CMakeLists.txt:1 (CMAKE_MINIMUM_REQUIRED):
 Compatibility with CMake < 3.10 will be removed from a future version of
 CMake.
 Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
 to tell CMake that the project requires at least <min> but has been updated
 to work with policies introduced by <max> or earlier.
CMake Deprecation Warning at backends/xnnpack/third-party/cpuinfo/CMakeLists.txt:1 (CMAKE_MINIMUM_REQUIRED):
 Compatibility with CMake < 3.10 will be removed from a future version of
 CMake.
 Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
 to tell CMake that the project requires at least <min> but has been updated
 to work with policies introduced by <max> or earlier.
CMake Deprecation Warning at backends/xnnpack/third-party/pthreadpool/CMakeLists.txt:10 (CMAKE_MINIMUM_REQUIRED):
 Compatibility with CMake < 3.10 will be removed from a future version of
 CMake.
 Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
 to tell CMake that the project requires at least <min> but has been updated
 to work with policies introduced by <max> or earlier.
Command - python;-m;codegen.tools.gen_oplist;--output_path=/mlperf/brucekk.kim/work/src/executorch/build_samsung_android/kernels/portable/portable_ops_lib/selected_operators.yaml;--ops_schema_yaml_path="/mlperf/brucekk.kim/work/src/executorch/kernels/portable/functions.yaml"
Generated files /mlperf/brucekk.kim/work/src/executorch/build_samsung_android/kernels/portable/portable_ops_lib/RegisterCodegenUnboxedKernelsEverything.cpp;/mlperf/brucekk.kim/work/src/executorch/build_samsung_android/kernels/portable/portable_ops_lib/Functions.h;/mlperf/brucekk.kim/work/src/executorch/build_samsung_android/kernels/portable/portable_ops_lib/NativeFunctions.h
'python' '-c' 'import importlib.util; print(importlib.util.find_spec('torch').submodule_search_locations[0])'
CMake Error in backends/samsung/CMakeLists.txt:
 Target "enn_logging" INTERFACE_SOURCES property contains path:
 "/mlperf/brucekk.kim/work/src/executorch/backends/samsung/runtime/logging.h"
 which is prefixed in the source directory.
CMake Generate step failed. Build files cannot be regenerated correctly.
/mlperf/brucekk.kim/work/src/executorch/extension/data_loader/test/shared_ptr_data_loader_test.cpp:38:30: error: no matching constructor for initialization of 'std::shared_ptr<uint8_t[]>' (aka 'shared_ptr<unsigned char[]>')
 std::shared_ptr<uint8_t[]> data(
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3725:26: note: candidate constructor template not viable: no known conversion from 'uint8_t *' (aka 'unsigned char *') to 'std::nullptr_t' for 1st argument
 template <class _Dp> shared_ptr(nullptr_t __p, _Dp __d);
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3717:18: note: candidate template ignored: requirement 'is_convertible<unsigned char *, unsigned char (*)[]>::value' was not satisfied [with _Yp = unsigned char]
 explicit shared_ptr(_Yp* __p,
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3720:9: note: candidate template ignored: requirement 'is_convertible<unsigned char *, unsigned char (*)[]>::value' was not satisfied [with _Yp = unsigned char, _Dp = std::default_delete<unsigned char[]>]
 shared_ptr(_Yp* __p, _Dp __d,
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3727:51: note: candidate template ignored: could not match 'shared_ptr<_Yp>' against 'uint8_t *' (aka 'unsigned char *')
 template<class _Yp> _LIBCPP_INLINE_VISIBILITY shared_ptr(const shared_ptr<_Yp>& __r, element_type* __p) _NOEXCEPT;
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3732:9: note: candidate template ignored: could not match 'shared_ptr<_Yp>' against 'uint8_t *' (aka 'unsigned char *')
 shared_ptr(const shared_ptr<_Yp>& __r,
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3738:52: note: candidate template ignored: could not match 'shared_ptr<_Yp>' against 'uint8_t *' (aka 'unsigned char *')
 template<class _Yp> _LIBCPP_INLINE_VISIBILITY shared_ptr(shared_ptr<_Yp>&& __r,
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3742:34: note: candidate template ignored: could not match 'weak_ptr<_Yp>' against 'uint8_t *' (aka 'unsigned char *')
 template<class _Yp> explicit shared_ptr(const weak_ptr<_Yp>& __r,
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3757:9: note: candidate template ignored: could not match 'unique_ptr<_Yp, _Dp>' against 'uint8_t *' (aka 'unsigned char *')
 shared_ptr(unique_ptr<_Yp, _Dp>&&,
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3766:9: note: candidate template ignored: could not match 'unique_ptr<_Yp, _Dp>' against 'uint8_t *' (aka 'unsigned char *')
 shared_ptr(unique_ptr<_Yp, _Dp>&&,
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3715:23: note: candidate constructor not viable: requires 1 argument, but 2 were provided
 _LIBCPP_CONSTEXPR shared_ptr(nullptr_t) _NOEXCEPT;
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3729:5: note: candidate constructor not viable: requires single argument '__r', but 2 arguments were provided
 shared_ptr(const shared_ptr& __r) _NOEXCEPT;
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3737:5: note: candidate constructor not viable: requires single argument '__r', but 2 arguments were provided
 shared_ptr(shared_ptr&& __r) _NOEXCEPT;
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3726:40: note: candidate constructor template not viable: requires 3 arguments, but 2 were provided
 template <class _Dp, class _Alloc> shared_ptr(nullptr_t __p, _Dp __d, _Alloc __a);
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3713:23: note: candidate constructor not viable: requires 0 arguments, but 2 were provided
 _LIBCPP_CONSTEXPR shared_ptr() _NOEXCEPT;
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3723:9: note: candidate constructor template not viable: requires at least 3 arguments, but 2 were provided
 shared_ptr(_Yp* __p, _Dp __d, _Alloc __a,
 ^
/mlperf/brucekk.kim/work/src/executorch/extension/data_loader/test/shared_ptr_data_loader_test.cpp:41:9: error: type 'std::shared_ptr<uint8_t[]>' (aka 'shared_ptr<unsigned char[]>') does not provide a subscript operator
 data[i] = i;
 ~~~~^~
/mlperf/brucekk.kim/work/src/executorch/extension/data_loader/test/shared_ptr_data_loader_test.cpp:117:30: error: no matching constructor for initialization of 'std::shared_ptr<uint8_t[]>' (aka 'shared_ptr<unsigned char[]>')
 std::shared_ptr<uint8_t[]> data(
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3725:26: note: candidate constructor template not viable: no known conversion from 'uint8_t *' (aka 'unsigned char *') to 'std::nullptr_t' for 1st argument
 template <class _Dp> shared_ptr(nullptr_t __p, _Dp __d);
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3717:18: note: candidate template ignored: requirement 'is_convertible<unsigned char *, unsigned char (*)[]>::value' was not satisfied [with _Yp = unsigned char]
 explicit shared_ptr(_Yp* __p,
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3720:9: note: candidate template ignored: requirement 'is_convertible<unsigned char *, unsigned char (*)[]>::value' was not satisfied [with _Yp = unsigned char, _Dp = std::default_delete<unsigned char[]>]
 shared_ptr(_Yp* __p, _Dp __d,
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3727:51: note: candidate template ignored: could not match 'shared_ptr<_Yp>' against 'uint8_t *' (aka 'unsigned char *')
 template<class _Yp> _LIBCPP_INLINE_VISIBILITY shared_ptr(const shared_ptr<_Yp>& __r, element_type* __p) _NOEXCEPT;
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3732:9: note: candidate template ignored: could not match 'shared_ptr<_Yp>' against 'uint8_t *' (aka 'unsigned char *')
 shared_ptr(const shared_ptr<_Yp>& __r,
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3738:52: note: candidate template ignored: could not match 'shared_ptr<_Yp>' against 'uint8_t *' (aka 'unsigned char *')
 template<class _Yp> _LIBCPP_INLINE_VISIBILITY shared_ptr(shared_ptr<_Yp>&& __r,
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3742:34: note: candidate template ignored: could not match 'weak_ptr<_Yp>' against 'uint8_t *' (aka 'unsigned char *')
 template<class _Yp> explicit shared_ptr(const weak_ptr<_Yp>& __r,
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3757:9: note: candidate template ignored: could not match 'unique_ptr<_Yp, _Dp>' against 'uint8_t *' (aka 'unsigned char *')
 shared_ptr(unique_ptr<_Yp, _Dp>&&,
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3766:9: note: candidate template ignored: could not match 'unique_ptr<_Yp, _Dp>' against 'uint8_t *' (aka 'unsigned char *')
 shared_ptr(unique_ptr<_Yp, _Dp>&&,
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3715:23: note: candidate constructor not viable: requires 1 argument, but 2 were provided
 _LIBCPP_CONSTEXPR shared_ptr(nullptr_t) _NOEXCEPT;
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3729:5: note: candidate constructor not viable: requires single argument '__r', but 2 arguments were provided
 shared_ptr(const shared_ptr& __r) _NOEXCEPT;
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3737:5: note: candidate constructor not viable: requires single argument '__r', but 2 arguments were provided
 shared_ptr(shared_ptr&& __r) _NOEXCEPT;
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3726:40: note: candidate constructor template not viable: requires 3 arguments, but 2 were provided
 template <class _Dp, class _Alloc> shared_ptr(nullptr_t __p, _Dp __d, _Alloc __a);
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3713:23: note: candidate constructor not viable: requires 0 arguments, but 2 were provided
 _LIBCPP_CONSTEXPR shared_ptr() _NOEXCEPT;
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3723:9: note: candidate constructor template not viable: requires at least 3 arguments, but 2 were provided
 shared_ptr(_Yp* __p, _Dp __d, _Alloc __a,
 ^
gmake[2]: *** No rule to make target 'kernels/test/optimized_native_cpu_ops_lib', needed by 'kernels/test/include/optimized/executorch/kernels/optimized/Functions.h'. Stop.
gmake[2]: *** Waiting for unfinished jobs....
gmake[1]: *** [CMakeFiles/Makefile2:4238: kernels/test/CMakeFiles/generate_wrapper.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
3 errors generated.
gmake[2]: *** [extension/data_loader/test/CMakeFiles/extension_data_loader_test.dir/build.make:93: extension/data_loader/test/CMakeFiles/extension_data_loader_test.dir/shared_ptr_data_loader_test.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:3277: extension/data_loader/test/CMakeFiles/extension_data_loader_test.dir/all] Error 2
/mlperf/brucekk.kim/work/src/executorch/extension/tensor/test/tensor_ptr_maker_test.cpp:192:28: error: no matching constructor for initialization of 'std::shared_ptr<float[]>'
 std::shared_ptr<float[]> data_ptr(
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3725:26: note: candidate constructor template not viable: no known conversion from 'float *' to 'std::nullptr_t' for 1st argument
 template <class _Dp> shared_ptr(nullptr_t __p, _Dp __d);
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3717:18: note: candidate template ignored: requirement 'is_convertible<float *, float (*)[]>::value' was not satisfied [with _Yp = float]
 explicit shared_ptr(_Yp* __p,
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3720:9: note: candidate template ignored: requirement 'is_convertible<float *, float (*)[]>::value' was not satisfied [with _Yp = float, _Dp = (lambda at /mlperf/brucekk.kim/work/src/executorch/extension/tensor/test/tensor_ptr_maker_test.cpp:193:22)]
 shared_ptr(_Yp* __p, _Dp __d,
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3727:51: note: candidate template ignored: could not match 'shared_ptr<_Yp>' against 'float *'
 template<class _Yp> _LIBCPP_INLINE_VISIBILITY shared_ptr(const shared_ptr<_Yp>& __r, element_type* __p) _NOEXCEPT;
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3732:9: note: candidate template ignored: could not match 'shared_ptr<_Yp>' against 'float *'
 shared_ptr(const shared_ptr<_Yp>& __r,
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3738:52: note: candidate template ignored: could not match 'shared_ptr<_Yp>' against 'float *'
 template<class _Yp> _LIBCPP_INLINE_VISIBILITY shared_ptr(shared_ptr<_Yp>&& __r,
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3742:34: note: candidate template ignored: could not match 'weak_ptr<_Yp>' against 'float *'
 template<class _Yp> explicit shared_ptr(const weak_ptr<_Yp>& __r,
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3757:9: note: candidate template ignored: could not match 'unique_ptr<_Yp, _Dp>' against 'float *'
 shared_ptr(unique_ptr<_Yp, _Dp>&&,
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3766:9: note: candidate template ignored: could not match 'unique_ptr<_Yp, _Dp>' against 'float *'
 shared_ptr(unique_ptr<_Yp, _Dp>&&,
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3715:23: note: candidate constructor not viable: requires 1 argument, but 2 were provided
 _LIBCPP_CONSTEXPR shared_ptr(nullptr_t) _NOEXCEPT;
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3729:5: note: candidate constructor not viable: requires single argument '__r', but 2 arguments were provided
 shared_ptr(const shared_ptr& __r) _NOEXCEPT;
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3737:5: note: candidate constructor not viable: requires single argument '__r', but 2 arguments were provided
 shared_ptr(shared_ptr&& __r) _NOEXCEPT;
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3726:40: note: candidate constructor template not viable: requires 3 arguments, but 2 were provided
 template <class _Dp, class _Alloc> shared_ptr(nullptr_t __p, _Dp __d, _Alloc __a);
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3713:23: note: candidate constructor not viable: requires 0 arguments, but 2 were provided
 _LIBCPP_CONSTEXPR shared_ptr() _NOEXCEPT;
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3723:9: note: candidate constructor template not viable: requires at least 3 arguments, but 2 were provided
 shared_ptr(_Yp* __p, _Dp __d, _Alloc __a,
 ^
/mlperf/brucekk.kim/work/src/executorch/extension/tensor/test/tensor_ptr_test.cpp:190:28: error: no matching constructor for initialization of 'std::shared_ptr<float[]>'
 std::shared_ptr<float[]> data_ptr(
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3725:26: note: candidate constructor template not viable: no known conversion from 'float *' to 'std::nullptr_t' for 1st argument
 template <class _Dp> shared_ptr(nullptr_t __p, _Dp __d);
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3717:18: note: candidate template ignored: requirement 'is_convertible<float *, float (*)[]>::value' was not satisfied [with _Yp = float]
 explicit shared_ptr(_Yp* __p,
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3720:9: note: candidate template ignored: requirement 'is_convertible<float *, float (*)[]>::value' was not satisfied [with _Yp = float, _Dp = (lambda at /mlperf/brucekk.kim/work/src/executorch/extension/tensor/test/tensor_ptr_test.cpp:191:22)]
 shared_ptr(_Yp* __p, _Dp __d,
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3727:51: note: candidate template ignored: could not match 'shared_ptr<_Yp>' against 'float *'
 template<class _Yp> _LIBCPP_INLINE_VISIBILITY shared_ptr(const shared_ptr<_Yp>& __r, element_type* __p) _NOEXCEPT;
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3732:9: note: candidate template ignored: could not match 'shared_ptr<_Yp>' against 'float *'
 shared_ptr(const shared_ptr<_Yp>& __r,
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3738:52: note: candidate template ignored: could not match 'shared_ptr<_Yp>' against 'float *'
 template<class _Yp> _LIBCPP_INLINE_VISIBILITY shared_ptr(shared_ptr<_Yp>&& __r,
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3742:34: note: candidate template ignored: could not match 'weak_ptr<_Yp>' against 'float *'
 template<class _Yp> explicit shared_ptr(const weak_ptr<_Yp>& __r,
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3757:9: note: candidate template ignored: could not match 'unique_ptr<_Yp, _Dp>' against 'float *'
 shared_ptr(unique_ptr<_Yp, _Dp>&&,
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3766:9: note: candidate template ignored: could not match 'unique_ptr<_Yp, _Dp>' against 'float *'
 shared_ptr(unique_ptr<_Yp, _Dp>&&,
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3715:23: note: candidate constructor not viable: requires 1 argument, but 2 were provided
 _LIBCPP_CONSTEXPR shared_ptr(nullptr_t) _NOEXCEPT;
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3729:5: note: candidate constructor not viable: requires single argument '__r', but 2 arguments were provided
 shared_ptr(const shared_ptr& __r) _NOEXCEPT;
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3737:5: note: candidate constructor not viable: requires single argument '__r', but 2 arguments were provided
 shared_ptr(shared_ptr&& __r) _NOEXCEPT;
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3726:40: note: candidate constructor template not viable: requires 3 arguments, but 2 were provided
 template <class _Dp, class _Alloc> shared_ptr(nullptr_t __p, _Dp __d, _Alloc __a);
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3713:23: note: candidate constructor not viable: requires 0 arguments, but 2 were provided
 _LIBCPP_CONSTEXPR shared_ptr() _NOEXCEPT;
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3723:9: note: candidate constructor template not viable: requires at least 3 arguments, but 2 were provided
 shared_ptr(_Yp* __p, _Dp __d, _Alloc __a,
 ^
/mlperf/brucekk.kim/work/src/executorch/extension/tensor/test/tensor_ptr_test.cpp:931:28: error: no matching constructor for initialization of 'std::shared_ptr<float[]>'
 std::shared_ptr<float[]> data_ptr(
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3725:26: note: candidate constructor template not viable: no known conversion from 'float *' to 'std::nullptr_t' for 1st argument
 template <class _Dp> shared_ptr(nullptr_t __p, _Dp __d);
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3717:18: note: candidate template ignored: requirement 'is_convertible<float *, float (*)[]>::value' was not satisfied [with _Yp = float]
 explicit shared_ptr(_Yp* __p,
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3720:9: note: candidate template ignored: requirement 'is_convertible<float *, float (*)[]>::value' was not satisfied [with _Yp = float, _Dp = (lambda at /mlperf/brucekk.kim/work/src/executorch/extension/tensor/test/tensor_ptr_test.cpp:932:22)]
 shared_ptr(_Yp* __p, _Dp __d,
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3727:51: note: candidate template ignored: could not match 'shared_ptr<_Yp>' against 'float *'
 template<class _Yp> _LIBCPP_INLINE_VISIBILITY shared_ptr(const shared_ptr<_Yp>& __r, element_type* __p) _NOEXCEPT;
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3732:9: note: candidate template ignored: could not match 'shared_ptr<_Yp>' against 'float *'
 shared_ptr(const shared_ptr<_Yp>& __r,
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3738:52: note: candidate template ignored: could not match 'shared_ptr<_Yp>' against 'float *'
 template<class _Yp> _LIBCPP_INLINE_VISIBILITY shared_ptr(shared_ptr<_Yp>&& __r,
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3742:34: note: candidate template ignored: could not match 'weak_ptr<_Yp>' against 'float *'
 template<class _Yp> explicit shared_ptr(const weak_ptr<_Yp>& __r,
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3757:9: note: candidate template ignored: could not match 'unique_ptr<_Yp, _Dp>' against 'float *'
 shared_ptr(unique_ptr<_Yp, _Dp>&&,
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3766:9: note: candidate template ignored: could not match 'unique_ptr<_Yp, _Dp>' against 'float *'
 shared_ptr(unique_ptr<_Yp, _Dp>&&,
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3715:23: note: candidate constructor not viable: requires 1 argument, but 2 were provided
 _LIBCPP_CONSTEXPR shared_ptr(nullptr_t) _NOEXCEPT;
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3729:5: note: candidate constructor not viable: requires single argument '__r', but 2 arguments were provided
 shared_ptr(const shared_ptr& __r) _NOEXCEPT;
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3737:5: note: candidate constructor not viable: requires single argument '__r', but 2 arguments were provided
 shared_ptr(shared_ptr&& __r) _NOEXCEPT;
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3726:40: note: candidate constructor template not viable: requires 3 arguments, but 2 were provided
 template <class _Dp, class _Alloc> shared_ptr(nullptr_t __p, _Dp __d, _Alloc __a);
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3713:23: note: candidate constructor not viable: requires 0 arguments, but 2 were provided
 _LIBCPP_CONSTEXPR shared_ptr() _NOEXCEPT;
 ^
/mlperf/brucekk.kim/work/src/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3723:9: note: candidate constructor template not viable: requires at least 3 arguments, but 2 were provided
 shared_ptr(_Yp* __p, _Dp __d, _Alloc __a,
 ^
1 error generated.
gmake[2]: *** [extension/tensor/test/CMakeFiles/extension_tensor_test.dir/build.make:79: extension/tensor/test/CMakeFiles/extension_tensor_test.dir/tensor_ptr_maker_test.cpp.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
2 errors generated.
gmake[2]: *** [extension/tensor/test/CMakeFiles/extension_tensor_test.dir/build.make:93: extension/tensor/test/CMakeFiles/extension_tensor_test.dir/tensor_ptr_test.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:3912: extension/tensor/test/CMakeFiles/extension_tensor_test.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2

Versions

  • Versions
Collecting environment information...
PyTorch version: 2.10.0.dev20251015+cpu
Is debug build: False
CUDA used to build PyTorch: Could not collect
ROCM used to build PyTorch: N/A
OS: Ubuntu 22.04.5 LTS (x86_64)
GCC version: (Ubuntu 11.4.0-1ubuntu1~22.04.2) 11.4.0
Clang version: 14.0.0-1ubuntu1.1
CMake version: version 3.31.6
Libc version: glibc-2.35
Python version: 3.10.0 (default, Mar 3 2022, 09:58:08) [GCC 7.5.0] (64-bit runtime)
Python platform: Linux-3.10.0-1160.el7.x86_64-x86_64-with-glibc2.35
Is CUDA available: False
CUDA runtime version: 11.5.119
CUDA_MODULE_LOADING set to: N/A
GPU models and configuration: Could not collect
Nvidia driver version: Could not collect
cuDNN version: Could not collect
Is XPU available: False
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True
CPU:
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Address sizes: 46 bits physical, 48 bits virtual
Byte Order: Little Endian
CPU(s): 56
On-line CPU(s) list: 0-55
Vendor ID: GenuineIntel
Model name: Intel(R) Xeon(R) Gold 6132 CPU @ 2.60GHz
CPU family: 6
Model: 85
Thread(s) per core: 2
Core(s) per socket: 14
Socket(s): 2
Stepping: 4
CPU max MHz: 3700.0000
CPU min MHz: 1000.0000
BogoMIPS: 5200.00
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb cat_l3 cdp_l3 invpcid_single intel_ppin intel_pt ssbd mba ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm mpx rdt_a avx512f avx512dq rdseed adx smap clflushopt clwb avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida arat pln pts pku ospke md_clear spec_ctrl intel_stibp flush_l1d
Virtualization: VT-x
L1d cache: 896 KiB (28 instances)
L1i cache: 896 KiB (28 instances)
L2 cache: 28 MiB (28 instances)
L3 cache: 38.5 MiB (2 instances)
NUMA node(s): 2
NUMA node0 CPU(s): 0-13,28-41
NUMA node1 CPU(s): 14-27,42-55
Versions of relevant libraries:
[pip3] executorch==1.1.0a0+5d71c9b
[pip3] numpy==2.2.6
[pip3] onnx==1.19.0
[pip3] onnx_graphsurgeon==0.5.8
[pip3] pytorch_tokenizers==0.1.0
[pip3] torch==2.10.0.dev20251015+cpu
[pip3] torchao==0.14.0+gitf1acc1e2a
[pip3] torchaudio==2.8.0.dev20251015+cpu
[pip3] torchdata==0.11.0
[pip3] torchsr==1.0.4
[pip3] torchtune==0.6.1
[pip3] torchvision==0.25.0.dev20251015+cpu
[conda] executorch 1.1.0a0+5d71c9b pypi_0 pypi
[conda] numpy 2.2.6 pypi_0 pypi
[conda] pytorch-tokenizers 0.1.0 pypi_0 pypi
[conda] torch 2.10.0.dev20251015+cpu pypi_0 pypi
[conda] torchao 0.14.0+gitf1acc1e2a pypi_0 pypi
[conda] torchaudio 2.8.0.dev20251015+cpu pypi_0 pypi
[conda] torchdata 0.11.0 pypi_0 pypi
[conda] torchsr 1.0.4 pypi_0 pypi
[conda] torchtune 0.6.1 pypi_0 pypi
[conda] torchvision 0.25.0.dev20251015+cpu pypi_0 pypi

Metadata

Metadata

Assignees

Labels

module: samsung triagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

Type

No type

Projects

No projects

Milestone

No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      AltStyle によって変換されたページ (->オリジナル) /