Cross compile CUDA for Jetson Orin #4837
Unanswered
xuyanwen2012
asked this question in
Q&A
Replies: 1 comment 3 replies
-
最后链接命令还是用的 host lib,说明 xmake 没支持 cuda cross compile,可以来个 pr 支持一下 临时方法可以在 target on_config 把 linkdirs 和 rpathdirs 去掉,改成 arm64 的路径 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
最近在Jetson Orin Nano (
aarch64
)上写CUDA (12.2),xmake非常好用。但是Jetson编译是在是太慢了,所以我希望在x86的Ubuntu上用Xmake Cross compile CUDA。首先我有
aarch64-linux-gnu
, 然后我也有Nvidia提供的/usr/local/cuda/12-2.2/targets/aarch64-linux
如果我手动cross compile就是
以上成功在Jetson运行了,完全没问题。
我希望可以通过
xmake
直接把project cross compile了我知道普通纯C++的项目cross compile要
xmake f -p cross --sdk=/usr/aarch64-linux-gnu --cxx=aarch64-linux-gnu-g++ -a arm64 --ld=aarch64-linux-gnu-g++
这个我试了也没问题。但是每次尝试cross compile cuda就有问题/以及不知道如何针对这个情况config xmake
xmake.lua就这样,
这是我的尝试
希望有人可以指导以下,万分感谢
Beta Was this translation helpful? Give feedback.
All reactions