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

nvidia containers support #1602

Open
edgarriba opened this issue Jan 3, 2025 · 6 comments
Open

nvidia containers support #1602

edgarriba opened this issue Jan 3, 2025 · 6 comments

Comments

@edgarriba
Copy link

Is there any example or anyone tried cross with any of the NVIDIA L4T containers ? **https://catalog.ngc.nvidia.com/orgs/nvidia/containers/l4t-base

I made a couple of attempts to use as base nvidia but seems that it requires to much configuration happening in this repo.

Any help will pretty much appreciated as rust and cuda builds are starting to get common :)

@Emilgardis
Copy link
Member

not sure I understand this issue. What's the end goal?

@Emilgardis
Copy link
Member

does these containers contain a cross-compiler (x86_64 -> cuda?) for rust to use?

@edgarriba
Copy link
Author

the end goal is being able to cross compile libraries that have to be linked against cuda dependencies (which usually it's a pain to install and that's why L4T or related containers are very useful as they come with all the goodies for cuda). One example would be this crate: https://github.com/mstallmo/tensorrt-rs

As I mentioned above, I tried to take a l4t-base image and install myself cargo as by default those containers do not have any cargo installed.

@Emilgardis
Copy link
Member

for cross, there is no need to have cargo in the container. Cross provides cargo from the host in to the running container via mounting. Alright if it's just libraries maybe just copying them into a suitable place could work?

@edgarriba
Copy link
Author

when I try to cross build from an nvidia image nvcr.io/nvidia/l4t-base:r35.2.1

I get the following error:

WARNING: The requested image's platform (linux/arm64) does not match the detected host platform (linux/amd64/v4) and no specific platform was requested
/usr/bin/sh: 1: cargo: not found
==> ERROR: Build failed

@Emilgardis
Copy link
Member

Emilgardis commented Jan 4, 2025

That just means that something funky is going on, not neccesarily that cargo wasn't found but probably a lib dependency was not found, most likely libc.

I'm a bit confused about the ==> ERROR: Build failed in your snippet. Can you share the entire snippet together with running cross with -v for erbose output

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