Hi, at our supercomputing center we are using nix for some experiments where we want to have a very fine control over all the dependencies of several benchmarks. We have implemented an overlay which extends nixpkgs with common HPC tools, libs and compilers along with a set of parametric scripts to define experiments where we can vary the compiler or the MPI implementation (recursively in all dependencies).
The benchmarks require details about the CPU to be able to use optimized features such as AVX512 or FMA. Additionally, we need to store more details about the hardware such as the cache sizes, which are typically used to optimize data structures at build time. Until now we have those details outside the nixpkgs platform attribute, but I was wondering whether it would make sense to extend the
stdenv.hostPlatform with those details to be used by the benchmark derivations in order to setup the build flags. If so, where should they live? I saw the
avx512Support attribute, but I’m not sure how to use it. Also, what is the purpose of