3,139 karma · joined Feb 12, 2018 (8y ago) · 1,451 submissions
comment 9mo ago · link · parent
comment 10mo ago · link · parent
comment 10mo ago · link · parent
comment 10mo ago · link · parent
Most people who've been in a business SaaS environment know that writing the software is relatively the easy part aside from in very difficult technical domains. The sales cycle + renewals and solution engineering for businesses is the majority of the work, and that's going nowhere.
comment 10mo ago · link · parent
comment 10mo ago · link · parent
I worked in engineering software for a long time and because of who we sell to, there's always been a very hard cost-benefit analysis for customers of SaaS in that space. If customers didn't see a saving equal to more than the cost of the software in Y1 they could and would typically cancel.
comment 10mo ago · link · parent
comment 10mo ago · link · parent
for (int i = 0; i < N; i += SIMD_WIDTH) {
for (int j = 0; j < SIMD_WIDTH) {
// do code
}
}
but failing the compiler optimising that you can do it more like: for(int i = 0; i < N; i+= SIMD_WIDTH) {
float mask[8];
// do work into mask, find max of the mask
}
That's effectively what you're doing anyway in the SIMD code, but it keeps it more readable for mere mortals, and because you can define SIMD_WIDTH as a constant, it's also slightly easier to change if a new instruction set comes along; you're not maintaining multiple kernels.comment 10mo ago · link · parent
They're optimising for different things really.
Intel/Nvidia have the resources to (a) optimise across a wide range of hardware in their libraries (b) often use less well documented things (c) don't have to make their source code publicly accessible.
Take MKL for example - it's a great library, but implementing dynamic dispatch for all the different processor types is why it gets such good performance across x86-64 machines, it's not running the same code on each processor. No academic team can really compete with that.
comment 10mo ago · link · parent
In my prev. job I had a windows laptop with WSL2 though and I actually was super productive with that. But the laptop hardware offerings at the same price point are rubbish, just not very robust. Linux machines if you're in a corp and want one in the next 6 months are usually even more restrictive on hardware than they are on Windows.
comment 10mo ago · link · parent
comment 10mo ago · link · parent
For a long time my running group used it, and while it still does, the WhatsApp community is more used now. My (Catholic) church still uses Facebook for many announcements along with its own website.
comment 10mo ago · link · parent
The body that made the recommendation, the "Safety and Advisory Board" met several times and changed their report multiple times. When it was finally released they redacted large parts of the decision making process including saying that:
* The police didn't want the match to go ahead (prior to any evidence for that)
* Two local Muslim councillors (Labour and Lib Dem) had been lobbying against it going ahead with one saying (quote) 'we are the voice of the people'
Additionally:
* They edited the report saying risk to local muslim residents went from Medium -> High
* They edited the report saying risk to fans travelling went from High -> Medium.
* They adjusted the number of police needed from 1200 -> 5000 in order to try and justify the decision.
When the full unredacted report was leaked, then they were put on the back foot and falsely threw out that they'd got the evidence (including of local muslim residents in Amsterdam being thrown in a river, which didn't happen) from a Dutch Police report, which wasn't true.
Anyone with a brain in the police should know that recommending cancellation or banning away fans from a Champion's League game is a major international news story. The chief of police needs to be on top of the details and 100% sure that the evidence is there.
comment 10mo ago · link · parent
comment 10mo ago · link · parent
In the UK we're typically by law entitled to 25 days inc. bank (i.e. public) holidays, but most 'professional' jobs will give you at least 25 days plus bank holidays giving a total of ~33ish days per year of leave. When one of the bank holidays would fall on a weekend (e.g. Christmas Day) then it's transferred to the Monday following. Very very occasionally, there are additional bank holidays added e.g. for the Royal Wedding in 2011 one was created.
Often companies will give you a few more days after a number of years of service e.g. an additional 4 days after 5 years. Public sector jobs are usually more generous again e.g. 32 days + bank holidays plus some 'closure' days meaning ~42ish days of leave.
comment 10mo ago · link · parent
I just used to fire up VTune and inspect the hot loops... typically if you care about this you're only really working on hardware targeting the latest instruction sets anyway in my experience. It's only if you're working on low level libraries I would bother doing intrinsics all over the place.
For most consumer software you want to be able to fall back to some lowest-common-denominator hardware anyway otherwise people using it run into issues - same reason that Debian, Conda, etc. only go up to really old instructions sets.
comment 10mo ago · link · parent
(a) You mention that the NVidia docs push people to use libraries, etc. to really get high performance CUDA kernels, rather than writing them themselves. My argument would be that SIMD is exactly the same - they're something really that are perfect if you're writing a BLAS implementation but are too low level for most developers thinking about a problem to make use of.
(b) You show a problem where autovectorisation fails because of branching, and jump straight to intrinsics as the solution which you basically say are ugly. Looking at the intrinsic code, you're using a mask to deal with the branching. But there's a middle ground - almost always you would want to try restructuring the problem, e.g. splitting up loops and adding masks where there's conditions - i.e. lean into the SIMD paradigm. This would also be the same advice in CUDA.
(c) As you've found, GCC actually performs quite poorly for x86-64 optimisations compared to Intel. It's not always clear cut though, the Intel Compiler for e.g. sacrifices IEEE 764 float precision and go down to ~14 digits of precision in it's defaults, because it sets the flag `-fp-model=fast -fma`. This is true of both the legacy and new Intel compiler. If you switch to `-fp-model=strict` then you may find that the results are closer.
(d) AVX512 is quite hardware specific. Some processors execute these instructions much better than others. It's really a collection of extensions, and you get frequency downclocking that's better/worse on different processors as these instructions are executed.