TensorRT
TensorRT copied to clipboard
The engine plan file is generated on an incompatible device
Description
I encountered the following error:
The engine plan file is generated on an incompatible device, expecting compute 8.6 got compute 7.5, please rebuild.4: [runtime.cpp::deserializeCudaEngine::50] Error Code 4: Internal Error (Engine deserialization failed.)
I also checked the local graphics card version:
$ nvidia-smi -L
GPU 0: NVIDIA GeForce RTX 3080 (UUID: GPU-6936d668-679b-1cde-03ca-330bcc80d6dd)
GPU 1: NVIDIA GeForce RTX 3080 (UUID: GPU-957c0287-a401-4cf6-f000-ee9f66feeb2f)
The engine file corresponds to the graphics card version. I have no idea about this error.
What should I do, thx!
Environment
TensorRT Version: 8.2.5.1 NVIDIA GPU: 3080 NVIDIA Driver Version: CUDA Version: 11.1 CUDNN Version: 8.2.1 Operating System: linux
The error is indicative, remove the plan and regenerate it with the correct device. e.g. with setting CUDA_VISIBLE_DEVICES
closing since no activity for more than 3 weeks, please reopen if you still have question, thanks!