November 7th, 2021 Linux 开发中使用VSCode连接进程PID调试 VScode连接 Python 进程调试时出现 “timed out waiting for debug server to connect” 提示, 连接失败.
September 30th, 2021 Ubuntu 18.04 中安装 VIM8 VIM 8.2 释出已经有一段时间了. Ubuntu18.04自带的VIM7已经无法和其它平台同步插件配置了. 那么就把Ubuntu系统中的VIM升级一下吧.
November 8th, 2020 Jedi-vim 在打开 py 文件时报错 bad magic number in Jedi-vim 是 vim 中非常好用的 Python 语言插件, 可以自行分析 代码进行文件跳转,补全….
April 15th, 2020 Ubuntu 锁定内核版本 总会有一些时候你对指定的软件不想(bu neng)更新到更新的版本。例如 Linux - kernel 硬件厂商的支持不紧跟上来升了内核可能整个系统不歇菜了。
February 29th, 2020 通过 dhcpcd 配置IP地址 对于IP地址通常情况下是用 /etc/network/interfaces 中配置的,最近为了统一RaspberryPI的环境使用 dhcpcd 来配置.
November 23rd, 2019 转移整个系统到新硬盘上不重装 情景是这样的:我有一台老式的台式机电脑,新添了一个固态硬盘,我想把装在原来的机械硬盘上的操作系统转移到新的固态硬盘上。原来的操作系统是Debian 8 (Jessie),机械硬盘容量是250G;新的固态硬盘是120G的。
September 23rd, 2019 Raspberry PI 3B+ 支持 OpenCL 1.2 $ sudo clinfo Number of platforms 1 Platform Name OpenCL for the Raspberry Pi VideoCore IV GPU Platform Vendor doe300 Platform Version OpenCL 1.2 VC4CL 0.4.9999 Platform Profile EMBEDDED_PROFILE Platform Extensions cl_khr_il_program cl_khr_spir cl_khr_create_command_queue cl_altera_device_temperature cl_altera_live_object_tracking cl_khr_icd cl_vc4cl_performance_counters Platform Extensions function suffix VC4CL Platform Name OpenCL for the Raspberry Pi VideoCore IV GPU Number of devices 1 Device Name VideoCore IV GPU Device Vendor Broadcom Device Vendor ID 0xa5c Device Version OpenCL 1.2 VC4CL 0.4.9999 Driver Version 0.4.9999 Device OpenCL C Version OpenCL C 1.2 Device Type GPU Device Profile EMBEDDED_PROFILE Device Available Yes Compiler Available Yes Linker Available No Max compute units 1 Max clock frequency 300MHz Core Temperature (Altera) 53 C Device Partition (core) Max number of sub-devices 0 Supported partition types None Supported affinity domains (n/a) Max work item dimensions 3 Max work item sizes 12x12x12 Max work group size 12 Preferred work group size multiple 1 Preferred / native vector sizes char 16 / 16 short 16 / 16 int 16 / 16 long 0 / 0 half 0 / 0 (n/a) float 16 / 16 double 0 / 0 (n/a) Half-precision Floating-point support (n/a) Single-precision Floating-point support (core) Denormals No Infinity and NANs No Round to nearest No Round to zero Yes Round to infinity No IEEE754-2008 fused multiply-add No Support is emulated in software No Correctly-rounded divide and sqrt operations No Double-precision Floating-point support (n/a) Address bits 32, Little-Endian Global memory size 268435456 (256MiB) Error Correction support No Max memory allocation 268435456 (256MiB) Unified memory for Host and Device Yes Minimum alignment for any data type 64 bytes Alignment of base address 512 bits (64 bytes) Global Memory cache type Read/Write Global Memory cache size 32768 (32KiB) Global Memory cache line size 64 bytes Image support No Local memory type Global Local memory size 268435456 (256MiB) Max number of constant args 64 Max constant buffer size 268435456 (256MiB) Max size of kernel argument 256 Queue properties Out-of-order execution No Profiling Yes Prefer user sync for interop Yes Profiling timer resolution 1ns Execution capabilities Run OpenCL kernels Yes Run native kernels No IL version SPIR-V_1.2 SPIR_1.2 SPIR versions 1.2 printf() buffer size 0 Built-in kernels (n/a) Device Extensions cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_nv_pragma_unroll cl_arm_core_id cl_ext_atomic_counters_32 cl_khr_initialize_memory cl_arm_integer_dot_product_int8 cl_arm_integer_dot_product_accumulate_int8 cl_arm_integer_dot_product_accumulate_int16 cl_arm_integer_dot_product_accumulate_saturate_int8 cl_khr_il_program cl_khr_spir cl_khr_create_command_queue cl_altera_device_temperature cl_altera_live_object_tracking cl_khr_icd cl_vc4cl_performance_counters NULL platform behavior clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) OpenCL for the Raspberry Pi VideoCore IV GPU clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) Success [VC4CL] clCreateContext(NULL, ...) [default] Success [VC4CL] clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT) Success (1) Platform Name OpenCL for the Raspberry Pi VideoCore IV GPU Device Name VideoCore IV GPU clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No devices found in platform clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) Success (1) Platform Name OpenCL for the Raspberry Pi VideoCore IV GPU Device Name VideoCore IV GPU clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No devices found in platform clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM) No devices found in platform clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) Success (1) Platform Name OpenCL for the Raspberry Pi VideoCore IV GPU Device Name VideoCore IV GPU ICD loader properties ICD loader Name OpenCL ICD Loader ICD loader Vendor OCL Icd free software ICD loader Version 2.2.12 ICD loader Profile OpenCL 2.2
April 19th, 2019 GIT Symlink 兼容Win与Linux 想在Windows上的Git中使用符号链接时,需要做一些特殊的工作.这个问题源于Windows自身,Linux & MacOSX不存在这些问题.
October 19th, 2018 Linux Unity3D 安装 Unity3D 自从有了Linux版本, 就不用再把开发环境往Windows平台下切换了.毕竟Linux才是最适合做开发的集成环境.
September 21st, 2018 Linux 主机间 SSH 断点续传 Linux 主机间传输文件马上想到的是 scp. 但当要传送文件较大,过程中如果网络中断了,就比较悲剧了. 这时候可以考虑使用 rsync 命令替代 scp, 可实现断点续传.
August 27th, 2018 Linux 命令行关机,重启,待机,休眠 关机 sudo halt sudo init 0 sudo shutdown -h now sudo shutdown -h 0