Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Enable tvm_op for ci #15889

Merged
merged 21 commits into from
Sep 5, 2019
Merged

Enable tvm_op for ci #15889

merged 21 commits into from
Sep 5, 2019

Conversation

yzhliu
Copy link
Member

@yzhliu yzhliu commented Aug 14, 2019

Description

(Brief description on what this PR is about)

Checklist

Essentials

Please feel free to remove inapplicable items for your PR.

  • The PR title starts with [MXNET-$JIRA_ID], where $JIRA_ID refers to the relevant JIRA issue created (except PRs with tiny changes)
  • Changes are complete (i.e. I finished coding on this PR)
  • All changes have test coverage:
  • Unit tests are added for small changes to verify correctness (e.g. adding a new operator)
  • Nightly tests are added for complicated/long-running ones (e.g. changing distributed kvstore)
  • Build tests will be added for build configuration changes (e.g. adding a new build option with NCCL)
  • Code is well-documented:
  • For user-facing API changes, API doc string has been updated.
  • For new C++ functions in header files, their functionalities and arguments are documented.
  • For new examples, README.md is added to explain the what the example does, the source of the dataset, expected performance on test set and reference to the original paper if applicable
  • Check the API doc at http://mxnet-ci-doc.s3-accelerate.dualstack.amazonaws.com/PR-$PR_ID/$BUILD_ID/index.html
  • To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

Changes

  • Feature1, tests, (and when applicable, API doc)
  • Feature2, tests, (and when applicable, API doc)

Comments

  • If this change is a backward incompatible change, why must this change be made.
  • Interesting edge cases to note here

@@ -24,14 +24,13 @@

@with_seed()
def test_tvm_broadcast_add():
if _features.is_enabled("TVM_OP"):
Copy link
Contributor

Choose a reason for hiding this comment

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

Lets keep that if possible

Copy link
Member Author

@yzhliu yzhliu Aug 16, 2019

Choose a reason for hiding this comment

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

yes I will, thanks for reminding. could you guide me where to pip install package in docker? ci failed with "ImportError: No module named 'decorator'" during compiling

@yzhliu yzhliu force-pushed the enable-tvm-op branch 3 times, most recently from 1da8878 to 51f09f9 Compare August 23, 2019 04:58
@yzhliu yzhliu force-pushed the enable-tvm-op branch 3 times, most recently from 9583719 to d1d1519 Compare August 26, 2019 20:57
@yzhliu yzhliu force-pushed the enable-tvm-op branch 2 times, most recently from c4b6891 to 741443f Compare August 27, 2019 22:03
@yzhliu
Copy link
Member Author

yzhliu commented Aug 30, 2019

@gigasquid Could you take a look at the following failure? I have no idea what does it mean.

:~/incubator-mxnet/contrib/clojure-package/examples/profiler/test$ lein test
INFO  MXNetJVM: Try loading mxnet-scala from native path.
WARN  MXNetJVM: MXNet Scala native library not found in path. Copying native library from the archive. Consider installing the library somewhere in the path (for Windows: PATH, for Linux: LD_LIBRARY_PATH), or specifying by Java cmd option -Djava.library.path=[lib path].
WARN  MXNetJVM: LD_LIBRARY_PATH=null
WARN  MXNetJVM: java.library.path=/usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib

lein test core_test
[18:10:20] src/executor/graph_executor.cc:2025: Subgraph backend MKLDNN is activated.

lein test :only core_test/run-profiler

FAIL in (run-profiler) (core_test.clj:30)
expected: (.exists new-file)
  actual: false

lein test :only core_test/run-profiler

FAIL in (run-profiler) (core_test.clj:31)
expected: (> 10000 (- (System/currentTimeMillis) (.lastModified new-file)))
  actual: (not (> 10000 1567188620414))

Ran 1 tests containing 2 assertions.
2 failures, 0 errors.
INFO  org.apache.mxnet.util.NativeLibraryLoader: Deleting /tmp/mxnet158431027493995547/mxnet-scala
INFO  org.apache.mxnet.util.NativeLibraryLoader: Deleting /tmp/mxnet158431027493995547/libtvm_runtime.so
INFO  org.apache.mxnet.util.NativeLibraryLoader: Deleting /tmp/mxnet158431027493995547/libmkldnn.so.0
INFO  org.apache.mxnet.util.NativeLibraryLoader: Deleting /tmp/mxnet158431027493995547/libiomp5.so
INFO  org.apache.mxnet.util.NativeLibraryLoader: Deleting /tmp/mxnet158431027493995547/libmxnet.so
INFO  org.apache.mxnet.util.NativeLibraryLoader: Deleting /tmp/mxnet158431027493995547/libmklml_intel.so
INFO  org.apache.mxnet.util.NativeLibraryLoader: Deleting /tmp/mxnet158431027493995547
Tests failed.

@gigasquid
Copy link
Member

@yzhliu Sure - I'll pull and take a look this weekend. The test is trying to see if the profiler is working by checking that it wrote a file. Not sure why it would fail.

@yzhliu
Copy link
Member Author

yzhliu commented Aug 30, 2019

Thanks @gigasquid I saw another PR also fails this test: #16046

@gigasquid gigasquid mentioned this pull request Aug 31, 2019
4 tasks
@gigasquid
Copy link
Member

@yzhliu I created a PR to fix the flaky test #16058. If you cherry pick it into your branch, it should resolve the issues. Please ping me if you have any other problems.

@yzhliu yzhliu force-pushed the enable-tvm-op branch 3 times, most recently from 1cc199c to e64c8ec Compare September 3, 2019 20:09
@yzhliu yzhliu changed the title [DO NOT MERGE] enable tvm_op for ci Enable tvm_op for ci Sep 4, 2019
@reminisce reminisce merged commit b7071c4 into apache:master Sep 5, 2019
gyshi pushed a commit to gyshi/incubator-mxnet that referenced this pull request Sep 7, 2019
* enable tvm_op for ci

* specify python3 bin

* move rpath to top

* move tvm op dep forward

* add ldd debug info

* add libtvm_runtime.so to mx_lib_cython

* add ldd debug for py3

* fix libtvm_runtime path for cmake

* cp libtvm_runtime.so when make rpkg

* add libtvm_runtime.so to scala-pkg

* add python3 to cmake in unix-gpu build

* hack: add cuda to ld_path in cmake

* add LD_LIBRARY_PATH into cmake tvm op

* add /usr/local/cuda/compat to Dockerfile.build.ubuntu_gpu_cu101 LD_LIBRARY_PATH

* remove unused codes

* remove USE_TVM_OP from build_ubuntu_cpu_large_tensor
gyshi pushed a commit to gyshi/incubator-mxnet that referenced this pull request Sep 7, 2019
* enable tvm_op for ci

* specify python3 bin

* move rpath to top

* move tvm op dep forward

* add ldd debug info

* add libtvm_runtime.so to mx_lib_cython

* add ldd debug for py3

* fix libtvm_runtime path for cmake

* cp libtvm_runtime.so when make rpkg

* add libtvm_runtime.so to scala-pkg

* add python3 to cmake in unix-gpu build

* hack: add cuda to ld_path in cmake

* add LD_LIBRARY_PATH into cmake tvm op

* add /usr/local/cuda/compat to Dockerfile.build.ubuntu_gpu_cu101 LD_LIBRARY_PATH

* remove unused codes

* remove USE_TVM_OP from build_ubuntu_cpu_large_tensor
@@ -80,3 +80,4 @@ RUN /work/ubuntu_adduser.sh
COPY runtime_functions.sh /work/

WORKDIR /work/mxnet
ENV LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/cuda/compat
Copy link
Contributor

Choose a reason for hiding this comment

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

@yzhliu what is the purpose and need of this line?

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

Successfully merging this pull request may close these issues.

6 participants