Reflection Based Libraries to Look Forward ToReflection in C++ as per P2996 ☐ Syntax and examples • Reflection libraries! Python bindings ABI hashing (boost::abi_hash?) A duck-typed std::any (boost::virtual_any?) • Alternatives ways to achieve “reflection” possible! ## Now let's do some actual library design • Automatic python bindings • Automatic type ABI hash • A better std::any with duck typing ## Python bindings ## A fan favorite, and one of the most can be done easily • Customizations are trickier / not DRY We have two potential approaches ## ABI hashing ## Setting the stage - Why is a type's hash useful? • Say you had a unique hash for a type’s0 码力 | 118 页 | 14.33 MB | 1 年前3
1.2.2 GoLLVM 编译探索’ alt=‘OCR图片’/> 第四部分 解决办法 ’ alt=‘OCR图片’/> GoLLVM问题解决 ASM的支持 汇编指令转换 Plan9 -> gnu asm ABI转换: Plan9: no callee save, stack-based GoLLVM 基于C的calling convention save all called-save regs0 码力 | 25 页 | 3.99 MB | 1 月前3
Performance Engineering: Being Friendly to Your HardwareRegister renaming  • ABI registers implement a SW contract • They do not correspond to the actual execution - Conversion of universally be the best option? Only representative performance testing will show ## Example - hashing uint32_t hash_fnvla(const char* key, const size_t len) { uint32_t hash = 0x811c9dc5; for cmp rsi, rcx 75 ec jne L11b0 L11c4: c3 ret 66 66 2e 0f 1f 84 00 nop 11 00 00 00 00 ## Example - hashing uint32_t hash_fnvla(const char* key, const size_t len) { uint32_t hash = 0x811c9dc5; for0 码力 | 111 页 | 2.23 MB | 1 年前3
The Rust Programming Language,2nd EditionThe type HashMapstores a mapping of keys of type K to values of type V. It does this via a hashing function, which determines how it places these keys and values into memory. Many different programming borrowing rules. Hashing Function By default, HashMap uses a cryptographically secure hashing function that can provide resistance to Denial of Service (DoS) attacks. This is not the fastest hashing algorithm scratch; crates.io has libraries that others have shared that provide hashers implementing many common hashing algorithms. 191 Summary Vectors, strings, and hash maps will take you far in programs where you 0 码力 | 617 页 | 1.54 MB | 2 年前3
vLLM v0.5.3.post1 Documentation$ pip install https://vllm-wheels.s3.us-west-2.amazonaws.com/nightly/vllm-${VLLM_VERSION} →-cp38-abi3-manylinux1_x86_64.whl $ # You can also access a specific commit $ # export VLLM_COMMIT=... $ # install https://vllm-wheels.s3.us-west-2.amazonaws.com/${VLLM_COMMIT}/vllm-$ →{VLLM_VERSION}-cp38-abi3-manylinux1_x86_64.whl ``` ## 1.1.3 Build from source You can also build and install vLLM from source: than just discrete tokens, we can use different hashing methods to handle the caching of inputs of different modalities. For example, perceptual hashing for images to cache similar input images. ## 10 码力 | 143 页 | 1.07 MB | 3 月前3
vLLM v0.5.3 Documentation$ pip install https://vllm-wheels.s3.us-west-2.amazonaws.com/nightly/vllm-${VLLM_VERSION} →-cp38-abi3-manylinux1_x86_64.whl $ # You can also access a specific commit $ # export VLLM_COMMIT=... $ # install https://vllm-wheels.s3.us-west-2.amazonaws.com/${VLLM_COMMIT}/vllm-$ →{VLLM_VERSION}-cp38-abi3-manylinux1_x86_64.whl ``` ## 1.1.3 Build from source You can also build and install vLLM from source: than just discrete tokens, we can use different hashing methods to handle the caching of inputs of different modalities. For example, perceptual hashing for images to cache similar input images. ## 10 码力 | 143 页 | 1.07 MB | 3 月前3
Back to Basics: The structure of a Programthread local • Each thread has its own instance of an object with thread duration ## What is an ABI? • ABI (application binary interface) is the platform-specific specification of how entities defined in conventions for making system calls ## - On Linux, GCC and Clang use the Itanium ABI; On Windows, MSVC uses its own ABI ## Name Mangling • Name mangling refers to the way in which entity names in a TU reflect these addresses • It emits executable code ## • The compiler and the linker must agree on the ABI • Both must understand object code in exactly the same way ## Loading and Running ## • The operating0 码力 | 64 页 | 390.34 KB | 1 年前3
vLLM v0.5.4 Documentation$ pip install https://vllm-wheels.s3.us-west-2.amazonaws.com/nightly/vllm-${VLLM_VERSION} →-cp38-abi3-manylinux1_x86_64.whl $ # You can also access a specific commit $ # export VLLM_COMMIT=... $ # install https://vllm-wheels.s3.us-west-2.amazonaws.com/${VLLM_COMMIT}/vllm-$ →{VLLM_VERSION}-cp38-abi3-manylinux1_x86_64.whl ``` ## 1.1.3 Build from source You can also build and install vLLM from source: than just discrete tokens, we can use different hashing methods to handle the caching of inputs of different modalities. For example, perceptual hashing for images to cache similar input images. ## 10 码力 | 152 页 | 1.10 MB | 3 月前3
Conan 1.3 Documentation4 Packaging existing binaries ..... 44 6.5 Understanding packaging ..... 46 6.6 Define package ABI compatibility ..... 48 6.7 Inspecting packages ..... 54 6.8 Packaging approaches ..... 55 6.9 Tools 4 Creating and reusing packages based on Makefiles ..... 170 12.5 How to manage the GCC >= 5 ABI ..... 172 12.6 Using Visual Studio 2017 - CMake integration ..... 173 12.7 How to manage C++ standard libstdc++ that represent the old ABI compatibility for better compatibility. Your compiler default is likely the new ABI so you might want to change it to libstdc++11 to use the new ABI compliant with CXX11 directives0 码力 | 397 页 | 2.77 MB | 1 年前3
Conan 1.4 Documentation4 Packaging existing binaries ..... 41 6.5 Understanding packaging ..... 43 6.6 Define package ABI compatibility ..... 45 6.7 Inspecting packages 51 6.8 Packaging approaches 52 6.9 Tools for package libstdc++ that represent the old ABI compatibility for better compatibility. Your compiler default is likely the new ABI so you might want to change it to libstdc++11 to use the new ABI compliant with CXX11 directives user space if specified. Any doubts? Please check out our FAQ section or . ### 6.6 Define package ABI compatibility Each package recipe can generate N binary packages from it, depending on three things:0 码力 | 421 页 | 2.84 MB | 1 年前3
共 941 条
- 1
- 2
- 3
- 4
- 5
- 6
- 95
相关搜索词
ReflectionC++Python bindingsABI hashingTemplate metaprogrammingGoLLVM编译优化Inline策略GC精确式栈扫描ABI转换Performance EngineeringHardwareMemcpyAlignmentPerformance TestingRust编程语言所有权结构体变量类型vLLMVision Language Modelsmulti_modal_datapreemptionchunked prefillLLMperformance tuning翻译单元编译链接加载ABI头文件源文件可执行文件预处理语法分析语义分析目标文件静态库共享库默认模板参数内联作用域程序初始化主函数paged attention多模态数据连续批量处理预emptionConan1.3settingsprofilescross-compilation版本更新依赖管理构建工具包管理













