From 9b49af32a493752503cd414e5a15063ac0bc98a1 Mon Sep 17 00:00:00 2001 From: "Andrew M. B. Boktor" Date: Fri, 17 Aug 2012 14:45:03 -0800 Subject: On demand loading of fatbins Experimental library support (diff abstract_hardware_model.cc) (currently broken because of undocumented cudaGetExportTable function in the cuda rt api) [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 13793] --- src/abstract_hardware_model.cc | 4 ++++ src/abstract_hardware_model.h | 2 ++ 2 files changed, 6 insertions(+) (limited to 'src') diff --git a/src/abstract_hardware_model.cc b/src/abstract_hardware_model.cc index dd1e755..7a9fcf8 100644 --- a/src/abstract_hardware_model.cc +++ b/src/abstract_hardware_model.cc @@ -58,6 +58,10 @@ void gpgpu_functional_sim_config::reg_options(class OptionParser * opp) "0" #endif ); + option_parser_register(opp, "-gpgpu_experimental_lib_support", OPT_BOOL, + &m_experimental_lib_support, + "Try to extract code from cuda libraries [Broken because of unknown cudaGetExportTable]", + "0"); option_parser_register(opp, "-gpgpu_ptx_convert_to_ptxplus", OPT_BOOL, &m_ptx_convert_to_ptxplus, "Convert SASS (native ISA) to ptxplus and run ptxplus", diff --git a/src/abstract_hardware_model.h b/src/abstract_hardware_model.h index d9f5885..fda4763 100644 --- a/src/abstract_hardware_model.h +++ b/src/abstract_hardware_model.h @@ -328,6 +328,7 @@ public: unsigned get_forced_max_capability() const { return m_ptx_force_max_capability; } bool convert_to_ptxplus() const { return m_ptx_convert_to_ptxplus; } bool use_cuobjdump() const { return m_ptx_use_cuobjdump; } + bool experimental_lib_support() const { return m_experimental_lib_support; } int get_ptx_inst_debug_to_file() const { return g_ptx_inst_debug_to_file; } const char* get_ptx_inst_debug_file() const { return g_ptx_inst_debug_file; } @@ -338,6 +339,7 @@ private: // PTX options int m_ptx_convert_to_ptxplus; int m_ptx_use_cuobjdump; + int m_experimental_lib_support; unsigned m_ptx_force_max_capability; int g_ptx_inst_debug_to_file; -- cgit v1.3