compiler玩具cpp

chatglm.cpp使用手记

目前绝大多数LLM模型都是python实现的,运行速度有限(包括ChatGLM2-6b),幸好有大神将其用C++重写了一遍,让运行速度大大提高。 项目地址:li-plus/chatglm.cpp: C++ implementation of ChatGLM-6B & ChatGLM2-6B (git ......
手记 chatglm cpp

yaml-cpp生成yaml文件及解析yaml文件

1) 源码编译及安装 获取源码 $ git clone https://github.com/jbeder/yaml-cpp.git $ cd yaml-cpp && mkdir build && cd build && cmake .. && make && make install 使用样例: ......
yaml 文件 yaml-cpp cpp

RISC-V云测平台:Compiling The Fedora Linux Kernel Natively on RISC-V

注释:编译Fedora,HS-2 64核RISC-V服务器比Ryzen5700x快两倍! 以下是blog 正文 # Compiling The Fedora Linux Kernel Natively on RISC-V ## Fedora RISC-V Support There is ongoi ......
RISC-V RISC Compiling Natively Fedora

idea 查看 class文件 出现 /* compiled code */

### idea 查看 class文件 出现 /* compiled code */ > idea在初始化的时候会默认自带反编译插件,但是在有的同学初始化的时候没有勾选上插件,从而导致不能正常的反编译,class类提示/*compiled code*/。 #### 解决方案 进入IDEA,选择==f ......
compiled 文件 class idea code

VINKA/永嘉微电防干扰/抗噪2键/2通道/2路触摸触控芯片VK36N2D/VK3602XS/KA适用于玩具,厨房秤,加湿器【FAE技术支持】

概述 VK3602XS具有2个触摸按键,可用来检测外部触摸按键上人手的触摸动作。该芯片具有较高的集成度,仅需极少的外部组件便可实现触摸按键的检测。提供了2路锁存输出功能,可通过IO脚选择输出电平。芯片内部采用特殊的集成电路,具有高电源电压抑制比,可减少按键检测错误的发生,此特性保证在不利环境条件的应 ......
加湿器 芯片 通道 厨房 技术支持

You are using the runtime-only build of Vue where the template compiler is not available ,页面自定义带template内容的组件无法渲染,控制台报错

使用vue-cli搭建的项目,页面自定义带template内容的组件无法渲染,控制台报错,页面不展示组件内容,代码如下: <template> <div class="hello"> my-component:<my-component></my-component> </div> </templa ......
template 控制台 runtime-only 组件 the

centos generate uuid,install libuuid-devel,compile -luuid

//install libuuid-devel sudo yum install libuuid libuuid-devel #include <iostream> #include <stdio.h> #include <uuid/uuid.h> char * get_uuid() { uuid_ ......

Pythonre.compile:用于优化正则表达式匹配的工具

https://blog.csdn.net/www_xuhss_com/article/details/130858409?spm=1001.2101.3001.6650.2&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7 ......
正则 表达式 Pythonre compile 工具

c/cpp: g++ 设置(fedora38)

c/cpp: g++ 设置(fedora38) 一、基本配置信息 [wit@fedora null]$ cat /etc/bashrc # /etc/bashrc # System wide functions and aliases # Environment stuff goes in /etc ......
fedora cpp 38

Bazel 如何生成 clangd/clang-tidy 所需的 compile_commands.json

# VSCode 中如何使用 clang-tidy 1. 安装 clangd 插件 2. 禁用 ms-cpp 插件(VSCode 会自动提示有冲突) 3. 生成 clangd 所需的 compile_commands.json 文件 ## 如何生成 compile_commands.json 文件 ......

python--compile、exec、eval函数使用

`compile(source, filename, mode, flags=0, dont_inherit=False, optimize=-1)` 参数说明: source:字符串或AST对象,表示需要进行编译的python代码 filename:指定需要编译的代码文件,如果不是文件读取代码则传 ......
函数 compile python exec eval

通过pattern来匹配字符串,Pattern类的compile方法,接收一个字符串作为匹配模板

public static String extractSubstring(String input, String pattern) { Pattern regexPattern = Pattern.compile(pattern); Matcher matcher = regexPattern. ......
字符串 字符 模板 pattern Pattern

A Compiler Writing Journey

DoctorWkt/acwj: A Compiler Writing Journey (github.com) A Compiler Writing Journey In this Github repository, I'm documenting my journey to write a se ......
Compiler Writing Journey

初步体验 llama.cpp

第1步,准备一台阿里云4核8G的服务器,操作系统用的是 ubuntu 22.04;第2步,签出 llama.cpp 源码进行 build;第3步,下载 4-bit 版本的 Vicuna-7B 模型,文件大小是3.6G;第4步,使用这个模型输入提示词 `Tell me about cnblogs`;第... ......
llama cpp

cpp: 指针赋值

char* pp = new char[100]; char d[100] = "geovindu,涂聚文"; string ddstr= "geovindu,涂聚文"; char *dstr=nullptr; pp = d; dstr = &ddstr[0]; printf(dstr); prin ......
指针 cpp

CMake Error at CMakeLists.txt: No CMAKE_CXX_COMPILER could be found.

`系统环境:Ubuntu 22.04.1` ### 1. 问题发生 ``` -- The C compiler identification is GNU 11.3.0 -- The CXX compiler identification is unknown -- Detecting C comp ......

linux cpp g++ mysqlconnector

1.install mysql in ubuntu; 2install mysqlconnector; sudo apt install libmysqlclient-dev 3.complete code #include <algorithm> #include <chrono> #includ ......
mysqlconnector linux cpp

cpp17关键新增特性理解

### 折叠表达式 折叠表达式(Fold Expression)是C++17标准中引入的一个特性,它是一种用于处理可变参数模板展开的简洁语法。折叠表达式允许在编译时对参数包中的参数进行折叠操作,从而产生一个单一的值。这种特性在处理模板元编程和可变参数模板时非常有用,可以显著简化代码并提高代码的可读性 ......
特性 关键 cpp 17

cpp14关键新增特性理解

### new/delete elision "new/delete elision" 是 C++ 中的一个优化技术,用于减少由于动态内存分配和释放而产生的性能开销。它发生在编译器优化的过程中,可以将某些动态内存分配和释放的操作消除,从而提高程序的执行效率。 具体来说,"new/delete eli ......
特性 关键 cpp 14

cpp generate uuid via rand() and test speed which is 4 times+ faster than libuuid

// main.cpp #include <algorithm> #include <chrono> #include <cstdio> #include <cstdlib> #include <cstdint> #include <ctime> #include <fstream> #includ ......
generate libuuid faster speed times

在ICC2/Fusion Compiler、Innovus和Virtuoso中集成Calibre环境以及Virtuoso中集成StarRC环境

(1)ICC2/Fusion Compiler < Calibre 在ICC2命令行窗口键入source [file join $::env(CALIBRE_HOME) lib icc_calibre.tcl],或者将上述内容写入用户目录下的IcC2的启动文件.synopsys_icc2_gui/s ......
Virtuoso 环境 Compiler Calibre Innovus

编译安装最新的Pluto compiler,以及遇到的一些坑

# 好久不见! 这段时间在鼓捣一些奇奇怪怪的东西。 Pluto Compiler是一款非常优秀的Polyhedral编译器。这玩意拿来优化循环和程序局部性啥的是相当好的。其安装过程涉及到整个llvm的编译过程,如果之前并没能够了解llvm的话估计会够呛,我也是基本上把坑踩了一个遍。所以干脆写篇博客给 ......
compiler Pluto

cpp generate uuid by random

#include <cstdio> #include <cstdlib> #include <ctime> #include <cstdint> uint32_t rand32() { return ((rand() & 0x3) << 30) | ((rand() & 0x7fff) << 15) ......
generate random uuid cpp by

Helix-Editor一款类Vim的轻便编辑器——全套配置(cpp环境)

## Helix Helix-Editor编辑器,是一款用Rust语言编写的编辑器,操作体验继承了Vim的传统操作方式。 ### 一些必备的 1. 一个好看的字体 2. 一个新版的powershell 3. 一个oh-my-posh 4. 一个好看的Terminal 5. 一个helix 6. 一个 ......
编辑器 Helix-Editor 全套 环境 Editor

idea启动项目报错 Compilation failed: internal java compiler error

问题描述:用idea启动一个项目报错Compilation failed: internal java compiler error 产生该问题的原因有两点: 1.项目中模块jre环境不一致 首先确保Modules中的环境一致,然后确保settings中的环境一致。 2.idea的Build Pro ......
Compilation compiler internal 项目 failed

cpp generate random array and then quick sort

#include <algorithm> #include <chrono> #include <ctime> #include <fstream> #include <iomanip> #include <iostream> #include <random> #include <sstream> ......
generate random array quick then

idea报错 java: You aren't using a compiler supported by lombok, so lombok will not work and has been dis

转‘’: idea较新版本识别不了lombok生成的方法 在这增加参数: -Djps.track.ap.dependencies=false ......
lombok supported compiler using idea

python包报错ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'OpenSSL 1.0.2k-fips 26 Jan 2017'

报错:ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the ‘ssl’ module is compiled with OpenSSL 1.1.0h 27 Mar 2018. 解决办法:Terminal窗口执行:p ......
OpenSSL 39 ImportError currently compiled

mongodb从库无法启动一例(replication_recovery.cpp)

环境:OS:centos 7mongodb:4.4.22 背景:1主1从1仲裁的环境,修改从库的集群ip后,执行如下操作后发现无法启动myrepl:PRIMARY> rs.remove("192.168.1.104:29001")myrepl:PRIMARY> conf=rs.conf()myrep ......