You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2022/03/24 10:43:34 UTC

[GitHub] [tvm] t-vi opened a new pull request #10758: Manually add libtorch op test

t-vi opened a new pull request #10758:
URL: https://github.com/apache/tvm/pull/10758


   We want the test to run in integration-gpu in the CI, but currently it is not picked up there and on the CPU, we do not have PyTorch. I would not know why it is not tried on the gpu-enabled CI run.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] t-vi commented on pull request #10758: Manually add libtorch op test

Posted by GitBox <gi...@apache.org>.
t-vi commented on pull request #10758:
URL: https://github.com/apache/tvm/pull/10758#issuecomment-1079213105


   So the PyTorch version we are using has the old, incompatible DLPack.
   Quite likely this means we cannot enable the libtorch op before we move to PyTorch 1.11.
   Would that be feasible?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] t-vi commented on pull request #10758: Manually add libtorch op test

Posted by GitBox <gi...@apache.org>.
t-vi commented on pull request #10758:
URL: https://github.com/apache/tvm/pull/10758#issuecomment-1084785479


   Awesome! Thank you!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] t-vi commented on pull request #10758: Manually add libtorch op test

Posted by GitBox <gi...@apache.org>.
t-vi commented on pull request #10758:
URL: https://github.com/apache/tvm/pull/10758#issuecomment-1079218790


   @masahi Do you think bumping to PyTorch 1.11 would be an option?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] masahi commented on pull request #10758: Manually add libtorch op test

Posted by GitBox <gi...@apache.org>.
masahi commented on pull request #10758:
URL: https://github.com/apache/tvm/pull/10758#issuecomment-1084380017


   I'm testing the new docker image in `ci-docker-staging`. I've hit an error from Keras twice https://ci.tlcpack.ai/blue/organizations/jenkins/tvm/detail/ci-docker-staging/242/pipeline/315, not sure if it is related or flaky. There is also an error from ONNX tests that use PyTorch.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] masahi commented on pull request #10758: Manually add libtorch op test

Posted by GitBox <gi...@apache.org>.
masahi commented on pull request #10758:
URL: https://github.com/apache/tvm/pull/10758#issuecomment-1086294177


   When we install torch via `pip install torch==1.11.0`, how do we know which cuda it was built against? Maybe we should explicitly specify the cuda version as in https://pytorch.org/ (`pip3 install torch -extra-index-url https://download.pytorch.org/whl/cu113`). But a better way is still to install a CPU-only version.
   
   Or we can try updating our NVIDIA container image to update cuda itself (we should do that anyway sooner or later). I don't know what process is required for that.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] masahi commented on pull request #10758: Manually add libtorch op test

Posted by GitBox <gi...@apache.org>.
masahi commented on pull request #10758:
URL: https://github.com/apache/tvm/pull/10758#issuecomment-1086274838


   No idea, this happens only when linked with `libtorch.so`, right?
   
   https://discuss.pytorch.org/t/building-pytorch-from-source-failed-on-ubuntu-16-04/43026 suggests our cuda install is broken, but since CI has passed with PT 1.11, I don't think that's the case.
   
   One thing that could be related is that our `ci-gpu` is using fairly old cuda - 11.0 according to https://github.com/apache/tvm/blob/main/docker/Dockerfile.ci_gpu#L20. Maybe this is incompatible with the latest `libtorch.so`? Even if that's the case, I don't get why we didn't get any errors on the CI test.
   
   In the worst case, we can install CPU-version of PT, since we don't need cuda capability for CI purpose.  
   
   cc @driazati 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] t-vi commented on pull request #10758: Manually add libtorch op test

Posted by GitBox <gi...@apache.org>.
t-vi commented on pull request #10758:
URL: https://github.com/apache/tvm/pull/10758#issuecomment-1079213678


   For context: https://github.com/pytorch/pytorch/issues/64995


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] t-vi commented on pull request #10758: Manually add libtorch op test

Posted by GitBox <gi...@apache.org>.
t-vi commented on pull request #10758:
URL: https://github.com/apache/tvm/pull/10758#issuecomment-1086276480


   So I wonder if it's that libtorch and tvm try to link to different versions of libcuda...


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] t-vi commented on pull request #10758: Manually add libtorch op test

Posted by GitBox <gi...@apache.org>.
t-vi commented on pull request #10758:
URL: https://github.com/apache/tvm/pull/10758#issuecomment-1086493048


   > How do we know which cuda it was built against?
   I think mostly from looking at the CUDA version it advertises on https://pytorch.org/get-started/locally/ (for the current PyTorch CUDA 10.2).
   If the problem is only when linking libtvm and libtorch, a CPU-only PyTorch could solve this or maybe just finding a PyTorch enabled CPU instance to build the fallback and run this test on.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] driazati commented on a change in pull request #10758: Manually add libtorch op test

Posted by GitBox <gi...@apache.org>.
driazati commented on a change in pull request #10758:
URL: https://github.com/apache/tvm/pull/10758#discussion_r835423033



##########
File path: tests/scripts/task_config_build_gpu.sh
##########
@@ -48,3 +48,4 @@ echo set\(USE_LIBBACKTRACE AUTO\) >> config.cmake
 echo set\(USE_CCACHE OFF\) >> config.cmake
 echo set\(SUMMARIZE ON\) >> config.cmake
 echo set\(HIDE_PRIVATE_SYMBOLS ON\) >> config.cmake
+echo set\(USE_LIBTORCH $(python -c "import os.path, torch ; print(os.path.dirname(torch.__file__))")\) >> config.cmake

Review comment:
       ```suggestion
   echo set\(USE_LIBTORCH $(python3 -c "import os.path, torch ; print(os.path.dirname(torch.__file__))")\) >> config.cmake
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] t-vi commented on pull request #10758: Manually add libtorch op test

Posted by GitBox <gi...@apache.org>.
t-vi commented on pull request #10758:
URL: https://github.com/apache/tvm/pull/10758#issuecomment-1084477549


   The keras looks like it's some compat-breaking change somewhere, I don't know if we accidentally (or intentionally) upgraded that...
   
   I'll check the ONNX change, maybe the input has been renamed (I'm not sure that they would be terribly stable unless specified), but likely not before tomorrow.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] masahi commented on pull request #10758: Manually add libtorch op test

Posted by GitBox <gi...@apache.org>.
masahi commented on pull request #10758:
URL: https://github.com/apache/tvm/pull/10758#issuecomment-1084710458


   No worry, I fixed both issues and the test passed https://github.com/apache/tvm/tree/ci-docker-staging. I will send a pr tomorrow


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] t-vi commented on pull request #10758: Manually add libtorch op test

Posted by GitBox <gi...@apache.org>.
t-vi commented on pull request #10758:
URL: https://github.com/apache/tvm/pull/10758#issuecomment-1079610138


   I'm attempting to bump the version in #10794


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] t-vi edited a comment on pull request #10758: Manually add libtorch op test

Posted by GitBox <gi...@apache.org>.
t-vi edited a comment on pull request #10758:
URL: https://github.com/apache/tvm/pull/10758#issuecomment-1086493048


   > How do we know which cuda it was built against?
   
   I think mostly from looking at the CUDA version it advertises on https://pytorch.org/get-started/locally/ (for the current PyTorch CUDA 10.2).
   If the problem is only when linking libtvm and libtorch, a CPU-only PyTorch could solve this or maybe just finding a PyTorch enabled CPU instance to build the fallback and run this test on.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] masahi commented on pull request #10758: Manually add libtorch op test

Posted by GitBox <gi...@apache.org>.
masahi commented on pull request #10758:
URL: https://github.com/apache/tvm/pull/10758#issuecomment-1085964699


   #10849 was merged, this PR is finally unblocked now.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] t-vi commented on pull request #10758: Manually add libtorch op test

Posted by GitBox <gi...@apache.org>.
t-vi commented on pull request #10758:
URL: https://github.com/apache/tvm/pull/10758#issuecomment-1086262813


   ```
   [2022-04-01T19:22:29.075Z] /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libcuda.so: file not recognized: File truncated
   [2022-04-01T19:22:29.075Z] collect2: error: ld returned 1 exit status
   [2022-04-01T19:22:29.075Z] CMakeFiles/tvm_runtime.dir/build.make:253: recipe for target 'libtvm_runtime.so' failed
   [2022-04-01T19:22:29.075Z] make[2]: Leaving directory '/workspace/build'
   [2022-04-01T19:22:29.075Z] make[2]: *** [libtvm_runtime.so] Error 1
   ```
   
   any ideas what that could be about?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org