plasma-umass / scalene

Scalene: a high-performance, high-precision CPU, GPU, and memory profiler for Python with AI-powered optimization proposals
Apache License 2.0
12.16k stars 399 forks source link

Homebrew formula #29

Closed antonalekseev closed 4 years ago

antonalekseev commented 4 years ago

Hi, thanks for the great tool! I created Homebrew formula in order to make installation and usage on macOS more convenient which builds and installs libscalene.dylib along with the wrapper script:

#!/usr/bin/env sh

DYLD_INSERT_LIBRARIES=/usr/local/Cellar/libscalene/HEAD-e3cdcb7/lib/libscalene.dylib PYTHONMALLOC=malloc python -m scalene "$@"

Formula can be installed with:

$ brew tap antonalekseev/tap
$ brew install --head libscalene

and then used as simple as $ scalene test/testme.py

If you don't mind it can be placed in this repository in Formula directory in order to make it available for tapping with $ brew tap emeryberger/scalene, or just mentioned in the README with my tap as an installation option.

emeryberger commented 4 years ago

Cool! I'd gladly accept a PR for this!

emeryberger commented 4 years ago

Never mind, added myself. Thanks!!

emeryberger commented 4 years ago

See https://github.com/emeryberger/scalene/commit/ec8cfd9359329af8022a04a52533721d66cd726d