gpgpu-sim / gpgpu-sim_distribution

GPGPU-Sim provides a detailed simulation model of contemporary NVIDIA GPUs running CUDA and/or OpenCL workloads. It includes support for features such as TensorCores and CUDA Dynamic Parallelism as well as a performance visualization tool, AerialVisoin, and an integrated energy model, GPUWattch.
Other
1.13k stars 511 forks source link

RuntimeError: cublas runtime error(gpgpu-sim with pytorch) #284

Open Wen-Tian-Pineapple opened 1 year ago

Wen-Tian-Pineapple commented 1 year ago

Hi, I'm having issue with gpgpu-sim with pytorch when testing mnist program. I use shared library when building pytorch :libcudnn.so libcublas.so And when mnist program is trying to call "nn.linear" function, it gives me this error:

RuntimeError: cublas runtime error : library not initialized at /home/user/pytorch-gpgpu-sim/aten/src/THC/THCGeneral.cpp:333

Anyone have any idea ho to bypass this issue?

Set up: GPGPUSIM version 4.2.0 GCC: 5.4 CUDA: 8.0.61 CUDNN: 7.1.4 PYTORCH_BIN: /home/wentian/.local/lib/python2.7/site-packages/torch/lib/libcaffe2_gpu.so

mattsinc commented 1 year ago

I am unfamiliar with this error, but would strongly encourage you to use Accel-Sim instead, which uses GPGPU-Sim in general, but has much better support for library code like this.