similar to: [LLVMdev] Memory Allocation Optimized away with new by not with ::operator new

Displaying 20 results from an estimated 300 matches similar to: "[LLVMdev] Memory Allocation Optimized away with new by not with ::operator new"

2015 May 04
5
[LLVMdev] Memory Allocation Optimized away with new by not with ::operator new
Hi, I’ve made my own version of std::vector which is called il::Vector. Due to http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3664.html <http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3664.html>, LLVM can optimise away memory allocation. Therefore, the following code optimise away all memory allocation for w resulting in a single allocation during the whole program (for
2015 May 06
2
[LLVMdev] Memory Allocation Optimized away with new by not with ::operator new
I’ve missed it. I did a quick search and the only thread I found is back from 2013. Could you please provide me with a link to the thread? François Fayard Founder & Consultant - Inside Loop Tel: +33 (0)6 01 44 06 93 <tel:+33%206%2001%2044%2006%2093> Web: www.insideloop.io <http://www.insideloop.io/> Twitter: @insideloop_io > On 06 May 2015, at 07:21, David Blaikie <dblaikie
2017 Aug 16
4
High Performance containers
Hi, Let me present myself : I work on High Performance Computing, mainly on number crunching where the languages used are mainly Fortran and C++. This field is moving more and more from pure number crunching where Fortran shines to a mix of numbers, texts and other data that you cannot easily deal with Fortran. Unfortunately, the C++ standard library suffers from its age and the fact that it has
2017 Aug 17
3
High Performance containers
On 17 August 2017 at 15:27, Hal Finkel <hfinkel at anl.gov> wrote: > Speaking of benchmarks, we might be able use the library, or some parts of > it, in our test suite for correctness and performance testing. I see some > stand-alone benchmarks that seem useful (e.g., > https://github.com/insideloop/InsideLoop/blob/master/il/benchmark/types/32-vs-64-bit-integers.cpp) > but
2015 May 01
6
[LLVMdev] Deduplication of memory allocation
Hi, Even though this question does not only concern LLVM, it seems that only compilers guru can answer it. So I am giving a try here, hoping for the best. In a recent talk by Chandler Carruth, “Performance with algorithms, efficiency with data structures” ( https://www.youtube.com/watch?v=fHNmRkzxHWs <https://www.youtube.com/watch?v=fHNmRkzxHWs> ), Chandler says that one should never
2017 Aug 17
2
High Performance containers
> You can imagine a community the size of LLVM's having to rely on > external libraries that may have the same goals today, but different > paths tomorrow. The end result is the same: a fork for the things that > matter to us, just like we've done with the standard library. > > All in all, your library looks really nice, and it does solve an > intersection of the
2017 Jan 09
4
Default hashing function for integers (DenseMapInfo.h)
Hi, I’ve been looking at Chandler Carruth talks about internal data structures for LLVM in order to implement my own library. That’s how I ended up looking at the internals of DenseMap and the default hash functions defined in DenseMapInfo. I have been very surprised by the hash function used for integers which is hash(k) = 37 * k. This kind of hashing function does not change the lowest bits of
2017 Jan 10
3
Default hashing function for integers (DenseMapInfo.h)
> It is not clear what the test-case is (what source, what compiler options). My suspicion is that your differences are in the noise, and most of the time is spent doing other things than hashing. Did you profile the a run, and check how much of the total time is spent in the hash-function [you may need to tweak the code a bit to not inline the actual hash function]. Also publishing the RANGE
2017 Jan 10
4
Default hashing function for integers (DenseMapInfo.h)
> On Jan 10, 2017, at 2:31 AM, Chris Lattner <sabre at nondot.org> wrote: > > As others have pointed out, 37 does have some nice properties (by being prime), but we’ve also had it from the very early days. I wouldn’t say that it has been extremely well considered at all. > > -Chris Thanks for your reply. But I am not sure to understand the last sentence. Does it mean that
2017 Jan 10
3
Default hashing function for integers (DenseMapInfo.h)
> On Jan 10, 2017, at 8:56 AM, Mehdi Amini <mehdi.amini at apple.com> wrote > > Some tests I can suggest is to replace the hash function with your favorite and: Thanks. I’ll give it a try. It will take some time as I need to rewrite DenseMap if I want to use the Knuth multiplicative hash. > ultimately I believe real-world impact is the best way to get a change in. That’s
2017 Jan 10
2
Default hashing function for integers (DenseMapInfo.h)
> On Jan 10, 2017, at 9:36 AM, Bruce Hoult <bruce at hoult.org> wrote: > > Both are not very sophisticated. > You should also look at the different MurmurHash versions, and descendants such as CityHash. I did a few benchmark this morning, trying to tweak the hashing for pointers (as many people seem to use pointers as keys). The hash function in LLVM is quite simple, but it
2017 Aug 17
2
High Performance containers
Hi Dean. Thanks for your reply. The ADT library is exactly what I end up replicating. My library started 2 years ago and at the beginning, what I needed was very different from LLVM. My first containers were: - A custom std::vector that does not initialize elements to 0 for int, double, etc. This is very important in HPC for the first touch policy used on NUMA architectures. It also allows
2017 Jan 09
5
The most efficient way to implement an integer based power function pow in LLVM
Hi, I want an efficient way to implement function pow in LLVM instead of invoking pow() math built-in. For algorithm part, I am clear for the logic. But I am not quite sure for which parts of LLVM should I replace built-in pow with another efficient pow implementation. Any comments and feedback are appreciated. Thanks! -- Wei Ding -------------- next part -------------- An HTML attachment was
2017 Aug 17
4
unable to emit vectorized code in LLVM IR
i removed printf from loop. Now getting no error. but the IR doesnot contain vectorized code. IR Output is as follows: ; ModuleID = 'sum-vec.ll' source_filename = "sum-vec.c" target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" ; Function Attrs: norecurse nounwind readnone uwtable define i32 @main(i32, i8**
2017 Aug 17
4
unable to emit vectorized code in LLVM IR
I assume compiler knows that your only have 2 input values that you just added together 1000 times. Despite the fact that you stored to a[i] and b[i] here, nothing reads them other than the addition in the same loop iteration. So the compiler easily removed the a and b arrays. Same with 'c', it's not read outside the loop so it doesn't need to exist. So the compiler turned your
2007 Jan 15
3
php agi - first phrase truncated, all others fine
I have the following code. When I call the extension, it either ignores the first "Hello there everyone", or says "hello" and moves on sometime stoping before it finishes hello. The rest of the text reads fine. Anyone else have this issue?? Thanks! require('/var/lib/asterisk/agi-bin/phpagi.php'); $agi = new AGI(); $agi->answer();
2009 Dec 22
2
getent passwd problem
Hi, I am having a weird issue with samba where once a week approximately at the same time users will lose connectivity, if i run wbinfo -u all users are displayed wbinfo -g all groups are displayed However running getent passwd only shows local-users, no remote users are shown.. To fix the issue I have to change the name of my idmap config and restart samba and winbind and everything works
2002 Aug 14
3
Out of memory
During a R session (Version 1.4.1 under Windows) I ended up getting the following error message: Error: vector memory exhausted (limit reached?) independently of the command like rm(something), q(), ls(), gc(), memory.size(), memory.limit(300000000), ... What could I do now to save my data? How could I prevent this situation? Thanks for any hint, Nikolaus Hansen
2009 Dec 15
0
winbind issue with samba 3.3.9
Hi, This morning I had an issue with winbind where it lost all its uid's, I tried restarting samba and winbind but still no joy :-( The only way to fix it was to change the following : idmap config WEBHOSTING : schema_mode = rfc2307 idmap config WEBHOSTING : backend = ad idmap config WEBHOSTING : range = 500 - 300000000 to :
2015 Jul 19
2
Problems with Member Server Samba 4
I am having problems with samba 4 as Member Server. I have followed step-by-step tutorial "Setup a Samba AD Member Server" in samba wiki. In my smb.conf I have configured the entry "idmap config MYDOMAIN:range = 290000000-300000000", because this is my range for DomainUsers. The commands "kinit DomainUser" and "klist" are ok, this way I think that