C++高性能并行编程与优化 - 课件 - 11 现代 CMake 进阶指南语句里,从而只有某些选项开启才启用某语言之类的 设置 C++ 标准: CMAKE_CXX_STANDARD 变量 • CMAKE_CXX_STANDARD 是一个整数,表示要用的 C++ 标准。 • 比如需要 C++17 那就设为 17 ,需要 C++23 就设为 23 。 • CMAKE_CXX_STANDARD_REQUIRED 是 BOOL 类型,可以为 ON 或 OFF ,默认 OFF ON 则发现不支持报错,更安 全。 https://crascit.com/2015/03/28/enabling-cxx11-in-cmake/ 设置 C++ 标准: CMAKE_CXX_STANDARD 变量 • CMAKE_CXX_EXTENSIONS 也是 BOOL 类型,默认为 ON 。设为 ON 表示启用 GCC 特有的一些扩展功能; OFF 则关闭 GCC 的扩展功能,只使用标准的 的扩展功能,只使用标准的 C++ 。 • 要兼容其他编译器(如 MSVC )的项目,都会设为 OFF 防止不小心用了 GCC 才有的 特性。 • 此外,最好是在 project 指令前设置 CMAKE_CXX_STANDARD 这一系列变量,这样 CMake 可以在 project 函数里对编译器进行一些检测,看看他能不能支持 C++17 的特 性。 https://crascit.com/2015/03/20 码力 | 166 页 | 6.54 MB | 1 年前3
C++高性能并行编程与优化 - 课件 - 08 CUDA 开启的 GPU 编程仅针对单个程序 只对 main 这个程序启用: 对下方所有的程序启用(推荐): 顺便一提, CXX_STANDARD 和 CUDA_ARCHITECTURES 也有 这两种方式,我一般推荐直接设置全局的 CMAKE_CXX_STANDARD 即可应用到全部 add_executable/add_library 的对象上,比较方便。 进一步:核函数调用核函数 • 从 Kelper 架构开始, __global__ ,总感觉是几百年前的编程语言。 • 现在很多“老年”教材对 cpp 的认识也停留在 C++03 , B 站 / 油管偶尔翻出几个介绍 C++11 新特性的视频已经算很先进很前卫了,然而现在 C++23 的标准都已经开始往官网上挂了…… 第 7 章:原子操作 经典案例:数组求和 • 如何并行地对数组进行求和操作? • 首先让我们试着用串行的思路来解题。 • 因为 __global__ 函数不能返回值,只能0 码力 | 142 页 | 13.52 MB | 1 年前3
Kotlin 1.9.10 官方文档 中文版
mobile Competitive programming Kotlin for competitive programming Kotlin standard library Tutorials on using the standard library Talking Kotlin podcast Talking Kotlin podcast Kotlin for educators Stories the GitHub repository with Kotlin/Wasm examples 库支持 You can use the Kotlin standard library ( stdlib ) and test library ( kotlin.test ) in Kotlin/Wasm out of the box. The version of these libraries 社区创建的用于数据相关任务的类库生态系统正在迅速扩展。 以下是一 些可能会有用的库: Kotlin 库 Multik: multidimensional arrays in Kotlin. The library provides Kotlin- idiomatic, type- and dimension-safe API for mathematical operations over multidimensional0 码力 | 3753 页 | 29.69 MB | 1 年前3
Blender v4.1 Manualversion of Blender, such as a complex internal software architecture, unfinished features and a non- standard way of providing the GUI, the enthusiastic support from the user community and customers who had add-ons, bug fixes, and more extensions added for the Python API. 2.62 – February 2012: The Carve library was added to improve Boolean operations, support for object tracking was added, the Remesh modifier May 2013: Freestyle was added, paint system improvements, subsurface scattering for Cycles, Ceres library in the motion tracker, new custom Python nodes, new mesh modeling tools, better support for UTF-80 码力 | 6263 页 | 303.71 MB | 1 年前3
使用 PlantUML 绘制 UML - PlantUML 语言参考指引(Version 1.2021.2)gradient You can declare individual colors for classes, notes etc using the # notation. You can use standard color names or RGB codes in various notations, see Colors. You can also use color gradient for (NWDIAG) [Ref. QA-12056] 13.5 Using Sprites You can use all sprites (icons) from the Standard Library or any other library. Use the notation <$sprite> to use a sprite, to make a new line, or any other Creole Archimate Macros and Library A list of Archimate macros are defined Archimate-PlantUML here which simplifies the creation of Archi- Mate diagrams, and Archimate is natively on the Standard Library of PlantUML0 码力 | 381 页 | 4.05 MB | 1 年前3
PlantUML 1.2021.1 语言参考指引gradient You can declare individual colors for classes, notes etc using the # notation. You can use standard color names or RGB codes in various notations, see Colors. You can also use color gradient for (NWDIAG) [Ref. QA-12056] 12.5 Using Sprites You can use all sprites (icons) from the Standard Library or any other library. Use the notation <$sprite> to use a sprite, to make a new line, or any other Creole Archimate Macros and Library A list of Archimate macros are defined Archimate-PlantUML here which simplifies the creation of Archi- Mate diagrams, and Archimate is natively on the Standard Library of PlantUML0 码力 | 376 页 | 4.00 MB | 1 年前3
Kotlin 官方文档中文版 v1.9mobile Competitive programming Kotlin for competitive programming Kotlin standard library Tutorials on using the standard library Talking Kotlin podcast Talking Kotlin podcast Kotlin for educators Stories the GitHub repository with Kotlin/Wasm examples 库支持 You can use the Kotlin standard library ( stdlib ) and test library ( kotlin.test ) in Kotlin/Wasm out of the box. The version of these libraries 展。 以下是一些可能会有用 的库: Kotlin 用于数据科学 44 Kotlin 库 Multik: multidimensional arrays in Kotlin. The library provides Kotlin-idiomatic, type- and dimension-safe API for mathematical operations over multidimensional0 码力 | 2049 页 | 45.06 MB | 1 年前3
PlantUML 1.2021.3 语言参考指引gradient You can declare individual colors for classes, notes etc using the # notation. You can use standard color names or RGB codes in various notations, see Colors. You can also use color gradient for (NWDIAG) [Ref. QA-12056] 13.5 Using Sprites You can use all sprites (icons) from the Standard Library or any other library. Use the notation <$sprite> to use a sprite, to make a new line, or any other Creole Archimate Macros and Library A list of Archimate macros are defined Archimate-PlantUML here which simplifies the creation of Archi- Mate diagrams, and Archimate is natively on the Standard Library of PlantUML0 码力 | 398 页 | 4.22 MB | 1 年前3
KiCad 6.0 原理图编辑器The Schematic Editor is an integrated application where all functions of drawing, control, layout, library management and access to the PCB design software are carried out within the editor itself. The lists all the electrical connections, for other packages. The Schematic Editor includes a symbol library editor, which can create and edit symbols and manage libraries. It also integrates the following the manual. 初始配置 When the Schematic Editor is run for the first time, if the the global symbol library table file sym-lib-table is not found in the KiCad configuration folder then KiCad will ask how0 码力 | 141 页 | 5.23 MB | 1 年前3
使用 PlantUML 绘制 UML - PlantUML 语言参考指引(Version 1.2023.11)网络图(NWDIAG) [Ref. QA-12056] 13.5 Using Sprites You can use all sprites (icons) from the Standard Library or any other library. Use the notation <$sprite> to use a sprite, to make a new line, or any other Creole Archimate Macros and Library A list of Archimate macros are defined Archimate-PlantUML here which simplifies the creation of Archi- Mate diagrams, and Archimate is natively on the Standard Library of PlantUML custom listing is in color.) • Study the in-depth Hitchhiker’s Guide to PlantUML, eg sections Standard Library Sprites and PlantUML Stdlib Overview 23.7 Listing Sprites You can use the listsprites command0 码力 | 539 页 | 7.74 MB | 1 年前3
共 519 条
- 1
- 2
- 3
- 4
- 5
- 6
- 52













