[reformat.cpp::executeCutensor::384] Error Code 1: CuTensor (Internal cuTensor permutate execute failed)

We can infer the model and get exactly results in main thread. But if we put the dynamic libraries in the multi thread app, it shows the error:

[06/09/2023-17:17:43] [E] [TRT] 1: [reformat.cpp::executeCutensor::384] Error Code 1: CuTensor (Internal cuTensor permutate execute failed)

Hi,

Please create a TensorRT context for each thread.
You can find the implementation for multi-thread below:

Thanks.

Hey. Thanks the comment. We make a test that in a single thread that create one TensorRT context. But it still not work. That means we do not use sereval threads but only one.

I’m closing this topic due to there is no update from you for a period, assuming this issue was resolved.
If still need the support, please open a new topic. Thanks

Hi,

Do you have a reproducible source so we can check it further?
Thanks.