-
-
Notifications
You must be signed in to change notification settings - Fork 399
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
sudo: scalene: command not found with run as Admin #700
Comments
Can you try |
I suspect it's a path issue. See https://unix.stackexchange.com/questions/83191/how-to-make-sudo-preserve-path. |
Thanks I will look into it. Meanwhile I was able to get past my previous error by running |
Can you try invoking Scalene with the |
I am able to run |
Similar issue. When ran as sudo it isn't picking up the Miniconda environment variables. No problems re-compiling a cypython for root that is same version as conda and perhaps with any frame pointers whatnot intact, but somehow telling python3 where to find the conda packages seems to be the main issue. https://github.com/python/cpython/tags |
Have you tried using a virtual environment ( |
Unfortunately the researchers who wrote the machine learning model did all their package management in conda. I could do something like this, but NVIDIA's documentation is horrid on GPU stack traces for flamegraphs. some_nvidia_profiler scalene program.py Strace is opaque, I can get the timestamps of GPU IO, but the GPU itself is a black box. https://poormansprofiler.org trick with cuda-dbg might work? --EDIT-- I need to know which tensor kernels are being selected by PyTorch and observe GPU memory that can be pinned to avoid IO between GPU calls. You can use zstd as a Kolmogrov estimator for difference between memory GPU memory dumps - it would even pick up large all-zero regions which don't need to go over the bus. |
Is there any update on this issue? It still exists and I'd like to know about the outcomes of not using sudo to do the profiling. Always getting the warning but can't solve it is upsetting. |
Please try this - install from the repo and then run the
|
Hi, thank you for the quick response! The script solves the problem and improves GPU inference time when using scalene greatly (about 3x)👍. For reference, since I'm using a conda environment my actual procedure is
And the script works well for me :-) |
I recently started getting this error. When I run my script using
scalene main.py
I get an errorNOTE: The GPU is currently running in a mode that can reduce Scalene's accuracy when reporting GPU utilization. Run once as Administrator or root (i.e., prefixed with
sudo) to enable per-process GPU accounting
and when I run
sudo scalene main.py
it errorssudo: scalene: command not found
I did try installing using (
python3 -m pip install git+https://github.com/plasma-umass/scalene
). It did not workThe text was updated successfully, but these errors were encountered: