Back To Basics Lifetime Management0 码力 | 66 页 | 8.43 MB | 6 月前3
Libraries: A First Step Toward Standard C++ Dependency Management1October 3, 2023 2 Libraries: A First Step Toward Standard C++ Dependency Management Bret Brown, C++ Infrastructure Lead, Bloomberg Bill Hoffman, CTO, KitwareHello! Welcome! Bret Brown C++ Infrastructure portable as the code they contain! ● ✓ Projects should be “cattle,” not “pets”! 7Why dependency management? 8Consensus: Managing dependencies == way too hard Q: Which of these do you find frustrating names: jsonlogConfig.cmake Jsonlog-config.cmake # ... CMake gives you some dependency management tips here ... 13 Aside: Coloring and bolding added for emphasisMotivation: What would we design0 码力 | 82 页 | 4.21 MB | 6 月前3
Casdoor · An Open Source UI-first Identity Access Management (IAM) / Single-Sign-On (SSO) platform supportingOv Over erview view Casdoor is a UI-first Identity Access Management (IAM) / Single-Sign-On (SSO) platform based on OAuth 2.0, OIDC, SAML, and CAS. Casdoor serves both the web UI and the login requests separate architecture, developed by Golang. It supports high concurrency, provides a web-based UI for management, and supports localization in 10+ languages. 2. Casdoor supports third-party application login and it supports extending third-party login with plugins. 3. Casdoor supports authorization management based on Casbin. It supports ACL, RBAC, ABAC, and RESTful access control models. 4. Casdoor provides0 码力 | 825 页 | 58.31 MB | 1 年前3
Comprehensive Rust(English) 202412Welcome to Day 3 109 19 Memory Management 110 19.1 Review of Program Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . 110 3 19.2 Approaches to Memory Management . . . . . . . . . . . . . . Morning (2 hours and 20 minutes, including breaks) Segment Duration Welcome 3 minutes Memory Management 1 hour Smart Pointers 55 minutes • Day 3 Afternoon (1 hour and 55 minutes, including breaks) sees the Android.bp files in src/android/. Ensure that adb sync works with your emulator or real device and pre-build all Android examples using src/android/build_all.sh. Read the script to see the commands0 码力 | 382 页 | 1.00 MB | 10 月前3
Comprehensive Rust ?Welcome to Day 3 105 19 Memory Management 106 19.1 Review of Program Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . 106 3 19.2 Approaches to Memory Management . . . . . . . . . . . . . . Morning (2 hours and 20 minutes, including breaks) Segment Duration Welcome 3 minutes Memory Management 1 hour Smart Pointers 55 minutes • Day 3 Afternoon (1 hour and 55 minutes, including breaks) sees the Android.bp files in src/android/. Ensure that adb sync works with your emulator or real device and pre-build all Android examples using src/android/build_all.sh. Read the script to see the commands0 码力 | 378 页 | 1009.46 KB | 1 年前3
MuPDF 1.22.0 DocumentationRGB pixmap. */ fz_try(ctx) pix = fz_new_pixmap_from_page_number(ctx, doc, page_number, ctm, fz_ ˓→device_rgb(ctx), 0); fz_catch(ctx) { fprintf(stderr, "cannot render page: %s\n", fz_caught_message(ctx)); different threads are allowed to use the same device.” Calling a device simultaneously from different threads will cause it to get confused and may crash. Calling a device from several different threads is perfectly 2.4. Multi-threading 13 MuPDF Documentation, Release 1.21.2 (continued from previous page) fz_device *dev = NULL; fprintf(stderr, "thread at page %d loading!\n", pagenumber); // The context pointer0 码力 | 175 页 | 698.87 KB | 8 月前3
MuPDF 1.23.0 DocumentationDisplayListDevice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 6.16 Device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . RGB pixmap. */ fz_try(ctx) pix = fz_new_pixmap_from_page_number(ctx, doc, page_number, ctm, fz_ ˓→device_rgb(ctx), 0); fz_catch(ctx) { fprintf(stderr, "cannot render page: %s\n", fz_caught_message(ctx)); different threads are allowed to use the same device.” Calling a device simultaneously from different threads will cause it to get confused and may crash. Calling a device from several different threads is perfectly0 码力 | 245 页 | 817.74 KB | 8 月前3
MuPDF 1.25.0 DocumentationDisplayListDevice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 7.16 Device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . RGB pixmap. */ fz_try(ctx) pix = fz_new_pixmap_from_page_number(ctx, doc, page_number, ctm, fz_ ˓→device_rgb(ctx), 0); fz_catch(ctx) { fz_report_error(ctx); fprintf(stderr, "cannot render page\n"); fz_drop_document(ctx different threads are allowed to use the same device.” Calling a device simultaneously from different threads will cause it to get confused and may crash. Calling a device from several different threads is perfectly0 码力 | 259 页 | 1.11 MB | 8 月前3
MuPDF 1.24.0 DocumentationDisplayListDevice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 6.16 Device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . RGB pixmap. */ fz_try(ctx) pix = fz_new_pixmap_from_page_number(ctx, doc, page_number, ctm, fz_ ˓→device_rgb(ctx), 0); fz_catch(ctx) { fz_report_error(ctx); fprintf(stderr, "cannot render page\n"); fz_drop_document(ctx different threads are allowed to use the same device.” Calling a device simultaneously from different threads will cause it to get confused and may crash. Calling a device from several different threads is perfectly0 码力 | 249 页 | 830.15 KB | 8 月前3
Heterogeneous Modern C++ with SYCL 2020Parallel STL ... C++ templates and lambda functions separate host & accelerated device code Accelerated code passed into device OpenCL compilers Complex ML frameworks can be directly compiled and accelerated work is dispatch to an accelerator via a queue Here we create a queue which will target a GPU device #includeint main(int argc, char *argv[]) { std::vector dA{ … }, dB{ … construct the queue is a device selector which provides a heuristic for choosing a device Here we use one of the standard device selectors gpu_selector_v SYCL 2020: Device selectors are now simply 0 码力 | 114 页 | 7.94 MB | 6 月前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100













