Porting CUDA from JETSON to XAVIER

Hello,

I have an application running under JETSON-TX2.
Let’s assume it is fully optimized for JETSON-TX2.

In order to port it to XAVIER (and properly use XAVIER architecture), will I have to do any code change ?
The question is not specific to JETSON and XAVIER.

Thank you,
Zvika

Normally it will run as expected, if it is an application.
But you’d better check whether the GPU architecture codes are properly configured when you build the application.
Jetson TX2: 62
Xavier: 72

2 Likes

Hi,

As MtHiker mentioned, since the software is shared, the source code can be reused.
But please make sure you use the correct GPU architecture.

For example:

TX2

$ nvcc -gencode arch=compute_62,code=sm_62 test.cu

Xavier

$ nvcc -gencode arch=compute_72,code=sm_72 test.cu

Thanks.

1 Like

Thank you very much !

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.