From 69f2911e04ffb1b19eef1fafb8c040af271f656e Mon Sep 17 00:00:00 2001 From: Tor Aamodt Date: Thu, 15 Jul 2010 18:09:46 -0800 Subject: creating branch for adding support for CUDA 3.x and Fermi [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 6829] --- src/tr1_hash_map.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/tr1_hash_map.h (limited to 'src/tr1_hash_map.h') diff --git a/src/tr1_hash_map.h b/src/tr1_hash_map.h new file mode 100644 index 0000000..3f31576 --- /dev/null +++ b/src/tr1_hash_map.h @@ -0,0 +1,19 @@ +#pragma once + +// detection and fallback for unordered_map in C++0x +#ifdef __cplusplus + #ifdef __GNUC__ + #if __GNUC__ >= 4 && __GNUC_MINOR__ >= 3 + #include + #define tr1_hash_map std::unordered_map + #else + #include + #define tr1_hash_map std::map + #endif + #else + #include + #define tr1_hash_map std::map + #endif +#endif + + -- cgit v1.3