Skip to content

Error occurring when make gpgpu-sim (CUDA 11.2) #221

Open
@ajavadinezhad

Description

@ajavadinezhad

Hello,

I've installed all dependencies which specified in the repo readme. Although I was able to compile a sample program written in CUDA. But when I run the make command, I get the following error and I've no idea how to fix it.

The environment on which I ran gpgpu-sim:
Ubuntu 20.10
CUDA 11.2
Let me know, if you need more information

In file included from ../../libcuda/../src/cuda-sim/cuda-sim.h:37, from ../../libcuda/gpgpu_context.h:3, from ptx_parser.cc:30: ../../libcuda/../src/cuda-sim/../gpgpu-sim/shader.h: In constructor ‘scheduler_unit::scheduler_unit(shader_core_stats*, shader_core_ctx*, Scoreboard*, simt_stack**, std::vector<shd_warp_t*>*, register_set*, register_set*, register_set*, register_set*, register_set*, std::vector<register_set*>&, register_set*, int)’: ../../libcuda/../src/cuda-sim/../gpgpu-sim/shader.h:429:32: warning: ‘scheduler_unit::m_spec_cores_out’ will be initialized after [-Wreorder] 429 | std::vector<register_set *> &m_spec_cores_out; | ^~~~~~~~~~~~~~~~ ../../libcuda/../src/cuda-sim/../gpgpu-sim/shader.h:428:17: warning: ‘register_set* scheduler_unit::m_mem_out’ [-Wreorder] 428 | register_set *m_mem_out; | ^~~~~~~~~ ../../libcuda/../src/cuda-sim/../gpgpu-sim/shader.h:329:3: warning: when initialized here [-Wreorder] 329 | scheduler_unit(shader_core_stats *stats, shader_core_ctx *shader, | ^~~~~~~~~~~~~~ /home/ahmad/Documents/gpgpu-sim_distribution-4.0.1/build/gcc-/cuda-11020/release/cuda-sim/ptx_parser_decode.def: In member function ‘symbol_table* gpgpu_context::init_parser(const char*)’: /home/ahmad/Documents/gpgpu-sim_distribution-4.0.1/build/gcc-/cuda-11020/release/cuda-sim/ptx_parser_decode.def:2:11: error: unable to find string literal operator ‘operator""end’ with ‘const char [30]’, ‘long unsigned int’ arguments 2 | DEF(YYEOF,"YYEOF /* "end of file" */") | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ptx_parser.cc:115:43: note: in definition of macro ‘DEF’ 115 | #define DEF(X, Y) g_ptx_token_decode[X] = Y; | ^ /home/ahmad/Documents/gpgpu-sim_distribution-4.0.1/build/gcc-/cuda-11020/release/cuda-sim/ptx_parser_decode.def:4:13: error: unable to find string literal operator ‘operator""invalid’ with ‘const char [28]’, ‘long unsigned int’ arguments 4 | DEF(YYUNDEF,"YYUNDEF /* "invalid token" */") | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ptx_parser.cc:115:43: note: in definition of macro ‘DEF’ 115 | #define DEF(X, Y) g_ptx_token_decode[X] = Y; | ^ make[1]: *** [Makefile:116: /home/ahmad/Documents/gpgpu-sim_distribution-4.0.1/build/gcc-/cuda-11020/release/cuda-sim/ptx_parser.o] Error 1 make[1]: Leaving directory '/home/ahmad/Documents/gpgpu-sim_distribution-4.0.1/src/cuda-sim' make: *** [Makefile:208: cuda-sim] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions