[Beignet] [PATCH] replace hash_map with map

Guo, Yejun yejun.guo at intel.com
Thu Dec 25 22:21:24 PST 2014


Yes, actually I  tried __gnu_cxx::hash_map and found the behavior is something different, for example, it does not support insert(std::make_pair( , )). Since it is not the key point, so just replace it with std::map.

-----Original Message-----
From: Andi Kleen [mailto:andi at firstfloor.org] 
Sent: Friday, December 26, 2014 2:13 PM
To: Andi Kleen
Cc: Guo, Yejun; beignet at lists.freedesktop.org
Subject: Re: [Beignet] [PATCH] replace hash_map with map

On Fri, Dec 26, 2014 at 06:55:31AM +0100, Andi Kleen wrote:
> On Fri, Dec 26, 2014 at 05:26:19AM +0000, Guo, Yejun wrote:
> > Hash_map is defined inside beignet with std::hash, std::equal_to and std::tr1::unordered_map.  Std::hash is not supported by gcc 4.4.7, for example, which is the default compiler of centos 6.5.
> 
> But it has hash_map, it's just not in std:: but in ext::

Actually in __gnu_cxx sorry

> 
> So simply import from both name spaces.

-Andi


More information about the Beignet mailing list