Skip to content
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

Jetson nano? #2

Open
fpgasdr opened this issue Feb 27, 2021 · 2 comments
Open

Jetson nano? #2

fpgasdr opened this issue Feb 27, 2021 · 2 comments

Comments

@fpgasdr
Copy link

fpgasdr commented Feb 27, 2021

Hello,
installed this component in gnuradio 3.7.11 in jetson nano 2G but get syntax error when running example:

Traceback (most recent call last):
File “/home/juli/gnuradio/gr-cuda/test/top_block.py”, line 17, in
import cuda
File “/usr/local/lib/python2.7/dist-packages/cuda/init.py”, line 34, in
from gpu_kernel import gpu_kernel
File “/usr/local/lib/python2.7/dist-packages/cuda/gpu_kernel.py”, line 25, in
import pycuda.compiler
File “/home/juli/.local/lib/python2.7/site-packages/pycuda/compiler.py”, line 3, in
from pytools import memoize
File “/home/juli/.local/lib/python2.7/site-packages/pytools/init.py”, line 249
slots: List[str] = []
^
SyntaxError: invalid syntax

from readme it says the pycuda version used is 9.0 but in jetson nano only from version 10 is available(I have the 10.2).

@dicta
Copy link

dicta commented Feb 27, 2021

Recent versions of pycuda and pytools have dropped support for Python 2.7 (which is required for GNU Radio 3.7.x).

You can work around this by pinning your installed versions of pycuda and pytools to released versions that still have 2.7 support. Try running the following command:

pip install pycuda==2019.1.2 pytools==2020.1

@fpgasdr
Copy link
Author

fpgasdr commented Feb 28, 2021

thanks @dicta for the support,

After install the pycuda and pytools get a strange error with cupy as not detected(I am almost certainly that was installed).

Anyway, installed cupy with pip2 (pip use python 3) but get the next error:

Traceback (most recent call last):
File "divide_by_two.py", line 31, in
import cuda
File "/usr/local/lib/python2.7/dist-packages/cuda/init.py", line 34, in
from gpu_kernel import gpu_kernel
File "/usr/local/lib/python2.7/dist-packages/cuda/gpu_kernel.py", line 27, in
import cupy as cp
File "/home/juli/.local/lib/python2.7/site-packages/cupy/init.py", line 47, in
import cupyx as _cupyx
File "/home/juli/.local/lib/python2.7/site-packages/cupyx/init.py", line 11, in
from cupyx._ufunc_config import errstate # NOQA
File "/home/juli/.local/lib/python2.7/site-packages/cupyx/_ufunc_config.py", line 52
def errstate(*, divide=None, over=None, under=None, invalid=None, linalg=None):
^
SyntaxError: invalid syntax

maybe need to install a compatible version of cupy?.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants