C++20: An (Almost) Complete Overviewthe caller, and suspends the coroutine, subsequently calling the coroutine again continues its execution co_return: returns from a coroutine (just return is not allowed)16 Coroutines What are coroutines Can be used with condition_variable_any std::stop_source Used to request a thread to stop execution Stop requests are visible to all associated stop_sources and stop_tokens std::stop_callback numbers lerp() to do linear interpolation New unsequenced_policy (execution::unseq): algorithm is allowed to be vectorized84 Agenda Modules Ranges Coroutines Concepts Lambda Expression0 码力 | 85 页 | 512.18 KB | 6 月前3
Working with Asynchrony Generically: A Tour of C++ Executorsincluding some standard ones: an event loop, portable access to the system execution context, nursery for spawned work4 P2300: STD::EXECUTION Proposes: • A set of concepts that represent: • A handle to a compute Example 1: Launching concurrent work6 EXAMPLE: LAUNCHING CONCURRENT WORK namespace ex = std::execution; int compute_intensive(int); int main() { unifex::static_thread_pool pool{8}; ex::scheduler concurrently on a custom execution context libunifex: https://github.com/facebookexperimental/libunifex7 EXAMPLE: LAUNCHING CONCURRENT WORK namespace ex = std::execution; int compute_intensive(int);0 码力 | 121 页 | 7.73 MB | 6 月前3
Bringing Existing Code to CUDA Using constexpr and std::pmrfloat* y) { for (int i = 0; i < n; i++) y[i] = x[i] + y[i]; } 35 |Execution Space Specifiers The __global__ execution space specifier declares a function as being a kernel. Such a function is: is: • Executed on the device, • Callable from the host. The __device__ execution space specifier declares a function that is: • Executed on the device, • Callable from the device only. https://docs __host__ execution space specifier declares a function that is: • Executed on the host, • Callable from the host only. It is equivalent to declare a function with only the __host__ execution space specifier0 码力 | 51 页 | 3.68 MB | 6 月前3
nativescript-new-looper-vantoll.pptxapp size Threading ⛓ • NativeScript = single threaded, by default ? • Samples for background execution are now available. • WebWorkers API coming soon Angular ? • Angular 2 final—Now 100% more a0 码力 | 36 页 | 10.78 MB | 1 年前3
A Crash Course in Calendars, Dates, Time, and Time Zoneslocaltime(&tt) }; // Write the time to the console. cout << put_time(t, "%H:%M:%S");22 Clocks Time execution time: // Get start time. auto start { high_resolution_clock::now() }; // Execute code to benchmark0 码力 | 43 页 | 551.60 KB | 6 月前3
新一代分布式高性能图数据库的构建 - 沈游人Program API Analysis rules Optimization rules: MATCH -> pushdown Planning Strategies Graph Execution Code Gen JIT Cost model Storage backend ( Property Graph KV store ) Pushdown filter Cypher0 码力 | 38 页 | 24.68 MB | 1 年前3
共 6 条
- 1













