ctuning / ck-request-asplos18-mobilenets-tvm-arm

CK workflow, portable packages and other artifacts for the ReQuEST-ASPLOS'18 submission:
http://cknowledge.org/request-cfp-asplos2018.html
Other
11 stars 1 forks source link

Troubles when installing on Hikey #9

Closed Chunosov closed 6 years ago

Chunosov commented 6 years ago
Chunosov commented 6 years ago

to 1) seems opencv is not required by the library itself, it only mentioned in comments:

nchunosov@hikey962:~/CK-TOOLS/mxnet-cpu-gcc-7.2.0-linux-64/src/python$ grep -rn '.' -e 'opencv'
./mxnet/image/image.py:201:        http://docs.opencv.org/master/da/d54/group__imgproc__transform.html.
./mxnet/image/image.py:264:        http://docs.opencv.org/master/da/d54/group__imgproc__transform.html.
Binary file ./mxnet/image/image.pyc matches

Besides, it is and an odd dependency, we can't install mxnet on hikey because of it. There is no opencv-python package for aarch64.

to 2) grep -rn '.' -e 'jupiter' gives no results at all

But it is a pretty large package and takes a quite while for installation.

Chunosov commented 6 years ago

to 3) there is some hack about importing requests in the library:

try:
    import requests
except ImportError:
    class requests_failed_to_import(object):
        pass
    requests = requests_failed_to_import

but we really need this package in order to install mxnetmodels. Now we have do manually pip install requests before ck install mxnetmodel-mobilenet-1.0

Chunosov commented 6 years ago

to 4) now we can't clone nnvm package from master branch because they've removed the required commit of tvm submodule (?!):

Cloning package from https://github.com/dmlc/nnvm.git/ ...
Cloning into 'src'...
remote: Counting objects: 3900, done.
remote: Total 3900 (delta 0), reused 0 (delta 0), pack-reused 3900
Receiving objects: 100% (3900/3900), 1.16 MiB | 1.69 MiB/s, done.
Resolving deltas: 100% (2354/2354), done.
Submodule 'dmlc-core' (https://github.com/dmlc/dmlc-core) registered for path 'dmlc-core'
Submodule 'tvm' (https://github.com/dmlc/tvm) registered for path 'tvm'
Cloning into '/home/nchunosov/CK-TOOLS/lib-tvm-nnvm-llvm-6.0.0-linux-64/src/dmlc-core'...
remote: Counting objects: 5103, done.        
remote: Compressing objects: 100% (37/37), done.        
remote: Total 5103 (delta 40), reused 60 (delta 35), pack-reused 5031        
Receiving objects: 100% (5103/5103), 1.26 MiB | 1.73 MiB/s, done.
Resolving deltas: 100% (3065/3065), done.
Cloning into '/home/nchunosov/CK-TOOLS/lib-tvm-nnvm-llvm-6.0.0-linux-64/src/tvm'...
remote: Counting objects: 23597, done.        
remote: Compressing objects: 100% (14/14), done.        
remote: Total 23597 (delta 3), reused 2 (delta 2), pack-reused 23581        
Receiving objects: 100% (23597/23597), 6.83 MiB | 3.72 MiB/s, done.
Resolving deltas: 100% (15474/15474), done.
Submodule path 'dmlc-core': checked out '42823a731bdb2c22aa44775c0937466046400c02'
error: no such remote ref 4472b078d0abb20ff7f7bdab5ef2e42c33e90f87
Fetched in submodule path 'tvm', but it did not contain 4472b078d0abb20ff7f7bdab5ef2e42c33e90f87. Direct fetching of that commit failed.
Error: git cloning failed!
Chunosov commented 6 years ago

1) fixed here https://github.com/ctuning/ck-mxnet/pull/1 2) stayed as it was for now 3) fixed here https://github.com/ctuning/ck-mxnet/pull/1

Chunosov commented 6 years ago
  1. fixed by this https://github.com/ctuning/ck-tvm/pull/1 and this https://github.com/ctuning/ck-request-asplos18-mobilenets-tvm-arm/pull/10