Skip to content

update test_rpc - #62781

Closed
tktrungna wants to merge 11 commits into
gh/tktrungna/5/basefrom
gh/tktrungna/5/head
Closed

tktrungna wants to merge 11 commits into
gh/tktrungna/5/basefrom
gh/tktrungna/5/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: D30124391

[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 0d7b31a (more details on the Dr. CI page):


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

🕵️ 1 new failure 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/1)

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

FAILED: lib/libtorch_cpu.so
[5656/6036] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_mobile_type_parser.cpp.o
[5657/6036] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_jit_type.cpp.o
[5658/6036] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_custom_class_registrations.cpp.o
[5659/6036] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_qualified_name.cpp.o
[5660/6036] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_memory_dag.cpp.o
[5661/6036] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_graph_executor.cpp.o
[5662/6036] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_graph_iterator.cpp.o
[5663/6036] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_peephole_optimize.cpp.o
[5664/6036] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_cs_debug_info_serialization.cpp.o
[5665/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
[5666/6036] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_interpreter.cpp.o
[5667/6036] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_interface.cpp.o
[5668/6036] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_subgraph_utils.cpp.o
[5669/6036] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_schema_matching.cpp.o
[5670/6036] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_jit_logging_levels.cpp.o
[5671/6036] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_subgraph_matcher.cpp.o
[5672/6036] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_subgraph_rewriter.cpp.o

9 failures not recognized by patterns:

Job Step Action
CircleCI pytorch_linux_xenial_py3_6_gcc5_4_test Run tests 🔁 rerun
CircleCI pytorch_linux_bionic_py3_6_clang9_noarch_test Report results 🔁 rerun
CircleCI pytorch_linux_xenial_cuda11_1_cudnn8_py3_gcc7_test1 Run tests 🔁 rerun
CircleCI pytorch_linux_bionic_cuda10_2_cudnn7_py3_9_gcc7_test2 Run tests 🔁 rerun
CircleCI pytorch_linux_xenial_py3_clang7_asan_test1 Run tests 🔁 rerun
CircleCI pytorch_linux_xenial_py3_clang7_asan_test2 Run tests 🔁 rerun
CircleCI pytorch_cpp_doc_build Doc Build and Push 🔁 rerun
CircleCI pytorch_linux_bionic_cuda10_2_cudnn7_py3_9_gcc7_test1 Run tests 🔁 rerun
CircleCI pytorch_linux_xenial_cuda11_1_cudnn8_py3_gcc7_test2 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: c0fc6bc
Pull Request resolved: #62781
[ghstack-poisoned]
@tktrungna tktrungna mentioned this pull request Aug 5, 2021
@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.

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

This was referenced Aug 5, 2021
@tktrungna
tktrungna requested review from a team, janeyx99 and walterddr August 9, 2021 15:49
@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.

@janeyx99 janeyx99 assigned pytorchbot and unassigned pytorchbot Aug 9, 2021
@janeyx99

janeyx99 commented Aug 9, 2021

Copy link
Copy Markdown
Contributor

I added the master workflow just in case--especially as it seems test_rpc is only run for non-shard jobs, and the nonsharded jobs we have on PRs are CPU only.

@janeyx99

janeyx99 commented Aug 9, 2021

Copy link
Copy Markdown
Contributor

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: [D30124391](https://our.internmc.facebook.com/intern/diff/D30124391)

[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: [D30124391](https://our.internmc.facebook.com/intern/diff/D30124391)

[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: [D30124391](https://our.internmc.facebook.com/intern/diff/D30124391)

[ghstack-poisoned]
Comment thread .jenkins/pytorch/test.sh
Comment on lines +319 to +321
ln -sf "$TORCH_LIB_DIR"/libtorch* "$TORCH_BIN_DIR"
ln -sf "$TORCH_LIB_DIR"/libc10* "$TORCH_BIN_DIR"
ln -sf "$TORCH_LIB_DIR"/libtbb* "$TORCH_BIN_DIR"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Wondering if there's way that we can notify people if they build more binaries that need to be included for test

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I am struggling with this part too, as adding sym links doesn't seem to be an intuitive way to write test (as one may expect the executable file under installed bin to find the shared library in lib). Not sure this one https://gitlab.kitware.com/cmake/community/-/wikis/doc/cmake/RPATH-handling is a good reference but I will create an issue to follow up this part

@zhouzhuojie zhouzhuojie left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm, CI is green

@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: [D30124391](https://our.internmc.facebook.com/intern/diff/D30124391)

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

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@tktrungna merged this pull request in 25c3b9d.

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

Test Plan: Imported from OSS

Reviewed By: walterddr, zhouzhuojie

Differential Revision: D30124391

Pulled By: tktrungna

fbshipit-source-id: 99c275d6c9f23b4f274fd0ca19a16879ed27afd5
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.

6 participants