Cython是可以方便地用类Python语法代码编译生成C代码,免除多平台下复杂的C++工程配置.
VScode连接 Python 进程调试时出现 “timed out waiting for debug server to connect” 提示, 连接失败.
tail -f log/*.log
VIM 8.2 释出已经有一段时间了. Ubuntu18.04自带的VIM7已经无法和其它平台同步插件配置了. 那么就把Ubuntu系统中的VIM升级一下吧.
泛型代码的错误书写会导致原有的Warning都变成Error
C# 的预处理简直弱爆了
C# program that implements lowercase optimization
Jedi-vim 是 vim 中非常好用的 Python 语言插件, 可以自行分析 代码进行文件跳转,补全….
常用操作
中国依赖美国的根本不是什么经济,而是发展的原创驱动力。说具体点,就是开创全新科技、全新产业、开辟全新生存空间的能力。
用习惯了 Windows 下的 everything,换到Linux时还真有点不太习惯,还好找到了 locate 来弥补这个功能。
在 Linux 下要尝试搞一搞机器学习,可惜只有一张A卡,就让我用 OpenCL 来加速吧。
总会有一些时候你对指定的软件不想(bu neng)更新到更新的版本。例如 Linux - kernel 硬件厂商的支持不紧跟上来升了内核可能整个系统不歇菜了。
对于IP地址通常情况下是用 /etc/network/interfaces 中配置的,最近为了统一RaspberryPI的环境使用 dhcpcd 来配置.
本来想直接用起来OpenWRT的,折腾了一下还是放弃了,技术不行还是有难度。
在Linux下可以很方便高效地使用你的USB-Camera,我来记录一下使用方法。
这个方法绝对会给Linux用户在使用过程中带来一个非常好的体验!
Linux用久了,有时候需要查看一下硬件的信息,以方便安装新硬件,或者安装驱动啥的。
情景是这样的:我有一台老式的台式机电脑,新添了一个固态硬盘,我想把装在原来的机械硬盘上的操作系统转移到新的固态硬盘上。原来的操作系统是Debian 8 (Jessie),机械硬盘容量是250G;新的固态硬盘是120G的。
随着神经网络技术应用到伟大的防火墙上以后,墙越来越聪明。终于 apt 源也被盯上了。
AMD Navi 图形卡架构介绍
$ 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
系统中自带的Python3版本忒低,让我们自已编译安装符合需要的新版本
NGUI 在使用自定义 Shader 时在手机上被自动替换成NGUI自带的 Shader
将项目升级到 Unity2018 后,踩到的一些坑
HDF5 是一种高性能轻量化小型数据库
死循环定位技巧
首先要介绍一下 Btrfs 文件系统
是时候来写一篇关于 VIM 常用配置的文章了
Get-WindowsCapability -Online | ? Name -like ‘OpenSSH*’ |
方案一:解压前发现乱码,解压时就做出处理
想在Windows上的Git中使用符号链接时,需要做一些特殊的工作.这个问题源于Windows自身,Linux & MacOSX不存在这些问题.
GIT的分支是众多版本管理软件中最好用的,没有之一.在创建,同步,合并过程中都显示出其设计的优越性.这里主要记录一些和分支相关的操作.
得到顶层 Activity 名字
首先在微软官网下载 VSCode 并将其拖入 launchpad 中
在日常操作中偶尔会需要用U盘安装一下操作系统,装完后原U盘还希望将U盘中的文件恢复为原来的结构。
GIT 在新手使用过程中会有一些常见的问题,在这里收集整理。
Unity3D 自从有了Linux版本, 就不用再把开发环境往Windows平台下切换了.毕竟Linux才是最适合做开发的集成环境.
SSH 绝对是最适合远程工作的方式,没有之一
Linux 主机间传输文件马上想到的是 scp. 但当要传送文件较大,过程中如果网络中断了,就比较悲剧了. 这时候可以考虑使用 rsync 命令替代 scp, 可实现断点续传.
sudo halt
sudo init 0
sudo shutdown -h now
sudo shutdown -h 0
Bullet 物理引擎使用介绍