[BUG] [Jetson Nano Conda install hangs on installing pip dependencies] #304
Comments
Upon trying to install the pip packages manually, I found that all of them are installed except for cupy>=8.0.0. When trying to install it manually using the pip binary from the environment, it hangs indefinitely while building the wheel for cupy. This might be the source of the issue, but I'm unsure what to do to build cupy for the aarch64 processor. Here is the line it hangs on: |
I've got scripts that install On the AGX-Xavier it takes almost 47 minutes to install
It is probably working - open another terminal on your Nano and do |
Hi @eldaromer -- thanks for submitting an issue to cuSignal, and thanks for the quick input, @znmeb! I'd like to echo Ed's comments and say that cupy takes a very long time to compile on the Jetson platform, particularly the Nano. I'd recommend retrying the cupy pip install before you go to bed and report back the status. I'm happy to work with the cupy developers to get this working if we uncover some Jetson/aarch64 specific issue! |
Hi all, a cupy guru here. Could you please set this env var
with |
Thanks for the info, Leo! I'll update our documentation to reflect this suggestion too. |
@znmeb @eldaromer Let us know if it helps reduce the compilation time. |
@leofang I have set the environment variable as instructed before with the compute capability set to 53 for the Jetson Nano. I am currently running the cupy install again, and I'm timing how long it takes. I will keep you updated. Creating a pre built wheel for the Nano as mentioned in a new issue above would be of great utility. |
Ok, installing of the Nano with the environment variable took ~30 minutes to complete. Maybe that should be added to the build instructions so users know what to expect. Thank you all for the help. |
My current setup compiles for 53 (TX1 and Nano), 62 (TX2) and 72 (AGX Xavier and I assume also Xavier NX). https://developer.nvidia.com/cuda-gpus. That dropped the compile time on the AGX Xavier to 30 minutes from 47. After that, Given how useful |
Thank you @znmeb @eldaromer for quick feedbacks. Indeed I've been wanting to build CuPy for ARM (which I assume is for Jetson devices?) on conda-forge. However it's currently blocked by a few needed infrastructure changes, for example this one. Perhaps you could open an issue on CuPy's issue tracker to let them know your need and evaluate if PFN has the resource and bandwidth to support pip wheels for ARM? (I am not from PFN so I can't speak for them on this.) cc: @jakirkham Looks like we have at least two serious Jetson users in need of CuPy on ARM 🙂 |
Well the first step would be packaging |
I'm trying to push out a release but I can test on a 4 GB Nano and a 16 GB AGX Xavier in my spare time (cringes as my 3090 feels unloved) :-) arrow-cpp and pyarrow-cuda are on my conda-forge wishlist too, BTW. And POCL. |
This is perhaps something I can learn from you guys 🙂 I always imagine I can buy a Jetson device and make it sit and run on my desk, like a Raspberry Pi (which I don't have either). Is it the case? What's the best/cheapest/fastest way to set up a Jetson environment? What's the use case(s) for running cuSingal on Jetsons? |
For now, plunk down the $700 for an AGX Xavier, or the $400 for a Xavier NX. The Nano only has 4 GB of RAM, which I find more of a constraint than the cores or the Maxwell GPU. My use case is digital audio, but IIRC the original motivation was software-defined radio. |
Yes! @leofang, @znmeb is correct on SDR being the first Jetson use case. We have folks plugging in a ~20 dollar rtlsdr and doing GPU based FM demod, signal and modulation recognition, resampling and display, etc. As for "how to get started" - you basically install JetPack on the Jetson and you're plopped into an Ubuntu environment. |
Thanks for interesting answers, @awthomp @znmeb! $400 is very attracting -- now I don't know if I should get a PS5 or a Xavier first 😂 SDR seems to be a cool thing I never heard of, and I'm glad I asked! Back to the slow compilation issue, @znmeb @eldaromer it occurs to me that I didn't think too hard on the CPU performance difference. On a normal x86-64 system we always see If you have time, could you please try
Let me know if it helps (or not)! |
@leofang OK - I'm adding |
OK ... here we go! nano-cupy.log I ran both with
The bottom line(s): Nano: used 1.96 cores out of 4 on average (196%CPU)
AGX-Xavier: used 2.30 cores out of 8 on average
|
Describe the bug
When creating the conda environment on a Jetson Nano Development kit, the installation proceeds until installing pip dependencies, where it hangs indefinitely.
Steps/Code to reproduce bug
Fresh Jetpack install on Jetson Nano board.
Follow instructions for building from source on Jetson Nano exactly.
Expected behavior
Expected to install the environment.
Environment details (please complete the following information):
I've never used conda before, so I don't know exactly what logs are needed, but this is the last output from the install before it hangs:
Installing pip dependencies: ...working...
The text was updated successfully, but these errors were encountered: