09 2019 档案
摘要:systemd-run --scope -p MemoryLimit=4G \ -p "BlockIOReadBandwidth=/dev/sdb1 150M" \ -p "BlockIOWriteBandwidth=/dev/sdb1 125M" \ time taskset -c 0-5 \
阅读全文
摘要:C语言函数sscanf()的用法sscanf() - 从一个字符串中读进与指定格式相符的数据. 函数原型: int sscanf( string str, string fmt, mixed var1, mixed var2 ... ); int scanf( const char *format
阅读全文
摘要:C++另外有一种匿名的命名空间,来保证生成的符号是局部的,这样对于匿名空间中的变量等,外部都是不可见的. //test3.cpp static void bar(){} namespace //匿名的命名空间 { float bar2; int foo; } //test4.cpp extern i
阅读全文
摘要:1、git clone tensorflow serving 及tensorflow代码 2、 解决办法: 3、看起来./configure配置全部不能生效,因此需要自己配置变量指引cuda、cudnn、nccl等所有的非默认路径 解决办法:通过变量设置 4、遇到nvcc检测cuda版本与设置不一致
阅读全文