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

CUDA on ARM #3378

Closed
totaam opened this issue Dec 4, 2021 · 4 comments
Closed

CUDA on ARM #3378

totaam opened this issue Dec 4, 2021 · 4 comments
Labels

Comments

@totaam
Copy link
Collaborator

totaam commented Dec 4, 2021

CUDA on ARM is a thing: CUDA is now supported on Arm servers starting with CUDA 11

Remains to be seen if we can enable nvfbc, nvenc and nvjpeg builds on arm.

@totaam
Copy link
Collaborator Author

totaam commented Dec 5, 2021

The build scripts have been updated with a per-arch CUDA directory: Xpra-org/repo-build-scripts@e12d874 so the commit above tries to enable building nvjpeg and nvenc.
nvfbc is left disabled for now because it looks like this isn't supported on arm64: the library is usually installed as part of the driver and I can't seem to find it in the arm64 installation.

@totaam
Copy link
Collaborator Author

totaam commented Dec 6, 2021

Building on aarch64 with the updated build scripts looks like this:

* nvenc                : Y
* nvfbc                : N
* nvjpeg               : Y
(..)
found CUDA compiler: /opt/cuda-arm64/bin/nvcc version 11.5.119
rebuilding XRGB_to_NV12: no file
CUDA compiling XRGB_to_NV12     (no file)
 '/opt/cuda-arm64/bin/nvcc' \
    '-fatbin' \
    '-c' 'fs/share/xpra/cuda/XRGB_to_NV12.cu' \
    '-o' 'fs/share/xpra/cuda/XRGB_to_NV12.fatbin' \
    '-std=c++03' \
    '-gencode=...  ..arch=compute_86,code=sm_86'

totaam added a commit that referenced this issue Dec 6, 2021
totaam added a commit that referenced this issue Dec 7, 2021
there's probably a better way of doing this (ie: parsing 'pkg-config --libs cuda')
@totaam
Copy link
Collaborator Author

totaam commented Dec 7, 2021

To be able to compile pycuda, I needed to add DefaultTasksMax=unlimited to /etc/systemd/system.conf.

@totaam
Copy link
Collaborator Author

totaam commented Dec 8, 2021

It took many hours to build the packages, especially pycuda and xpra.
But we now have nvenc and nvjpeg support for arm64 in the Fedora repositories.
(totally untested as I don't have any arm64 hardware with PCIE)

@totaam totaam closed this as completed Dec 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant