C++高性能并行编程与优化 - 课件 - 09 CUDA C++ 流体仿真实战CUDA 编译器,链接 OpenVDB 在 Blender 中查看导出的结果 边界条件 边界条件:初始化 边界条件:添加判断边界的版本 边界条件:仅在第一层额外判断边界条件 进一步改进 VDB 导出:支持导出多个网格,并指定名称 进一步改进 VDB 导出: P-IMPL 模式 进一步改进 VDB 导出: F-IMPL 模式 Blender 渲染结果 改进 改进边界条件:外部边界流出而不是反弹,内部边界可以流出速度 改进边界条件:外部边界流出而不是反弹,内部边界可以流出速度 Blender 中调整一下材质 Blender 中调整一下材质 改进对流:让烟雾随时间逐渐褪色 改进对流:让烟雾随时间逐渐褪色 改进褪色:不是褪色 density ,而是褪色 temperature 改进褪色:不是褪色 density ,而是褪色 temperature 改进褪色:不是单纯地乘以 decayRate ,还和周围环境温度求平均值0 码力 | 58 页 | 14.90 MB | 1 年前3
C++高性能并行编程与优化 - 课件 - 05 C++11 开始的多线程编程函数,从而保证 pool 解 构时会自动等待全部线程执行完毕。 小彭老师快乐吐槽时间 • 多线程、异步、无阻塞、并发,能提升程序响应速度,对现实世界中的软件工程至关重要 。 • 反面教材: blender 在运行物理解算的时候,界面会卡住,算完一帧后窗口才能刷新一遍 ,导致解算过程中基本别想做事,这一定程度上归功于 opengl 原始的单线程设计。 • 正面教材: zeno 可以在解算过程中0 码力 | 79 页 | 14.11 MB | 1 年前3
C++23: An Overview of Almost All New and Updated FeaturesBefore Line Splicing C++23 Standard Library String Formatting Improvements Standard Library Modules std::flat_(multi)map / std::flat_(multi)set std::mdspan std::generator basic_string(_view)::contains() Before Line Splicing C++23 Standard Library String Formatting Improvements Standard Library Modules std::flat_(multi)map / std::flat_(multi)set std::mdspan std::generator basic_string(_view)::contains() Before Line Splicing C++23 Standard Library String Formatting Improvements Standard Library Modules std::flat_(multi)map / std::flat_(multi)set std::mdspan std::generator basic_string(_view)::contains()0 码力 | 105 页 | 759.96 KB | 6 月前3
C++20: An (Almost) Complete Overviewstandard passed ISO voting, expected to be formally published by the end of 2020.4 Agenda Modules Ranges Coroutines Concepts Lambda Expression Changes [=, this] as Lambda Capture co_yield char8_t New identifiers: import moduleModules7 Modules Advantages Replace header files Modules explicitly state what should be exported (e.g. classes, functions, …) names, same name in multiple modules will not clash Modules are processed only once faster build times Preprocessor macros have no effect on, and never leak from, modules Order of module imports0 码力 | 85 页 | 512.18 KB | 6 月前3
NativeScript 101Everything Runs on UI Thread* • Plugins created with native code • React Support • API Access via Native Modules • UI Thread vs JS Thread • Angular/Vue/Vanilla vs React • Progress vs Facebook • Apache 2.0 vs native APIs still available at JavaScript layer for platform-specific scenarios o NativeScript modules follow Node module conventions (CommonJS) Example: NativeScript file module BUT HOW DO I TURN Pages/Views o XML markup structure o Elements (e.g., 0 码力 | 90 页 | 40.11 MB | 1 年前3
whats new in visual studiois now feature complete • All features under /std:c++20 switch are production ready including modules, coroutines, concepts • C++20 features awaiting DR resolution are available for now under /std:c++latest Concepts and Ranges Sy Brand, Christopher Di Bella – `Online _3 Mon, Oct 25 – 3:15pm Implementing C++ Modules: Lessons Learned, Lessons Abandoned Cameron DaCamara, Gabriel Dos Reis – _2 Thu, Oct 28 – 3:15pm and basic_string_view • Other small features 🕙 Coming next for C++23 • STL • Standard library modules • Coroutines 💡 C++98* * with /permissive- 💡 C++11 💡 C++14 💡 C++17 💡 C++20* *awaiting DR resolution0 码力 | 42 页 | 19.02 MB | 6 月前3
C++高性能并行编程与优化 - 课件 - 16 现代 CMake 模块化项目管理指南/usr/share/cmake/Modules 。 • 包搜索文件可以在不知道包具体位置信息的情况下搜索他们(在 /usr/lib 等默认路径搜 索)。 • 这些都是 CMake 自带的包搜索文件: • /usr/share/cmake/Modules/FindCUDAToolkit.cmake • /usr/share/cmake/Modules/FindPython.cmake find_package(TBB MODULE REQUIRED) • 只会寻找 FindTBB.cmake ,搜索路径: 1. ${CMAKE_MODULE_PATH} (默认为 /usr/share/cmake/Modules ) • find_package(TBB CONFIG REQUIRED) • 只会寻找 TBBConfig.cmake ,搜索路径: 1. ${CMAKE_PREFIX_PATH}/lib/cmake/TBB0 码力 | 56 页 | 6.87 MB | 1 年前3
绕过conntrack,使用eBPF增强 IPVS优化K8s网络性能More components will be open source later • Support more Linux distributions • Build IPVS kernel modules in Ubuntu, Centos • IPVS-eBPF next generation on the way • Implement IPVS SNAT with eBPF without0 码力 | 24 页 | 1.90 MB | 1 年前3
使用硬件加速Tokio - 戴翔provides the knobs needed to fine tune to different cases. Flexible Tokio Core Queue-Based Modules in Tokio • Channel • Scheduler • Tokio uses Channel for communication between threads (incl.0 码力 | 17 页 | 1.66 MB | 1 年前3
Finding Bugs using Path-Sensitive Static Analysisannouncements Take our survey https://aka.ms/cppconOur Sessions Monday 25th • Implementing C++ Modules: Lessons Learned, Lessons Abandoned – Cameron DaCamara & Gabriel Dos Reis Tuesday 26th • Documentation0 码力 | 35 页 | 14.13 MB | 6 月前3
共 13 条
- 1
- 2













