Regular, Revisited
• Rearrangements • Partition and Merging • Composite Objects elementsofprogramming.com Free PDF2023 Victor Ciura | @ciura_victor - Regular, Revisited 32 Slide Title Mathematics Really Does Generic Programming James C. Dehnert and Alexander Stepanov 1998 http://stepanovpapers.com/DeSt98.pdf Generic programming depends on the decomposition of programs into components which may be developed Generic Programming James C. Dehnert and Alexander Stepanov 1998 http://stepanovpapers.com/DeSt98.pdf Among the interfaces of interest, the most pervasively and unconsciously used, are the fundamental0 码力 | 180 页 | 19.96 MB | 5 月前3Exceptions Under the Spotlight
Exception Handling for C++ / Andrew Koenig Bjarne Stroustrup: https://www.stroustrup.com/except89.pdf • Exception handling: A false sense of security / Tom Cargill: https://ptgmedia.pearsoncmg.com/im Report on C++ Performance (2006) / Various authors: http://www.open-std.org/jtc1/sc22/wg21/docs/TR18015.pdf • Exception handling on Itanium ABI/ Various authors: http://refspecs.linux-foundation.org/abi-eh-1 https://www.research.ed.ac.uk/portal/files/78829292/low_cost_deterministic_C_exceptions_for_embedded_systems.pdf • ARM ABI: https://developer.arm.com/documentation/ihi0038/b On-going proposals: • P0323R9: std::expected:0 码力 | 53 页 | 2.82 MB | 5 月前3Shared Libraries
executable 33 https://gitlab.com/x86-psABIs/x86-64-ABI/-/jobs/artifacts/master/raw/x86-64-ABI/abi.pdf?job=build auto* pf = &f; lib1 .dynsym f: .plt_exe+8C++ Implication #4: Comparing Func Ptrs 54Resources • Ulrich Drepper: “How to write shared libraries” • http://library.bagrintsev.me/CPP/dsohowto.pdf • Eli Benderski: • https://eli.thegreenplace.net/2011/08/25/load-time-relocation-of-shared-libraries/ Pointers in LLVM” Piotr Padlewski, Krzysztof Pszeniczny, Richard Smith , https://arxiv.org/pdf/2003.04228.pdf • “Our benchmarks show an average of 0.8% performance improvement on real- world C++ programs0 码力 | 69 页 | 1.40 MB | 5 月前3C++高性能并行编程与优化 - 课件 - 10 从稀疏数据结构到量化数据类型
com/zenustech/zeno Taichi 也支持稀疏数据结构 • https://yuanming.taichi.graphics/publication/2019-taichi/taichi-lang-slides.pdf 第 4 章:并行与随机访问 回到指针的数组 试图并行地访问:出错了 为什么?因为多个核心同时访问了 m_block ,造成数据竞争。所 以有的指针被重复分配了两遍,写入了那个地址却没有实际被存到 taichi.graphics/publication/2021-quantaichi/quantaichi.pdf 小彭老师第一时间赶到现场锐评 • https://yuanming.taichi.graphics/publication/2021-quantaichi/quantaichi.pdf ← ??? 第 7 章: SPGrid 操作系统管理内存的最小单位:页( 4KB ) • 当调用 SPGrid ,不过 GPU 的 页大小是 2MB ,王鑫磊最近研究过这个,因为太繁 琐而放弃了。 http://pages.cs.wisc.edu/~sifakis/papers/SPGrid.pdf 今天的回家作业 • 用稀疏数据结构改良康威生命游戏 (conway’s game of life) 的代码。 • 要求:自动扩展边界,按需分配内存,垃圾回收及时释放全零的块,用量化的 bit0 码力 | 102 页 | 9.50 MB | 1 年前32020: The Year of Sanitizers?
👉24 Lifetime profile v1.0 https://github.com/isocpp/CppCoreGuidelines/blob/master/docs/Lifetime.pdf This is important because it turns out to be easy to convert [by design] a std::string to a std::string_view Sanitizers?25 Lifetime profile v1.0 https://github.com/isocpp/CppCoreGuidelines/blob/master/docs/Lifetime.pdf CppCoreGuidelines void example() { std::string_view sv = std::string("dangling"); // A std::cout Sanitizers?25 Lifetime profile v1.0 https://github.com/isocpp/CppCoreGuidelines/blob/master/docs/Lifetime.pdf CppCoreGuidelines void example() { std::string_view sv = std::string("dangling"); // A std::cout0 码力 | 135 页 | 27.77 MB | 5 月前3Visual Studio Code: CppCon 2023
an unsupported PDF viewer. To open this document, use a PDF viewer that supports Azure Rights Management or contact the document owner to grant you permissions. Learn about PDF documents protected0 码力 | 1 页 | 3.10 MB | 5 月前3C++高性能并行编程与优化 - 课件 - 08 CUDA 开启的 GPU 编程
里直接加你 的 .cu 文件,和 .cpp 一样。 https://www.nvidia.cn/docs/IO/51635/NVIDIA_CUDA_Programming_Guide_1.1_chs.pdf CUDA 编译器兼容 C++17 • CUDA 的语法,基本完全兼容 C++ 。包括 C+ +17 新特性,都可以用。甚至可以把任何一个 C++ 项目的文件后缀名全部改成 .cu ,都能编 同样是缩并到一定小的程度开始就切断 (cutoff) ,开始用 CPU 串行求和。 https://developer.download.nvidia.cn/assets/cuda/files/reduction.pdf 编译器真智能! • 刚刚说到虽然用了 atomicAdd 按理说是非常低 效的,然而却没有低效,这是因为编译器自动优 化成刚刚用 BLS 的数组求和了!可以看到他优 化后的效率和我们的 BLS 架构来说,每个线程最多可以有 63 个寄存器(每个有 4 字节)。 https://developer.download.nvidia.cn/CUDA/training/register_spilling.pdf 板块中的线程数量过少:延迟隐藏( latency hiding )失效 • 我们说过,每个 SM 一次只能执行板块中的一个线程组( warp ),也就是 32 个线程。 • 而当线程组陷入内0 码力 | 142 页 | 13.52 MB | 1 年前3C++ in the Developing World, Why it Matters
available as a package on arch-linux. • Get Reference material like the Pdf of the microsoft developer website C++ documentation on PDF. • Buy Good Books On C++ When you Can Afford To. Share Compute Resources0 码力 | 8 页 | 177.52 KB | 5 月前3Code Analysis++
link/p2388, http://wg21.link/p2182 ● Parameter passing: https://github.com/hsutter/708/blob/main/708.pdf ○ in / inout / out / move / forward semantics ○ Still under discussion, no implementation so farCompiler Annual C++ Developer Survey "Lite"](https://isocpp.org/files/papers/CppDevSurvey-2021-04- summary.pdf) 5. [Lifetime safety: Preventing common dangling](http://wg21.link/p1179) 6. [Lifetime analysis0 码力 | 61 页 | 2.70 MB | 5 月前3Linear Algebra Coming to Standard C++
Nov. 1973. Available online: https://ntrs.nasa.gov/api/citations/19740005175/downloads/19740005175.pdf [last accessed 2023/09/12]. A. S. Householder, The Theory of Matrices in Numerical Analysis, Dover https://www.npl.co.uk/getattachment/about-us/History/Famous-faces/Alan- Turing/turing-proposal-Alan-LR.pdf?lang=en-GB [last accessed 2023/09/14]. J. H. Wilkinson and C. Reinsch, Handbook for Automatic Computation0 码力 | 46 页 | 2.95 MB | 5 月前3
共 87 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9