diff --git a/src/cuda-sim/ptx_parser.cc b/src/cuda-sim/ptx_parser.cc index 25758dd85..c87b6c628 100644 --- a/src/cuda-sim/ptx_parser.cc +++ b/src/cuda-sim/ptx_parser.cc @@ -172,9 +172,11 @@ symbol_table *init_parser( const char *ptx_filename ) init_directive_state(); init_instruction_state(); +#if (CUDART_VERSION >= 6000) ptx_in = fopen(ptx_filename, "r"); ptx_parse(); fclose(ptx_in); +#endif return g_global_symbol_table; }