benfred / py-spy

Sampling profiler for Python programs
MIT License
12.14k stars 400 forks source link

Question: any workaround for profiling on GPU-renting services? #611

Open ArthurConmy opened 9 months ago

ArthurConmy commented 9 months ago

Currently the best GPU rental sites I know of are vast.ai/runpod (LambdaLabs rarely has availability of good GPUs)

Both of these services use Docker containers, allow custom docker containers, but don't support --cap-add sys_ptrace.

For example, this 2022 message from vast admins clarifies that the ADD_PTRACE option is not allowed: image

Given the constraints of what runpod and vast allow, is there any workaround for using py-spy with their GPUs? Thanks!