A fun little CLI tool to gather and disiplay GPU utilization for nodes in a cluster.
Inspired by this LinkedIn post.
A fun little CLI tool to gather and disiplay GPU utilization for nodes in a cluster.
Inspired by this LinkedIn post.
.vimrc
does not rely on features that are not supported by neovim. I use powerline and YouCompleteme for vim, which don't vibe with neovim, so I had to make a couple of changes to my .vimrc
. Take a look at this commit for
an example on how to do that.Usage: evaluate a ternary bitwise function with the values a=0xf0, b=0xcc, c=0xaa. | |
On AVX-512 you can pass the result directly to VPTERNLOGD. On other platforms, | |
look up the value in the following tables to find a short, equivalent sequence of | |
operations. | |
For A64/SVE/Neon see https://gist.github.com/dougallj/10c3ffdbd07229db2cc8b0430d7ccd39 | |
The tables here are: | |
* agx: "not" and all binary operations (as used in Apple GPUs, but possibly useful elsewhere): |
What is strict aliasing? First we will describe what is aliasing and then we can learn what being strict about it means.
In C and C++ aliasing has to do with what expression types we are allowed to access stored values through. In both C and C++ the standard specifies which expression types are allowed to alias which types. The compiler and optimizer are allowed to assume we follow the aliasing rules strictly, hence the term strict aliasing rule. If we attempt to access a value using a type not allowed it is classified as undefined behavior(UB). Once we have undefined behavior all bets are off, the results of our program are no longer reliable.
Unfortunately with strict aliasing violations, we will often obtain the results we expect, leaving the possibility the a future version of a compiler with a new optimization will break code we th
echo "Downloading gcc source files..." | |
curl https://ftp.gnu.org/gnu/gcc/gcc-5.4.0/gcc-5.4.0.tar.bz2 -O | |
echo "extracting files..." | |
tar xvfj gcc-5.4.0.tar.bz2 | |
echo "Installing dependencies..." | |
yum install gmp-devel mpfr-devel libmpc-devel | |
echo "Configure and install..." |
#include <cstdio> | |
#include <list> | |
#include <vector> | |
#include "zip.h" | |
int main() { | |
std::vector<int> one{{1, 11}}; | |
auto two = [] { return std::vector<short>{{2, 22}}; }; | |
const std::list<float> three{{3, 33}}; |