应用 waPC (rust) 做软件测试工具prevent maintenance issues API 测试 - Wasm Mock Server 用 rust, 好处多 软件测试工具 • Url param ?loop=2 • index 取 _i • Command 定义是 URL extern crate wapc_guest as guest; use guest::prelude::*; extern crate wasm_mock_util; wasm_mock_util; use wasm_mock_util::*; fn command(msg: &[u8]) -> CallResult { let i = foo_index!(); let mut command = String::from("http://localhost:8000/t.json"); Ok(command.as_bytes().to_vec()) http1x • foo_index! 里取 _i • 在 response_marshalling 里 foo_assert_eq!() fn request(_msg: &[u8]) -> CallResult { //Change here let index = foo_index!(); let mainHttpRes = match index{ 0=>{0 码力 | 30 页 | 2.50 MB | 1 年前3
Bringing Existing Code to CUDA Using constexpr and std::pmrauto operator()(index i) const { return a_[i] + b_[i]; } }; struct add_span { gsl::spana_; gsl::span b_; auto operator()(index i) const { return device, • Callable from the device only. https://docs.nvidia.com/cuda/cuda-c-programming-guide/ index.html#function-declaration-specifiers 36 |The __host__ execution space specifier declares a function the function is compiled for the host only. https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#host Execution Space Specifiers 37 |__host__ __device__ void _add(std::size_t n, float const* 0 码力 | 51 页 | 3.68 MB | 6 月前3
谈谈MYSQL那点事ENGINES SHOW ENGINES 使用 使用 DESC TABLE xxx DESC TABLE xxx 来查看表结构,使用 来查看表结构,使用 SHOW SHOW INDEX INDEX FROM xxx FROM xxx 来查看表索引 来查看表索引 使用 使用 LOAD DATA LOAD DATA 导入数据比 导入数据比 INSERT Type: Type: 类型,是否使用了索引还是全表扫描 类型,是否使用了索引还是全表扫描 , const,eg_reg,ref,range,index,ALL , const,eg_reg,ref,range,index,ALL Key: Key: 实际使用上的索引是哪个字段 实际使用上的索引是哪个字段 Ken_len: Ken_len:0 码力 | 38 页 | 2.04 MB | 1 年前3
C++高性能并行编程与优化 - 课件 - 08 CUDA 开启的 GPU 编程行时检测到的版本。编译器默认就是最老 的 52 ,能兼容所有 GTX900 以上显卡。 https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html#extended-notation 针对不同的架构,使用不同的代码 通过 CMake 设置架构版本号 • 可以用 CMAKE_CUDA_ARCHITECTURES 这个变量 ,设置要针对哪个架构生成 acosf , fmodf , fabsf , fminf , fmax f 。 https://docs.nvidia.com/cuda/cuda-c-best-practices-guide/index.html#math-libraries 稍微快一些,但不完全精确的 __sinf • 两个下划线的 __sinf 是 GPU intrinstics ,精度相当于 GLSL 里的那种。 , b) 把多个迭代器合并起来,相当于 Python 里的 zip 。 • 然后在函数体里通过 auto const &tup 捕获,并通过 thrust::get<index>(tup) 获取这个合并 迭代器的第 index 个元素……之所以他搞这么复杂,其实是因为 thrust 需要兼容一些“老年 程序”爱用的 C++03 ,不然早该换成 C++11 的 std::tuple 和 C++170 码力 | 142 页 | 13.52 MB | 1 年前3
RustBelt - Rust 的形式化语义模型unsafe codes in Rust’s standard library. use after free data race array-index overflow use after free data race array-index overflow ?? ? ... RustBelt Project Background Ralf Jung, et. al. RustBelt:0 码力 | 21 页 | 2.63 MB | 1 年前3
C++高性能并行编程与优化 - 课件 - 03 现代 C++ 进阶:模板元编程std::holds_alternative • 可以用 std::holds_alternative判断当 前里面存储的是不是 int 。 variant :判断当前是哪个类型用 v.index() • 除了这个之外,还可以用成员方法 index() 获取当前是参数列表中的第几个类型。这 样也可以实现判断。 variant :批量匹配 std::visit • 如果你的 if-else 每个分支长得都差不多(除了 0 码力 | 82 页 | 12.15 MB | 1 年前3
GPU Resource Management On JDOS用户只需要填写模型地址即 可 GPU 监控 • 容器监控服务,自适 应 GPU 容器,可根据 容器 IP 查询记录 , 便 于用户查看服务状态 ,亦可作为 HPA 的数 据源 • 采集项 name,index,fan.speed,te mperature.gpu,pstate,po wer.draw,power.limit,me mory.used,memory.total, utilization.gpu0 码力 | 11 页 | 13.40 MB | 1 年前3
ClickHouse: настоящее и будущееBrytlyt HyPER Pinot kdb+ Shakti MemSQL (SingleStore) Vertica SAP HANA Sybase IQ MS SQL with CS index Oracle Exadata IBM Netezza, IBM BLU TiDB Hawq Vectorwise Snowflake Citus Druid jd MariaDB CS0 码力 | 32 页 | 2.62 MB | 1 年前3
Finding Bugs using Path-Sensitive Static AnalysisRefinementMSVC has both Path-sensitive • Use after move • Concurrency checks • Variant clear • Enum Index • HResult • Nullptr dereference • more to come.. Flow-sensitive • Coroutine lifetime checks • Most0 码力 | 35 页 | 14.13 MB | 6 月前3
C++高性能并行编程与优化 - 课件 - 09 CUDA C++ 流体仿真实战https://github.com/parallel101/course CUDA 纹理对象 https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#texture-and-surface-memory CUDA 多维数组:封装 • cudaMalloc3DArray 用于分配一个三维数组。 各维度上的大小通过 cudaExtent0 码力 | 58 页 | 14.90 MB | 1 年前3
共 13 条
- 1
- 2













