Skip to content

update test_vulkan - #62795

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

tktrungna wants to merge 10 commits into
gh/tktrungna/7/basefrom
gh/tktrungna/7/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: D30124421

[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 7cb90bc (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 pytorch_paralleltbb_linux_xenial_py3_6_gcc5_4_test (1/2)

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

Aug 11 01:12:51 RuntimeError: test_quantization failed!
Aug 11 01:12:50 Generated XML report: test-reports/dist-gloo/test_quantization/TEST-quantization.core.test_quantized_op.TestQuantizedOps-20210811010409.xml
Aug 11 01:12:50 Generated XML report: test-reports/dist-gloo/test_quantization/TEST-quantization.core.test_quantized_tensor.TestQuantizedTensor-20210811010409.xml
Aug 11 01:12:50 Generated XML report: test-reports/dist-gloo/test_quantization/TEST-quantization.core.test_workflow_module.TestRecordHistogramObserver-20210811010409.xml
Aug 11 01:12:50 Generated XML report: test-reports/dist-gloo/test_quantization/TEST-quantization.bc.test_backward_compatibility.TestSerialization-20210811010409.xml
Aug 11 01:12:50 Generated XML report: test-reports/dist-gloo/test_quantization/TEST-quantization.core.test_quantized_module.TestStaticQuantizedModule-20210811010409.xml
Aug 11 01:12:51 Traceback (most recent call last):
Aug 11 01:12:51   File "test/run_test.py", line 1091, in <module>
Aug 11 01:12:51     main()
Aug 11 01:12:51   File "test/run_test.py", line 1070, in main
Aug 11 01:12:51     raise RuntimeError(err_message)
Aug 11 01:12:51 RuntimeError: test_quantization failed!
Aug 11 01:12:51 + cleanup
Aug 11 01:12:51 + retcode=1
Aug 11 01:12:51 + set +x
Aug 11 01:12:51 =================== sccache compilation log ===================
Aug 11 01:12:51 =========== If your build fails, please take a look at the log above for possible reasons ===========
Aug 11 01:12:51 Compile requests                      0
Aug 11 01:12:51 Compile requests executed             0
Aug 11 01:12:51 Cache hits                            0
Aug 11 01:12:51 Cache misses                          0
Aug 11 01:12:51 Cache timeouts                        0

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

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

FAILED: lib/libtorch_cpu.so
[5651/6036] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_custom_operators.cpp.o
[5652/6036] Building CXX object caffe2/CMakeFiles/caffe2_pybind11_state.dir/python/pybind_state.cc.o
[5653/6036] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_irparser.cpp.o
[5654/6036] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_backend.cpp.o
[5655/6036] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_jit_type.cpp.o
[5656/6036] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_ir.cpp.o
[5657/6036] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_mobile_type_parser.cpp.o
[5658/6036] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_qualified_name.cpp.o
[5659/6036] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_memory_dag.cpp.o
[5660/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
[5661/6036] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_custom_class_registrations.cpp.o
[5662/6036] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_graph_executor.cpp.o
[5663/6036] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_graph_iterator.cpp.o
[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_interface.cpp.o
[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_cs_debug_info_serialization.cpp.o

9 failures not recognized by patterns:

Job Step Action
CircleCI pytorch_linux_xenial_cuda11_1_cudnn8_py3_gcc7_test2 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_cpp_doc_build Doc Build and Push 🔁 rerun
CircleCI pytorch_linux_xenial_cuda11_1_cudnn8_py3_gcc7_test1 Run tests 🔁 rerun
CircleCI pytorch_linux_bionic_cuda10_2_cudnn7_py3_9_gcc7_test1 Run tests 🔁 rerun
CircleCI pytorch_linux_bionic_py3_6_clang9_noarch_test 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

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

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

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

[ghstack-poisoned]
Comment thread .jenkins/pytorch/test.sh
Comment on lines +281 to +282
ln -sf "$TORCH_LIB_DIR"/libtorch* "$TORCH_TEST_DIR"
ln -sf "$TORCH_LIB_DIR"/libc10* "$TORCH_TEST_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.

what's the source of getting to know which lib* to ln to the TEST_DIR?

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.

there maybe better approach but what I am doing now is reading ci failure logs

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.

I was wondering if we can simply just symlink everything?

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 thought about that but believe there should be a better way with cmake to let executable file looks for *.so files in the lib folder, so just leave to command here in this way to let it more trackable. Will create an issue to follow up soon

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

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

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

Test Plan: Imported from OSS

Reviewed By: driazati

Differential Revision: D30124421

Pulled By: tktrungna

fbshipit-source-id: 235ba166b02f7334e89cb2493024067851bf5b9b
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.

4 participants