cuda
https://developer.nvidia.com/cuda-gpus#compute 查询gpu及其 Compute Capability Q: ERROR: INVALID_CONFIG: The engine plan file is generated on an incompatible device, expecting compute 7.5 got compute 6.1, please rebuild. A: tensorrt 的序列化和反序列化操作只能在特定硬件上做,两个操作需配套; cuda gdb: 1 #include <iostream> 2 #include <stdio.h> 3 #include " book.h " 4 5 __global__ void add( int a, int b, int * c) { 6 *c = a + b; 7 } 8 9 __global__ void kernel() { 10 printf( " tttt\n " ); 11 } 12 13 int main( void ) { 14 int c; 15 int * dev_c; 16 HANDLE_ERROR( cudaMalloc(( void **)&dev_c, sizeof ( int ) ) ); 17 int count; 18