diff options
| author | Andrew M. B. Boktor <[email protected]> | 2012-08-17 14:45:03 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:48:54 -0700 |
| commit | 9b49af32a493752503cd414e5a15063ac0bc98a1 (patch) | |
| tree | 366f3f8d300711222f39e84b659100052411ace7 /src | |
| parent | 7757c7e26172c5d6452ba2b1b051df3fd28505d3 (diff) | |
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]
Diffstat (limited to 'src')
| -rw-r--r-- | src/abstract_hardware_model.cc | 4 | ||||
| -rw-r--r-- | src/abstract_hardware_model.h | 2 |
2 files changed, 6 insertions, 0 deletions
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; |
