3,142 karma · joined Feb 12, 2018 (8y ago) · 1,452 submissions
comment 6y ago · link · parent
comment 6y ago · link · parent
Building multiple executables is not possible in a single .pro file, so if you've got a folder full of unit tests, which are separate applications, you have to create a .pro file with subdirs as the author here does, and then create another pro file for each test executable.
comment 6y ago · link · parent
But in my mind, most things that we wanted to show just weren't useful in notebooks, because they took too long to run. They're great for prototyping stuff like figure generation, and I used them a lot for that personally, and even for setting up the initial conditions for simulations they can work well, but they're terrible for doing a whole workflow of set up simulation -> run simulation -> process data in my opinion.
comment 6y ago · link · parent
comment 6y ago · link · parent
One thing I found that you do have to be careful with though is ensuring that Intel uses IEEE floating point precision, because by default it's less accurate than GCC. This causes issues in Eigen sometimes, we ran into an issue recently after upgrading compiler where suddenly the results changed and it was because someone had forgotten to set 'fp-model' to 'strict'
comment 6y ago · link · parent
> Avoid the Intel compiler. There are other compilers with similar or better performance.
This is not really true IMO, but even as an aside, the Intel compiler has the enormous advantage of being available cross platform. So we can use it on Linux and Windows, and provides MPI cross platform. We upgrade fairly regularly and that provides us with less work.
My own tests found that PGI compiler performance was worse than Intel for C++, and that now appears to have been discontinued on Windows anyway with NVidia's new HPC compiler suite replacing it. GNU can run everywhere, but performance is around 2.5x worse on Linux for our application use case because it doesn't perform many of the optimisations that Intel does. We use MSVC on Windows just because everyone can have a license, and performance is much worse.
The other thing is that MKL is pretty stable and gets updated. If I use an open source BLAS/LAPACK implementation - sure, it works, and it may even give better performance! But it's not guaranteed to get updates beyond a couple of years, and plenty of implementations are also only partial. We pay Intel a lot of money for the lack of hassle, basically.
comment 6y ago · link · parent
It's also considerably better than Slack for mixing other communications in, which is widely used in corporates: video calling, screen sharing, and the fact that you can hook it in with phone systems. Given it's effectively replaced Skype, that's not really surprising. Prior to teams being introduced at my current company, we were using a mix of Jabber, Cisco WebEx, and other ad-hoc tools in various teams. Now we can use Teams to do all of that.
comment 6y ago · link · parent
comment 6y ago · link · parent
SciPy actually went as far as dropping Accelerate as a supported BLAS implementation in 2018. https://github.com/scipy/scipy/wiki/Dropping-support-for-Acc...
comment 6y ago · link · parent
For one thing, you can already get scientific libraries on Linux which run on ARM. That's not too much of an issue. BLAS is an API of which there are many implementations.
The issue is that (a) it requires everyone to recompile everything (b) projects which are 'legacy' and are no longer developed just won't ever switch, so that software won't be runnable. If Apple do a Rosetta equivalent, they'll run slowly, but if that project ends (like Rosetta), that software will just stop working. This is pretty much the same problem as where Apple have killed x86 - there are many apps that just no longer work.
comment 6y ago · link · parent
One of the problems is finding appropriate materials, and that applies for all magnetic devices.
Crystal structures are hugely complex, and the way that atoms interact manifests primarily through the 'exchange' interaction. This is caused by a combination of the Coulomb interaction (charges repelling/attracting), and through the quantum mechanical Pauli exclusion principle, which basically stops electrons with the same state from sitting in the same position. The problem is, while it's the dominant energy term, there are several forms of exchange interaction - RKKY, Dzyaloshinskii-Moriya (which affects the boundaries at interfaces and in certain crystals), etc. and so while the length scale over which the exchange interaction acts is normally on the order of a single atom, it can often actually act on next-nearest neighbour atoms and cause odd effects. This means that finding a 'pure' antiferromagnet is difficult; many things are actually ferrimagentic.
Many studies which suggest wonderful new storage technologies are computational and have little bearing on the experimental reality. There are serious difficulties in predicting the magnetic properties of materials with density functional theory because the results are often oscillatory as you refine the model, meaning that the computational cost is enormous - the properties of even simple systems such as the two species alloy FePt can't be easily predicted. Real crystal structures are hugely more complex than this, and so it's questionable whether results given by people are any more than junk. The work in this area is hampered by the fact that DFT research is overwhelmingly focused on calculating bonding and chemical structures. DFT scales poorly, and while there are a few codes that scale better, they're licensed under weird license structures. There's also some odd fallings-out between various code authors with accusations of stealing...
The 'next level' in the heirarchy of modelling neglects quantum effects completely and is known as atomistic modelling. These models are still enormously costly, but it's the only proper way to treat properly antiferromagnetism, as the next level in the heirarchy, micromagnetism, takes a continuum limit of this discrete model, and by doing so has assumptions that antiferromagnets break. Parameterising these models is enormously difficult, because it is pretty much impossible to measure experimentally the values that you need, and DFT gives answers which when used bear little resemblance to the real material.
You have to sort of realise that many people in magnetics have lost funding because industry has moved on, and academic labs seem to be left behind. So everyone tries to work on the 'next big thing' - there are hundreds of various proposals for devices that haven't worked out, and it's worth being very, very sceptical of articles like this which promise that a new technology will revolutionise things. Just as an example, one of the biggest wastes of time over the last 10 years has been that of Skyrmions, which have been cited as the possible hallelujah of magnetic storage, and for which there is basically no evidence of utility after millions of dollars of research funding worldwide, and thousands of articles. Many scientists jumped onto this topic in my opinion because a Nobel prize winner wrote a brief, speculative computational paper suggesting that Skyrmions could be the panacea to the woes of current magnetic storage, despite there being even a lot of evidence at that point to the contrary - in particular, work by Stuart Parkin at IBM in trying to use magnetic domain walls for storage, and a whole host of work on magnetic bubble memory that even made it to market in the 70s and 80s but which was replaced because of poorer performance.
comment 6y ago · link · parent
comment 6y ago · link · parent
I think that's unfair. There was plenty of code that was out there for 10 years or more that was working completely fine and had to be ported. One of the most frustrating things I had to do was completely rearchitect some legacy binary file reading/writing because of the changes to how Python handled bytes. That code was out there as open source in the wild, stable, and was being widely used, and it basically required a full rewrite underneath the API.
One of the most frustrating things was that many packages we used as dependencies took ~5 years to port to Python 3, and then dropped Python 2 support immediately, leaving us with no choice but to use the old version for some time. We'd done a lot of the easy stuff already (2to3 on all files), but lots of the non-trivial things were the interactions with other packages so couldn't be touched until they had themselves got a Python 3 version.