SlugLab / CXLMemSim

A place to store the CXL simulator
123 stars 20 forks source link

what is CXL-MEM-Simulator #2

Closed YFR718 closed 4 months ago

YFR718 commented 1 year ago

when i run LOGV=1 ./CXL-MEM-Simulator -t ./microbench/many_calloc -i 5 -c 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14 output: -bash: ./CXL-MEM-Simulator: No such file or directory

so,what is the file of CXL-MEM-Simulator,and how can I run it?

victoryang00 commented 1 year ago

You need to follow the cmake.yml to install.

Specifically, you need first install the sudo apt install llvm-dev clang libbpf-dev libclang-dev libcxxopts-dev libfmt-dev librange-v3-dev.

Then you need to install for upper version of libbpf using wget http://launchpadlibrarian.net/605552811/libbpf0_0.8.0-1_amd64.deb && wget http://launchpadlibrarian.net/605552807/libbpf-dev_0.8.0-1_amd64.deb && sudo dpkg -i ./libbpf0_0.8.0-1_amd64.deb && sudo dpkg -i ./libbpf-dev_0.8.0-1_amd64.deb and sudo sed -i 's/NL_SET_ERR_MSG_MOD/\/\/NL_SET_ERR_MSG_MOD/g' /usr/src/linux-headers-*/include/net/flow_offload.h

Then cmake -B ./build -DCMAKE_BUILD_TYPE=Debug, you will see the CXL-MEM-Simulator in the build dereictory.

orangewcz2000 commented 10 months ago

You need to follow the cmake.yml to install.

Specifically, you need first install the sudo apt install llvm-dev clang libbpf-dev libclang-dev libcxxopts-dev libfmt-dev librange-v3-dev.

Then you need to install for upper version of libbpf using wget http://launchpadlibrarian.net/605552811/libbpf0_0.8.0-1_amd64.deb && wget http://launchpadlibrarian.net/605552807/libbpf-dev_0.8.0-1_amd64.deb && sudo dpkg -i ./libbpf0_0.8.0-1_amd64.deb && sudo dpkg -i ./libbpf-dev_0.8.0-1_amd64.deb and sudo sed -i 's/NL_SET_ERR_MSG_MOD/\/\/NL_SET_ERR_MSG_MOD/g' /usr/src/linux-headers-*/include/net/flow_offload.h

Then cmake -B ./build -DCMAKE_BUILD_TYPE=Debug, you will see the CXL-MEM-Simulator in the build dereictory.

Hello, I tried according to your description, but I didn't see CXL-MEM-Simulator in the build dereictory.

victoryang00 commented 10 months ago

You need to follow the cmake.yml to install. Specifically, you need first install the sudo apt install llvm-dev clang libbpf-dev libclang-dev libcxxopts-dev libfmt-dev librange-v3-dev. Then you need to install for upper version of libbpf using wget http://launchpadlibrarian.net/605552811/libbpf0_0.8.0-1_amd64.deb && wget http://launchpadlibrarian.net/605552807/libbpf-dev_0.8.0-1_amd64.deb && sudo dpkg -i ./libbpf0_0.8.0-1_amd64.deb && sudo dpkg -i ./libbpf-dev_0.8.0-1_amd64.deb and sudo sed -i 's/NL_SET_ERR_MSG_MOD/\/\/NL_SET_ERR_MSG_MOD/g' /usr/src/linux-headers-*/include/net/flow_offload.h Then cmake -B ./build -DCMAKE_BUILD_TYPE=Debug, you will see the CXL-MEM-Simulator in the build dereictory.

Hello, I tried according to your description, but I didn't see CXL-MEM-Simulator in the build dereictory.

The main branch is still in development

wogusrla commented 4 months ago

Hello :) Are you still in developing..? I also couldn't find that directory.

victoryang00 commented 4 months ago

Nope, we stopped developing the repo, but CXLMemSim should be found as noted.