随笔分类 - linux
摘要:# coredump ## 修改coredump文件位置 查询文件位置 ```bash cat /proc/sys/kernel/core_pattern # 默认值是core,表示当前目录。否则就是在指定目录下。 ``` 更改 coredump 文件路径的方法分两种:临时更改方式与永久更改方式:
阅读全文
摘要:# 项目属性 ### CMAKE_VERSION ```c++ cmake_minimum_required(VERSION 3.2) if(CMAKE_VERSION VERSION_LESS "3") add_definitions(-std=c++14) else() # add_defini
阅读全文
摘要:环境配置 sudo apt install libmysqlclient-dev 编译选项 cmake target_link_libraries(main libmysqlclient.so) g++选项 g++ test_mysql.cpp -lmysqlclient -o tets 示例 读取
阅读全文
摘要:**Cmake中要将编译版本改成Debug版本** [toc] # linux ## `c_cpp_properties.json`文件 `ctrl+shift+p`弹出搜索框,输入`C++`会显示`C/C++配置UI`,点击后会生成`c_cpp_properties.json`文件 **按需修改`
阅读全文
摘要:/** linux v2.4.18 * list_entry - get the struct for this entry * @ptr: the &struct list_head pointer. * @type: the type of the struct this is embedded
阅读全文
摘要:fork流程图 参考 Linux内核进程创建fork源码解析 关于Linux下fork()函数机制?
阅读全文
摘要:SGI STL 二级空间配置器std::alloc过程 SGI STL的std::alloc、glibc的malloc的区别 内存池:内存池可以通过预先分配一定数量的内存块,形成一个内存块池,当需要分配内存时,直接从内存池中取出一个空闲的内存块,并标记为已使用。当不再需要使用某个内存块时,将其标记为
阅读全文
摘要:GDB命令 // gdb 命令 $ gdb -p 87746 // 打印所有的线程信息 (gdb) info thread // 切换到第2个线程 (gdb) thread 2 // bt 可以打印函数堆栈,却无法看到函数参数,跟 pstack 命令一样 (gdb) bt // 打印第三帧信息,每次
阅读全文
摘要:出现伪共享原因:多个线程同时读写同一个 Cache Line 的不同变量时,而导致 CPU Cache 失效的现象称为伪共享(False Sharing) 查看系统Cache Line加载数据大小 cat /sys/devices/system/cpu/cpu0/cache/index0/coher
阅读全文
摘要:编译源码时提示Filesilence.sty' not found. \hbadness` 网站下载该包 将下载下来的zip包解压,sudo cp到/usr/share/texlive/texmf-dist/tex/latex/silence sudo cp -r silence /usr/shar
阅读全文
摘要:import os import cv2 import numpy as np from PIL import Image, ImageDraw, ImageFont txtList = ["保存单帧", "保存多帧"] height = 300 width = 1068 # word = word
阅读全文
摘要:字体查找方法: 个人用户字体文件:~/.local/share/fonts 系统字体文件:/usr/share/fonts 字体配置文件:/etc/fonts/
阅读全文
摘要:cmake里面添加自己显卡的算力:3060显卡算力是8.6 SET(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS}; -gencode arch=compute_86,code=sm_86;)
阅读全文
摘要:共享内存保存读取图片 OpenShare.cpp #include "OpenShare.h" //共享内存1,, C++发 --python 传递位姿与图像存储路径 int key_id = 1111; int shmid; void *pBuffer; //共享内存2, C++发 --pytho
阅读全文
摘要:1.先把之前的nvidia卸载干净: sudo apt-get remove --purge nvidia* 1 2.执行以下命令: sudo apt-get update 1 3.在终端里输入下面的命令来查看可以选择哪些驱动 sudo ubuntu-drivers devices 1 4.下载你想
阅读全文
摘要:[I 2022-10-11T09:54:18.356Z main:store:plugins:iap] The user is not allowed to make in-app purchase. SESSION 2022-10-11T09:54:18.319Z (10.3.1+20210113
阅读全文
摘要:Fedora 安装 QQ音乐 打开 /usr/share/applications/qqmusic.desktop [Desktop Entry] Name=qqmusic Exec=/opt/qqmusic/qqmusic %U --no-sandbox Terminal=false Type=A
阅读全文
摘要:cudaGraphicsGLRegisterImage | cudaGraphicsMapResources | cudaGraphicsSubResourceGetMappedArray | cudaMemcpy2DToArray | cudaGraphicsUnmapResources Open
阅读全文
摘要:CUDA Device Query (Runtime API) version (CUDART static linking) cudaGetDeviceCount returned 100 -> no CUDA-capable device is detected Result = FAIL
阅读全文