summaryrefslogtreecommitdiff
path: root/src/cuda-sim/cuda-sim.h
diff options
context:
space:
mode:
authorTor Aamodt <[email protected]>2010-08-08 12:17:43 -0800
committerTor Aamodt <[email protected]>2010-08-08 12:17:43 -0800
commitef53bd94e416c74a3ea3b4d6240eb8f043e86e60 (patch)
tree5b0a8bb30f9472188390360f123d5d91a606027f /src/cuda-sim/cuda-sim.h
parent43eb0e822424b39b52091f45725376cc903b08ee (diff)
refactoring: moving 'loading' operations into ptx_loader.*
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 7166]
Diffstat (limited to 'src/cuda-sim/cuda-sim.h')
-rw-r--r--src/cuda-sim/cuda-sim.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/cuda-sim/cuda-sim.h b/src/cuda-sim/cuda-sim.h
index 25b0cb2..2e67e15 100644
--- a/src/cuda-sim/cuda-sim.h
+++ b/src/cuda-sim/cuda-sim.h
@@ -3,12 +3,23 @@
#include "../abstract_hardware_model.h"
#include <stdlib.h>
+#include <map>
+#include <string>
class memory_space;
+class function_info;
+class symbol_table;
extern const char *g_gpgpusim_version_string;
extern int g_ptx_sim_mode;
extern memory_space *g_global_mem;
+extern int g_debug_execution;
+extern int g_debug_thread_uid;
+extern unsigned g_max_regs_per_thread;
+extern bool g_debug_ir_generation;
+extern const char *g_filename;
+extern std::map<std::string,function_info*> *g_kernel_name_to_function_lookup;
+extern std::map<std::string,symbol_table*> g_kernel_name_to_symtab_lookup;
extern void gpgpu_ptx_sim_add_ptxstring( const char *ptx, const char *source_fname );
extern void gpgpu_ptx_sim_main_func( const char *kernel_key, dim3 gridDim, dim3 blockDim, struct gpgpu_ptx_sim_arg *);
@@ -30,5 +41,6 @@ extern void gpgpu_ptx_sim_bindNameToTexture(const char* name, const struct tex
extern int gpgpu_ptx_sim_sizeofTexture(const char* name);
extern const char* gpgpu_ptx_sim_findNamefromTexture(const struct textureReference* texref);
extern const struct textureReference* gpgpu_ptx_sim_accessTextureofName(const char* name);
+extern void read_sim_environment_variables();
#endif