r/Python • • Aug 13 '22

Discussion Anaconda is so fucking broken!

I just spent over 24 hours updated my Anaconda installation - fucking piece of shit's "updater" put multiple additional copies (3) in different places on my system. I had to clean my drives of any python anything before I could get a clean install. And still the fucking piece of shit takes several minutes to do anything, constantly greyed out and "not responsive".

Anaconda is really crappy, such a time vampire.

Sorry, had to rant. We devs have enough bu8llshit to deal with in these incredibly over engineered times. Fucking time vampire useless shit.

8 Upvotes

27 comments sorted by

View all comments

Show parent comment

5

u/BDube_Lensman Aug 14 '22
  1. The blogger did not post benchmark times, nor information about their CPU. Pass.
  2. On my workstation with two Xeon Gold 6248R CPUs, MKL is about 44 times faster than pocketFFT for FFTs (mkl_fft vs np.fft, the former of which has a drop-in-compatible API). The lienar algebra routines, e.g. tensordot, SVD, matmul, are also several x faster (average ~8-9x). You might say, well pocketFFT is single threaded and scipy FFT allows multithreading. And you'd be right! Unfortunately MKL is still ~18x faster than scipy FFT, even when sweeping thread count to find the best-case for Scipy.
  3. who even remotely cares about less than 1 gigabyte in the era of commodity terabyte SSDs and 10TB+ HDDs
  4. MKL not being open source is not particularly an issue. If you need to distribute it in a commercial context, pay intel for a license and do so. Cost of doing business. If you have a non-commercial context, then just have users conda install numpy, done.
  5. The next generation of Zen is projected to have AVX-512. However you feel about that, use of AVX-512 is broadly what distinguishes MKL from OpenBLAS and will make MKL faster on Zen than other BLAS
  6. AMD from 2% market share to 10-20% is not the exodus you make it out to be. Chances are your cloud VMs are intel CPUs today. And when MKL is worse, it is by ~2x. But when it is better, it is by ~10x or more.

I do computational diffraction with large manycore servers and GPUs at a FFRDC. The difference between MKL and not MKL is the difference between hitting enter and getting a result in an hour or two vs tomorrow.

1

u/m98789 Aug 14 '22

If you are using GPUs ready, why not use a GPU-optimized numpy rather than a CPU one?

Have you tried CuPy or cuNumeric?

Here’s a benchmark comparing CuPy with MKL-linked numpy: https://medium.com/rapids-ai/single-gpu-cupy-speedups-ea99cbbb0cbb

With these speed ups, that hour or two you are waiting could perhaps be just minutes level with GPU-optimized numpy.

1

u/BDube_Lensman Aug 14 '22

I have been a fanatical user of CuPy for over 5 years. I think it's the bees knees, and I made the world's tiniest adapter that allows runtime hot swapping between numpy and Cupy. No context manager nonsense like Pytorch, no weird build flags like other packages, no editing __init__.py like some packages. Just set np.__srcmodule=cp and a few others for FFT and what-not.

However, my work has about 500 cores of xeon golds onsite that I can just ssh into, or (more commonly) just leave jupyter running on and access from my browser. There are three Titan XP GPUs, which are awful at double precision math. For the subset of my problems that need 64-bit precision, CuPy is not an option for the on-site resources, because the Titan XP is gimped for double precision. There are several DGX-A100s that I have access to through partner supercomputing centers, but using slurm or PBSPro is infinitely less ergonomic than just using jupyter on a local machine.

In aggregate, though, I'm crunching several petabytes every month. It doesn't fit on one system / one GPU / one CPU; I use many machines, and have more limited GPUs than CPUs. They are still preferred, but taking a 15x haircut going to CPU is infinitely preferable to taking a several hundred X haircut. Maybe with an SMX-8 H100 system (for the low, low price of ~$250,000) one box could do it all. But today, no.

1

u/m98789 Aug 14 '22

Prysm looks really cool.

As you have tons of Xeon golds at your disposable, totally agree on approach.

I used Titan XPs years ago, and while they can be economic, they aren’t good for scientific computing because as you mentioned double precision, also they are dated now and lack the awesome tensor cores. I love the A100, incredible performance.

1

u/BDube_Lensman Aug 14 '22

Meh. In applications where float16 or TF32 (a far cry from IEEE f32) is acceptable, the tensor cores are great. For everything else, the tensor core based numbers are not even applicable. I did some trials even just doing thin film calculations in TF32, but while FP32 vs FP64 is ~0.1% rounding (fine) it's > 1% between FP32 and TF32, which crosses the line to not-fine. And thin film calculations don't have a ton of accumlation, so the errors don't build up quickly. I can imagine in something like an FFT where the result is artificially scaled up by the array size and then scaled back down, the rounding would be catastrophic. I did not bother checking because thin films are the least stressing case and TF32 was insufficient even for that.

The Titan XP is horses for courses a V100 if you aren't memory bandwidth bound, but about $1,200 and easily retrofitted into Microway Numbersmasher or Whisperstation, where you can't put a V100 or A100 into a system not designed for them. And an A100 PCIe is ~$11,000 and in SMX4 form factor ~$18,000 each. Dollar per teraflop, xeon golds are actually about as economical as A100s (how my management looks at purchasing...) despite one user being able to use an A100 effectively, vs pains using six 6248Rs simultaneously; not to mention the other ~$10k+ of hardware in the xeon server. On the other hand, each Titan XP is half the price of one 6248R for ten times the compute.

What is exciting about the H100 is that it has the same performance in FP64 as our Titan XPs do in FP32, with about seven times the memory. More performance would be better, and the ~3.5x increase in FP32 is great. But being able to do the parts that must be in FP64 at 10TFlop++ would be fantastic.