文件最后提交记录最后更新时间
修复cpp样例put两副本coredump的问题 Co-authored-by: wonder1121<wangdan@huawei.com> # message auto-generated for no-merge-commit merge: !123 merge develop into develop 修复cpp样例put两副本coredump的问题 Created-by: wonder1121 Commit-by: wonder1121 Merged-by: yrewzjsx Description: # Pull Request Template ## Description <!-- Provide a clear summary of the change, the problem it solves, and the technical approach. --> ## Related Issues <!-- Replace with actual issue numbers. Example: Closes #123, Related to #456 --> ## Type of Change - [ ] Bug fix - [ ] New feature - [ ] Performance optimization - [ ] Documentation update - [ ] Other (please describe):_______________ ## Testing <!-- Describe how the changes were tested. Include: - Unit/integration test coverage - Manual validation steps - Links to CI reports (e.g., CIDA) if available - Note any pending tests --> ## Checklist - [ ] I have performed a self-review of my own code. - [ ] I have updated the documentation. - [ ] I have added tests to prove my changes are effective. See merge request: Ascend/memcache!1233 个月前
update arch pic and example readme Co-authored-by: yrewzjsx<zhangjinshi2@huawei.com> # message auto-generated for no-merge-commit merge: !107 merge develop into develop update arch pic and example readme Created-by: yrewzjsx Commit-by: yrewzjsx Merged-by: chenyz6 Description: # Pull Request Template ## Description <!-- Provide a clear summary of the change, the problem it solves, and the technical approach. --> ## Related Issues <!-- Replace with actual issue numbers. Example: Closes #123, Related to #456 --> ## Type of Change - [ ] Bug fix - [ ] New feature - [ ] Performance optimization - [x] Documentation update - [ ] Other (please describe):_______________ ## Testing <!-- Describe how the changes were tested. Include: - Unit/integration test coverage - Manual validation steps - Links to CI reports (e.g., CIDA) if available - Note any pending tests --> ## Checklist - [ ] I have performed a self-review of my own code. - [ ] I have updated the documentation. - [ ] I have added tests to prove my changes are effective. See merge request: Ascend/memcache!1074 个月前
[fix] all example start failed Co-authored-by: j00808874<jiangchanghong3@huawei.com> # message auto-generated for no-merge-commit merge: !12 merge mr2 into develop [fix] all example start failed Created-by: j00808874 Commit-by: j00808874 Merged-by: chenyz6 Description: [fix] all example start failed See merge request: Ascend/memcache!125 个月前
README.md

代码实现介绍

本样例简单验证了MemCache相关接口

如果编译选择CANN依赖

本样例需要在npu环境下编译运行

首先,请在环境上提前安装NPU固件驱动和CANN包(环境安装参考链接)

当前HDK固件驱动需要使用特定版本(社区版HDK下载链接)

安装完成后需要配置CANN环境变量 (参考安装Toolkit开发套件包的第三步配置环境变量)

运行样例前请先编译安装 memfabric_hybrid的run包,默认安装路径为/usr/local/,然后source安装路径下的set_env.sh

memfabric_hybrid参考安装命令

bash memfabric_hybrid-1.0.0_linux_aarch64.run # 修改为实际的安装包名
bash memcache_hybrid-1.0.0_linux_aarch64.run  # 修改为实际的安装包名
source /usr/local/memfabric_hybrid/set_env.sh
source /usr/local/memcache_hybrid/set_env.sh

编译样例程序

在当前目录(memcache/example/cpp)执行如下命令即可

mkdir build
cmake . -B build
make -C build

启动元数据服务

export MMC_META_CONFIG_PATH=/usr/local/memcache_hybrid/latest/config/mmc-meta.conf;
export MMC_LOCAL_CONFIG_PATH=/usr/local/memcache_hybrid/latest/config/mmc-local.conf;
mmc_meta_service &

运行

设置大页(注:仅device rdma/host rdma等protocol需要设置)

 cat /proc/meminfo
 echo 2048 | sudo tee /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages

编译完成后,会在当前目录生成build/memcache_cpp_test可执行文件 执行方式如下,可交互式的执行put,get等操作命令。

root@localhost:/home/memcache_hybrid/example/cpp# ./build/memcache_cpp_test

手动执行put,get,remove

put  1
1
PutFrom result: 0, key: , replicas: 1
put k 1
PutFrom result: 0, key: k, replicas: 1
get k
Checking existence for key: k
GetInto result: 0
Retrieved data hash for key k: 18356023244072079545
remove k
Remove result: 0 for key: k
exit
Exiting program.