accel-sim / accel-sim-framework

This is the top-level repository for the Accel-Sim framework.
https://accel-sim.github.io
Other
289 stars 110 forks source link

libcuda.so.1: cannot open shared object file when generate traces for vectoradd #222

Closed DylanWangWQF closed 1 year ago

DylanWangWQF commented 1 year ago

I just want to run the simple test for memory trace

export CUDA_INSTALL_PATH=/usr/local/cuda-11.0  
export PATH=$CUDA_INSTALL_PATH/bin:$PATH  
./util/tracer_nvbit/install_nvbit.sh  
make -C ./util/tracer_nvbit/

# example: to run the tracer on hardware device 0 for vecadd app
export CUDA_VISIBLE_DEVICES=0
LD_PRELOAD=./tracer_tool/tracer_tool.so ./nvbit_release/test-apps/vectoradd/vectoradd

While I get the error about loading shared libraries

root@1590ea306734:/home/runner/accel-sim/accel-sim-framework/util/tracer_nvbit# echo $CUDA_VISIBLE_DEVICES
1
root@1590ea306734:/home/runner/accel-sim/accel-sim-framework/util/tracer_nvbit# LD_PRELOAD=./tracer_tool/tracer_tool.so ./nvbit_release/test-apps/vectoradd/vectoradd
./nvbit_release/test-apps/vectoradd/vectoradd: error while loading shared libraries: libcuda.so.1: cannot open shared object file: No such file or directory

BTW, I run the test in the docker.

JRPan commented 1 year ago

Please make sure CUDA and driver is set up correctly. libcuda.so.1 is from the CUDA library. It's not part of the Accel-Sim