rocmarchive / realcaffe2

The repo is obsolete. Use at your own risk.
https://github.com/pytorch/pytorch
Apache License 2.0
12 stars 2 forks source link

fix the path for libcaffe2_hip.so for python based tests #30

Closed petrex closed 6 years ago

petrex commented 6 years ago

when running python based tests:

WARNING:root:Debug message: ../lib/libcaffe2_hip.so: cannot open shared object file: No such file or directory

petrex commented 6 years ago

There is a hard coded path in the makefile (from upstream). We will not chaneg the upstream behavior as of now.

BKM on running python based tests:

http://confluence.amd.com/display/~afarmer/Caffe2+tests

  1. Before running the tests, make sure that the required environment variables are set: export PYTHONPATH=/usr/local:<caffe2_home>/build:$PYTHONPATH

  2. For more directed tests for the operators, we can use python tests: python -m caffe2.python.operator_test.<test>