diff options
| author | Tim Rogers <[email protected]> | 2025-02-18 10:29:07 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-02-18 15:29:07 +0000 |
| commit | 287fe0aa17ec1ac5bdd595ca6e89aa97464bcac7 (patch) | |
| tree | cf52817b95b99f61cf494af5536e32bf6d2889e3 /src/cuda-sim/ptxinfo.l | |
| parent | 7934dfea8a6f44f592866414189970ef9ff994d6 (diff) | |
A bunch of maintenance fixes, the largest of which is getting the PTX simulation to work with CUDA 12. (#95)
* Fixing the formatter to always use a consistent format and running it on the codebase
* Update linux-so-version.txt
* Update Makefile
* A couple of unnecessary files that are lingering around
* Support CUDA 12
* Getting the PTX simulations to work with CUDA 12. The issue is that ptxas added more information (number of barriers and compile time). We have to parse these or lexx/yacc fail.
* Update ptxinfo.l
debug MACRO was ineffective
* Update gpgpusim_check.cmake
Update to make the CUDA version print a warning, not an error and updating the print to be more reflective of what the actual problem is.
Diffstat (limited to 'src/cuda-sim/ptxinfo.l')
| -rw-r--r-- | src/cuda-sim/ptxinfo.l | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cuda-sim/ptxinfo.l b/src/cuda-sim/ptxinfo.l index 51371e3..db81bca 100644 --- a/src/cuda-sim/ptxinfo.l +++ b/src/cuda-sim/ptxinfo.l @@ -58,6 +58,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. "Compiling entry function" TC; return FUNC; "Used" TC; return USED; "registers" TC; return REGS; +"used" TC; return USED; +"barriers" TC; return REGS; "bytes" TC; return BYTES; "lmem" TC; return LMEM; "smem" TC; return SMEM; @@ -65,11 +67,13 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. "gmem" TC; return GMEM; "line" TC; return LINE; "for" TC; return FOR; +"ms" TC; return MS; "textures" TC; return TEXTURES; "error : Duplicate definition of" TC; return DUPLICATE; "function" TC; yylval->string_value = strdup(yytext); return FUNCTION; "variable" TC; yylval->string_value = strdup(yytext); return VARIABLE; "fatal : Ptx assembly aborted due to errors" TC; return FATAL; +"Compile time = " TC; return COMPILETIME; [_A-Za-z$%][_0-9A-Za-z$]* TC; yylval->string_value = strdup(yytext); return IDENTIFIER; [-]{0,1}[0-9]+ TC; yylval->int_value = atoi(yytext); return INT_OPERAND; @@ -79,6 +83,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. "[" TC; return LEFT_SQUARE_BRACKET; "]" TC; return RIGHT_SQUARE_BRACKET; ":" TC; return COLON; +"." TC; return PERIOD; ";" TC; return SEMICOLON; "'" TC; return QUOTE; " " TC; |
