Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python setup.py clean does not fully clean up build folder #73

Open
another-pjohnson opened this issue Mar 31, 2022 · 0 comments
Open

Comments

@another-pjohnson
Copy link

Building with

python setup.py install --cpp_ext --cuda_ext

leaves the following artifacts in the build directory:

bdist.linux-x86_64  lib.linux-x86_64-3.10  temp.linux-x86_64-3.10

cleaning the the build with

python setup.py clean

results in the following output:

...
running clean
removing 'build/temp.linux-x86_64-3.10' (and everything under it)

this leaves the following artifacts in the build directory:

bdist.linux-x86_64  lib.linux-x86_64-3.10

I discovered this problem by first building apex with rocm 5.0.2, cleaning apex using python setup.py clean, then re-building with rocm 4.5.2, and discovering that there was an import error when running the following line:

>>> from apex.multi_tensor_apply import multi_tensor_applier
>>> multi_tensor_applier.available
False
>>> multi_tensor_applier.import_err
ImportError('libamdhip64.so.5: cannot open shared object file: No such file or directory')

rocm 4.5.2 has libamdhip64.so.4 and rocm 5.0.2 has libamdhip64.so.5

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

No branches or pull requests

1 participant