Weird.
We "hijack" the CUDA driver. So the application instead of sending works to the real GPU, it's being redirected to the simulator.
The error is a Linux means the function or the variable cannot be found in the shared object file (.so).
See below. Before sourcing the setup_environment I have the exact error you have:
***
paccel-sim-framework$ gpu-simulator/bin/release/accel-sim.out -config ./gpgpusim.config -trace ./traces/kernelslist.g
gpu-simulator/bin/release/accel-sim.out: symbol lookup error: gpu-simulator/bin/release/accel-sim.out: undefined symbol: _ZTI12cache_config***
After sourcing the setup_environment:
***
accel-sim-framework$ gpu-simulator/bin/release/accel-sim.out -config ./gpgpusim.config -trace ./traces/kernelslist.g
Accel-Sim [build accelsim-commit-760af88f231ad03683ee7b5ea15dcffb4948b1e2_modified_6.0]
*** GPGPU-Sim Simulator Version 4.2.0 [build gpgpu-sim_git-commit-ad3558dea61283ddacc713e8b72158bc6d766ff3_modified_5.0] ***
GPGPU-Sim ** ERROR: Cannot open config file './gpgpusim.config'***
The error is just because I ran this in a random folder. But you can see the function is found in the object file. The error you are having is gone.
Can you share your environment variables? This can be done by running 'env'
Focus on "LD_LIBRARY_PATH" (env | grep LD)
It should include the accel-sim's lib folder. Something like below
***
LD_LIBRARY_PATH=/home/pan251/accel-sim-framework/gpu-simulator/gpgpu-sim/lib/gcc-9.4.0/cuda-11040/release:/usr/local/cuda-11.4/lib64:
***
You can also try below
***
accel-sim-framework$ nm -D /home/pan251/accel-sim-framework/gpu-simulator/gpgpu-sim/lib/gcc-9.4.0/cuda-11040/release/libcudart.so | grep _ZTI12cache_config00000000003df978 V _ZTI12cache_config***
If you don't see the libcudart.so file then you did not build the simulator successfully. Try make clean and rebuild, and check for error messages.
Sorry about the bad formatting. I hate google groups' formatting. If you still have error, feel free to create an issue in the repo and continue our discussion there.
Thanks,
Junrui