Open eecspan opened 5 months ago
I finally solved this problem. According to the method described at https://github.com/sxzhang1993/Run-cutlass-with-gpgpu-sim, it uses CUDA 9.1. In CUDA 9.1, the generated .loc instructions only have the first syntax, not the second syntax. However, CUDA 9.1 does not support the Turing architecture. If you want to use the Turing architecture, you can use CUDA 11, but the aforementioned problem will occur. I found that .loc is related to debugging. In cutlass_bench, the -lineinfo option is added during compilation. If we omit this option, no .loc instructions will be generated. We can comment out the -lineinfo option in cutlass_bench/CMakeLists.txt, and the final generated PTX will not contain .loc instructions. However, using GPGPU-Sim 4.0 will cause the error mentioned in https://github.com/gpgpu-sim/gpgpu-sim_distribution/issues/247. We need to use GPGPU-Sim 4.2.
I'm trying to run gpgpusim with cutlass, I followed the documentation requirements, using Cutlass 1.3 and testing with examples from Cutlass 1.3. However, regardless of whether I use GPGPU-Sim 4.0, GPGPU-Sim 4.2, or GPGPU-Sim under Accel-Sim, all result in a segmentation fault and program crashes: Upon examining the output of GPGPU-Sim, there is a syntax error when executing PTX, as shown below.
The error message indicates that the error occurred during the execution of cudaLaunch for the address 0x55fc5d804630. This corresponds to the function hostFun at address 0x55fc5d804630 when it was being registered with __cudaRegisterFunction. The occurrence of a syntax error at this point leads me to suspect that this error caused the cudaLaunch crash.
The relevant PTX code is as follows:
The first ptx code executes correctly, while the second code encounters a syntax error.
Therefore, is it because GPGPU-Sim does not support the second syntax of loc instruction as shown in the figure?
Here is the OS version:
Ubuntu 18.04.6 LTS
The cuda toolkit version:Cuda compilation tools, release 11.7, V11.7.99
The gcc version:gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)
Looking forward to someone providing assistance. Thanks a lot~