C++高性能并行编程与优化 - 课件 - 03 现代 C++ 进阶:模板元编程# 现代 C++ 进阶:模板元编程 by 彭于斌 (@archibate) 往期录播:https://www.bilibili.com/video/BV1fa411r7zp 课程 PPT 和代码:https://github.com/parallel101/course ## 高性能并行编程与优化 - 课程大纲 • 分为前半段和后半段,前半段主要介绍现代 C++,后半段主要介绍并行编程与优化。 C++,后半段主要介绍并行编程与优化。 1. 课程安排与开发环境搭建:cmake 与 git 入门 2. 现代 C++ 入门:常用 STL 容器,RAII 内存管理 3. 现代 C++ 进阶:模板元编程与函数式编程 4. 编译器如何自动优化:从汇编角度看 C++ 5. C++11 起的多线程编程:从 mutex 到无锁并行 6. 并行编程常用框架:OpenMP 与 Intel TBB 7. 被忽视的访存优化:内存带宽与 用户) CMake 3.12 及以上(跨平台作业) Git 2.x(作业上传到 GitHub) CUDA Toolkit 10.0 以上(GPU 专题) ## I ❤️ C ## 为什么需要模板函数(template) - 避免重复写代码。 • 比如,利用重载实现“将一个数乘以 2”这个 ## 功能,需要: 为什么面向对象在 HPC 不如函数式和元编程香了?这个例子要是按传统的面向对象思想,可能是这样:令0 码力 | 82 页 | 12.15 MB | 2 年前3
Falcon v1.4.1 DocumentationGitter Falcon tries to do as little as possible while remaining highly effective. • Routes based on URI templates RFC • REST-inspired mapping of URIs to resources • Global, resource, and method hooks large-scale deployments. ## Features • Highly-optimized, extensible code base • Intuitive routing via URI templates and REST-inspired resource classes • Easy access to headers and bodies through request and on_get() responder. Any URI parameters that you specify in your routes will be turned into corresponding kwargs and passed into the target responder as such. We’ll see how to specify URI parameters in a moment0 码力 | 156 页 | 574.46 KB | 2 年前3
Back to Basics: Templates - Part 10 码力 | 68 页 | 436.75 KB | 1 年前3
Embracing CTAD0 码力 | 98 页 | 4.62 MB | 1 年前3
Falcon v1.1.0 DocumentationFeatures Falcon tries to do as little as possible while remaining highly effective. • Routes based on URI templates RFC • REST-inspired mapping of URIs to resources • Global, resource, and method hooks also: falcon.API). ### Why are trailing slashes trimmed from req.path? Falcon normalizes incoming URI paths to simplify later processing and improve the predictability of application logic. In addition “/foo/bar/”. Requests coming in for either path will be sent to the same resource. ## Why are field names in URI templates restricted to certain characters? Field names are restricted to the ASCII characters in0 码力 | 113 页 | 426.53 KB | 2 年前3
Django 4.1.x Documentation0 码力 | 3240 页 | 3.13 MB | 2 年前3
Django 官方教程翻译项目- 初识 Django - 设计模型 - 创建模型 - 享用便捷的 API - 动态生成的管理页面:并非徒有其表 - 规划 URL - 编写视图 - 设计模板 - 这只是冰山一角 ## 初识 Django Django 最初被设计用于具有快速开发需求的新闻类站点,目的是要实现简单快捷的网站开发。以下内容简要介绍了如何使用 Django 实现一个数据库驱动的 视图函数的执行结果只可能有两种:返回一个包含请求页面内容的 HttpResponse 对象;或者是抛出 Http404 这类异常。至于视图接下来还要做什么则由你决定。 通常来说,一个视图的工作就是:从参数获取数据,加载模板,然后模板进行带数据的渲染。下面是一个 year_archive 的视图例子: # mysite/news/views.py from Django.shortcuts import render from context) 这个例子使用了 Django 的模板系统,它有着很多强大的功能,而且使用起来足够简单,即使不是程序员也可轻松使用。 ## 设计模板 上面的代码加载了 news/year_archive.html 这个模板。 Django 允许设置搜索模板路径,这样可以最小化模板之间的冗余。在Django设置中,你可以通过 DIRS 参数指定目录列表来检索模板。如果模板不在第一个目录中,就继续检查第二个,以此类推。0 码力 | 103 页 | 1.86 MB | 1 年前3
Back to Basics: Templates Part 20 码力 | 80 页 | 490.15 KB | 1 年前3
Dependency Injection in C++0 码力 | 106 页 | 1.76 MB | 1 年前3
Back To Basics Functions0 码力 | 123 页 | 7.26 MB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100













