triton icon indicating copy to clipboard operation
triton copied to clipboard

how to clean up all builds?

Open Shoreshen opened this issue 1 year ago • 4 comments

Hi I just built triton with debug information and would like to debug.

But I found there is something wrong with the debug symbols since the break point cannot hit the right line

When I want to rebuild triton, I found that I may need to manually delete them according to gitignore.

Thus I would like to ask if there is a way to clean up all builds??

Shoreshen avatar Jul 03 '24 15:07 Shoreshen

I am not from the triton team, nor an expert here, but I am curious; is

$ rm -rf python/triton/_C/*.so   
$ rm -rf python/triton/build  

sufficient? or that is the manual steps that you are actually already doing?

dengl11 avatar Jul 18 '24 05:07 dengl11

I am not from the triton team, nor an expert here, but I am curious; is

$ rm -rf python/triton/_C/*.so   
$ rm -rf python/triton/build  

sufficient? or that is the manual steps that you are actually already doing?

there are something more based on gitignore

Shoreshen avatar Jul 18 '24 07:07 Shoreshen

Do you have a reproducable example (i.e. sequence of commands) that shows the change made is not reflected in the new build?

dengl11 avatar Jul 20 '24 18:07 dengl11

Do you have a reproducable example (i.e. sequence of commands) that shows the change made is not reflected in the new build?

From .gitignore, we can see the following:

# Triton builds
build/
build-*/

# Triton Python module builds
python/build/
python/dist/
python/triton*.egg-info/

python/triton/_C/*.pyd
python/triton/_C/*.so
python/triton/_C/*.dylib
...

So at lease python/triton/_C/*.so would not be removed.

I don't know the detail of building so it may have zero affect or not?

But just wondering, if I would like to clean all the stuff that is not in the repository, can I do it??

Shoreshen avatar Jul 22 '24 01:07 Shoreshen