Skip to content

Update test_torch_deploy - #62838

Closed
tktrungna wants to merge 12 commits into
gh/tktrungna/10/basefrom
gh/tktrungna/10/head
Closed

tktrungna wants to merge 12 commits into
gh/tktrungna/10/basefrom
gh/tktrungna/10/head

Conversation

@tktrungna

@tktrungna tktrungna commented Aug 5, 2021 •

Copy link
Copy Markdown
Contributor

Fixes #62380

Test plan

check if all ci workflows pass

Stack from ghstack:

Differential Revision: D30193141

[ghstack-poisoned]
@facebook-github-bot

facebook-github-bot commented Aug 5, 2021 •

Copy link
Copy Markdown
Contributor

🔗 Helpful links

💊 CI failures summary and remediations

As of commit cd915eb (more details on the Dr. CI page):


  • 12/12 failures possibly* introduced in this PR
    • 1/12 non-scanned failure(s)

🕵️ 2 new failures recognized by patterns

The following CI failures do not appear to be due to upstream breakages:

See CircleCI build binary_linux_libtorch_3_7m_cpu_devtoolset7_shared-with-deps_build (1/2)

Step: "Build" (full log | diagnosis details | 🔁 rerun)

FAILED: lib/libtorch_cpu.so
[5654/6036] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_ir.cpp.o
[5655/6036] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_irparser.cpp.o
[5656/6036] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_graph_executor.cpp.o
[5657/6036] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_graph_iterator.cpp.o
[5658/6036] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_mobile_type_parser.cpp.o
[5659/6036] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_custom_class_registrations.cpp.o
[5660/6036] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_jit_type.cpp.o
[5661/6036] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_qualified_name.cpp.o
[5662/6036] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_memory_dag.cpp.o
[5663/6036] Linking CXX shared library lib/libtorch_cpu.so
FAILED: lib/libtorch_cpu.so 
: && /opt/rh/devtoolset-7/root/usr/bin/c++ -fPIC -Wno-deprecated-declarations -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -DNDEBUG -DUSE_KINETO -DLIBKINETO_NOCUPTI -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -O2 -fPIC -Wno-narrowing -Wall -Wextra -Werror=return-type -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-unused-local-typedefs -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-psabi -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Wno-stringop-overflow -DHAVE_AVX2_CPU_DEFINITION -O2 -DNDEBUG -DNDEBUG  -Wl,--no-as-needed -rdynamic -fuse-ld=gold  -Wl,--version-script=/pytorch/caffe2/version_script.lds -shared -Wl,-soname,libtorch_cpu.so -o lib/libtorch_cpu.so caffe2/quantization/server/CMakeFiles/caffe2_dnnlowp_avx2_ops.dir/elementwise_sum_dnnlowp_op_avx2.cc.o caffe2/quantization/server/CMakeFiles/caffe2_dnnlowp_avx2_ops.dir/fully_connected_fake_lowp_op_avx2.cc.o caffe2/quantization/server/CMakeFiles/caffe2_dnnlowp_avx2_ops.dir/group_norm_dnnlowp_op_avx2.cc.o caffe2/quantization/server/CMakeFiles/caffe2_dnnlowp_avx2_ops.dir/pool_dnnlowp_op_avx2.cc.o caffe2/quantization/server/CMakeFiles/caffe2_dnnlowp_avx2_ops.dir/relu_dnnlowp_op_avx2.cc.o caffe2/quantization/server/CMakeFiles/caffe2_dnnlowp_avx2_ops.dir/spatial_batch_norm_dnnlowp_op_avx2.cc.o caffe2/quantization/server/CMakeFiles/caffe2_dnnlowp_avx2_ops.dir/transpose.cc.o caffe2/quantization/server/CMakeFiles/caffe2_dnnlowp_avx2_ops.dir/norm_minimization_avx2.cc.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/AccumulateType.cpp.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/BatchedFallback.cpp.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/BatchedTensorImpl.cpp.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/BatchingRegistrations.cpp.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/CPUGeneratorImpl.cpp.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/ConjugateFallback.cpp.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/Context.cpp.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/DLConvertor.cpp.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/DynamicLibrary.cpp.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/ExpandUtils.cpp.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/MapAllocator.cpp.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/MemoryOverlap.cpp.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/NamedTensorUtils.cpp.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/ParallelCommon.cpp.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/ParallelNative.cpp.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/ParallelNativeTBB.cpp.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/ParallelOpenMP.cpp.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/ParallelThreadPoolNative.cpp.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/ScalarOps.cpp.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/SequenceNumber.cpp.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/SparseCsrTensorImpl.cpp.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/SparseTensorImpl.cpp.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/SparseTensorUtils.cpp.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/TensorGeometry.cpp.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/TensorIndexing.cpp.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/TensorIterator.cpp.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/TensorMeta.cpp.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/TensorNames.cpp.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/TensorUtils.cpp.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/ThreadLocalState.cpp.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/Utils.cpp.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/Version.cpp.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/VmapMode.cpp.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/VmapModeRegistrations.cpp.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/VmapTransforms.cpp.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/autocast_mode.cpp.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/cpu/FlushDenormal.cpp.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/detail/CPUGuardImpl.cpp.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/detail/CUDAHooksInterface.cpp.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/detail/HIPHooksInterface.cpp.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/detail/MetaGuardImpl.cpp.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/record_function.cpp.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/core/ATenGeneral.cpp.o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/core/Backend
/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld.gold: internal error in override_version, at resolve.cc:61
collect2: error: ld returned 1 exit status
[5664/6036] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_peephole_optimize.cpp.o
[5665/6036] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_cs_debug_info_serialization.cpp.o
[5666/6036] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_interface.cpp.o
[5667/6036] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_subgraph_matcher.cpp.o
[5668/6036] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_interpreter.cpp.o
[5669/6036] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_jit_logging_levels.cpp.o
[5670/6036] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_subgraph_utils.cpp.o

See CircleCI build binary_windows_wheel_3_7_cu102_build (2/2)

Step: "Build" (full log | diagnosis details | 🔁 rerun)

CUDA 10.2 installed failed.
C:\w\b>set "CUDA_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2" 

C:\w\b>set "CUDA_PATH_V10_2=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2" 

C:\w\b>set "NVTOOLSEXT_PATH=C:\Program Files\NVIDIA Corporation\NvToolsExt" 

C:\w\b>if not exist "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\bin\nvcc.exe" (
echo CUDA 10.2 installed failed.  
 exit /b 1 
) 
CUDA 10.2 installed failed.

C:\w\b>if errorlevel 1 exit /b 1 


Exited with code exit status 1


9 failures not recognized by patterns:

Job Step Action
CircleCI pytorch_linux_bionic_py3_6_clang9_noarch_test Run tests 🔁 rerun
CircleCI pytorch_linux_xenial_cuda11_1_cudnn8_py3_gcc7_test2 Run tests 🔁 rerun
CircleCI pytorch_linux_bionic_cuda10_2_cudnn7_py3_9_gcc7_test1 Run tests 🔁 rerun
CircleCI pytorch_cpp_doc_build Doc Build and Push 🔁 rerun
CircleCI pytorch_linux_xenial_cuda11_1_cudnn8_py3_gcc7_test1 Run tests 🔁 rerun
CircleCI pytorch_linux_xenial_py3_6_gcc5_4_test Run tests 🔁 rerun
CircleCI pytorch_linux_bionic_cuda10_2_cudnn7_py3_9_gcc7_test2 Run tests 🔁 rerun
CircleCI pytorch_linux_xenial_py3_clang7_asan_test2 Run tests 🔁 rerun
CircleCI pytorch_linux_xenial_py3_clang7_asan_test1 Run tests 🔁 rerun

ci.pytorch.org: 1 failed


This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions to the (internal) Dr. CI Users group.

Click here to manually regenerate this comment.

tktrungna added a commit that referenced this pull request Aug 5, 2021
ghstack-source-id: 8b414b2
Pull Request resolved: #62838
tktrungna added a commit that referenced this pull request Aug 8, 2021
ghstack-source-id: 7151db6
Pull Request resolved: #62838
tktrungna added a commit that referenced this pull request Aug 9, 2021
ghstack-source-id: efa61eb
Pull Request resolved: #62838
tktrungna added a commit that referenced this pull request Aug 9, 2021
ghstack-source-id: be62180
Pull Request resolved: #62838
tktrungna added a commit that referenced this pull request Aug 9, 2021
ghstack-source-id: 0174dc7
Pull Request resolved: #62838
tktrungna added a commit that referenced this pull request Aug 9, 2021
ghstack-source-id: 201eca0
Pull Request resolved: #62838
@tktrungna
tktrungna requested a review from a team August 9, 2021 15:50
@tktrungna

Copy link
Copy Markdown
Contributor Author

@tktrungna has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Fixes #62380

* update test functions to call wheel install folder {sitepackages}/torch instead of build/ folder
* add symbolic link for shared libraries which are called by the tests (this is a bit hacky and should be fixed the rpath before compiling -- similar to https://github.com/pytorch/pytorch/blob/master/.jenkins/pytorch/test.sh#L204-L208).

### Test plan
check if all ci workflows pass


Differential Revision: [D30193141](https://our.internmc.facebook.com/intern/diff/D30193141)

[ghstack-poisoned]
Fixes #62380

* update test functions to call wheel install folder {sitepackages}/torch instead of build/ folder
* add symbolic link for shared libraries which are called by the tests (this is a bit hacky and should be fixed the rpath before compiling -- similar to https://github.com/pytorch/pytorch/blob/master/.jenkins/pytorch/test.sh#L204-L208).

### Test plan
check if all ci workflows pass


Differential Revision: [D30193141](https://our.internmc.facebook.com/intern/diff/D30193141)

[ghstack-poisoned]
@tktrungna

Copy link
Copy Markdown
Contributor Author

@tktrungna has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Fixes #62380

* update test functions to call wheel install folder {sitepackages}/torch instead of build/ folder
* add symbolic link for shared libraries which are called by the tests (this is a bit hacky and should be fixed the rpath before compiling -- similar to https://github.com/pytorch/pytorch/blob/master/.jenkins/pytorch/test.sh#L204-L208).

### Test plan
check if all ci workflows pass


Differential Revision: [D30193141](https://our.internmc.facebook.com/intern/diff/D30193141)

[ghstack-poisoned]
tktrungna added a commit that referenced this pull request Aug 10, 2021
ghstack-source-id: b2b2674
Pull Request resolved: #62838
Fixes #62380

* update test functions to call wheel install folder {sitepackages}/torch instead of build/ folder
* add symbolic link for shared libraries which are called by the tests (this is a bit hacky and should be fixed the rpath before compiling -- similar to https://github.com/pytorch/pytorch/blob/master/.jenkins/pytorch/test.sh#L204-L208).

### Test plan
check if all ci workflows pass


Differential Revision: [D30193141](https://our.internmc.facebook.com/intern/diff/D30193141)

[ghstack-poisoned]
tktrungna added a commit that referenced this pull request Aug 10, 2021
ghstack-source-id: bf188b6
Pull Request resolved: #62838
@tktrungna

Copy link
Copy Markdown
Contributor Author

@tktrungna has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Fixes #62380

* update test functions to call wheel install folder {sitepackages}/torch instead of build/ folder
* add symbolic link for shared libraries which are called by the tests (this is a bit hacky and should be fixed the rpath before compiling -- similar to https://github.com/pytorch/pytorch/blob/master/.jenkins/pytorch/test.sh#L204-L208).

### Test plan
check if all ci workflows pass


Differential Revision: [D30193141](https://our.internmc.facebook.com/intern/diff/D30193141)

[ghstack-poisoned]
tktrungna added a commit that referenced this pull request Aug 10, 2021
ghstack-source-id: fac794f
Pull Request resolved: #62838
@tktrungna

Copy link
Copy Markdown
Contributor Author

@tktrungna has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@tktrungna merged this pull request in f307120.

@facebook-github-bot
facebook-github-bot deleted the gh/tktrungna/10/head branch August 14, 2021 14:18
alanwaketan pushed a commit that referenced this pull request Aug 17, 2021
Summary:
Pull Request resolved: #62838

Fixes #62380

* update test functions to call wheel install folder {sitepackages}/torch instead of build/ folder
* add symbolic link for shared libraries which are called by the tests (this is a bit hacky and should be fixed the rpath before compiling -- similar to https://github.com/pytorch/pytorch/blob/master/.jenkins/pytorch/test.sh#L204-L208).

### Test plan
check if all ci workflows pass

Test Plan: Imported from OSS

Reviewed By: walterddr

Differential Revision: D30193141

Pulled By: tktrungna

fbshipit-source-id: 72c2bd3a740fca0f72e4803df505240193692c44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants