上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 61 下一页
摘要: 结构体 初始化 销毁 AVFormatContext avformat_alloc_context() avformat_free_context() AVIOContext avio_alloc_context() AVStream avformat_new_stream() AVCodecCon 阅读全文
posted @ 2018-06-17 19:53 jiu~ 阅读(1263) 评论(0) 推荐(0) 编辑
摘要: 这是因为我装了tensorflow-gpu 1.5版本,而我用的是cuda 8.0和cudnn6.0,1.5版本要求cuda 9.0,我的做法就是回滚tensorflow版本。 阅读全文
posted @ 2018-06-17 01:19 jiu~ 阅读(4708) 评论(0) 推荐(0) 编辑
摘要: pidstat主要用于监控全部或指定进程占用系统资源的情况,如CPU,内存、设备IO、任务切换、线程等。pidstat首次运行时显示自系统启动开始的各项统计信息,之后运行pidstat将显示自上次运行该命令以后的统计信息。用户可以通过指定统计的次数和时间来获得所需的统计信息。 实例讲解 默认参数 执 阅读全文
posted @ 2018-06-15 20:47 jiu~ 阅读(2028) 评论(0) 推荐(0) 编辑
摘要: 解释一下: 1. nohup \$order & 后台执行 2. nohup \$order >>$file & 后台执行,并输入指定文件 3. top -p $num 使用top命令监控某进场id 4. top -p $num -b > $file 使用top命令监控某进场id,并输入指定文件(这 阅读全文
posted @ 2018-06-15 20:44 jiu~ 阅读(529) 评论(0) 推荐(0) 编辑
摘要: 1 #include "memory.h" 2 #include "stdio.h" 3 enum {encrypt,decrypt};//ENCRYPT:加密,DECRYPT:解密 4 void des_run(char out[8],char in[8],bool type=encrypt); 5 //设置密钥 6 void des_setkey(const char... 阅读全文
posted @ 2018-06-12 12:36 jiu~ 阅读(6251) 评论(0) 推荐(0) 编辑
摘要: By default, TensorFlow maps nearly all of the GPU memory of all GPUs (subject to CUDA_VISIBLE_DEVICES) visible to the process. This is done to more ef 阅读全文
posted @ 2018-06-11 11:27 jiu~ 阅读(581) 评论(0) 推荐(0) 编辑
摘要: reproduced from: http://www.cnblogs.com/muchen/p/6306747.html 前言 本文将介绍 CUDA 编程的基本模式,所有 CUDA 程序都基于此模式编写,即使是调用库,库的底层也是这个模式实现的。 模式描述 1. 定义需要在 device 端执行的 阅读全文
posted @ 2018-06-09 22:04 jiu~ 阅读(759) 评论(0) 推荐(0) 编辑
摘要: 项目中用cuda解码时候遇到该错误,这是调用cuda相关库中一些so库版本错误造成的。 阅读全文
posted @ 2018-06-06 21:15 jiu~ 阅读(1075) 评论(0) 推荐(0) 编辑
摘要: 1 BGRA转BGR 2 void BgraToBgr(BYTE *bgraData,int *bgraSize) 3 { 4 for(int i=0,j=0; j<*bgraSize; i+=3,j+=4) 5 { 6 *(bgraData+i) = *(bgraData+j); 7 *(bgraData+i+1) = *(bgra... 阅读全文
posted @ 2018-05-30 20:02 jiu~ 阅读(3158) 评论(0) 推荐(0) 编辑
摘要: 正常情况下,当文件没有更新且已经编译过时,再次make就会报这个错误,表示文件未更新,不需要编译。 如果异常情况没有检测到更新文件,或者想要强制重新编译,只需要make clean,再次编译即可。 阅读全文
posted @ 2018-05-30 20:01 jiu~ 阅读(11995) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 61 下一页