错误代码
#ifdef NDEBUG#define DBUG_PRINT(fmt, ...)
#else#define DBUG_PRINT(fmt, ...) printf(fmt, ##__VA_ARGS__)
#endifBUG_PRINT(stderr, "decode %s does not support device type cuda.\n", dec->name);
修改
BUG_PRINT("decode %s does not support device type cuda.\n", dec->name);