How can i compile tensorflow c++ API on jetson xavier nx?

I try compile tensorflow 1.15.5 from source on nx, but get the error below:

ERROR: /home/mrobot/workspace/tensorflow-1.15.5/tensorflow/stream_executor/cuda/BUILD:322:1: C++ compilation of rule ‘//tensorflow/stream_executor/cuda:cudnn_stub’ failed (Exit 1)
In file included from tensorflow/stream_executor/cuda/cudnn_stub.cc:57:0:
./tensorflow/stream_executor/cuda/cudnn_7_1.inc:626:33: error: ‘cudnnConvolutionFwdPreference_t’ has not been declared
cudnnConvolutionFwdPreference_t preference,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

any one can help?

Hi,

It looks like a compatible issue.

Based on the error, the TensorFlow source tries to find cuDNN 7.1 API.
But if you are using JetPack 4.6, the cuDNN package is already 8.2.1.

Thanks.

Hi,

thanks! yes, my J4T version is 4.6.

is downgrade cnDNN version to 7.1 can solve this problem?
but i think it may cause conflicts with other installed package, such lick TensorRT…

Hi,

To downgrade the cuDNN package directly might cause some dependency issues.

Based on the below source, TensorFlow v1.15.x only supports cuDNN up to version 7.
It’s recommended to downgrade the whole JetPack software or use a compatible TensorFlow v2.x instead.

Thanks.

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