r/ScientificComputing • u/FructoseDaddy69 • 16d ago
what should i do? NSFW
context:- i am a 1st year student majoring in physics. thing is i am interested in computational physics (mainly DFT simulations and ML analysis of data). i want to learn these concepts and get proficient at them, but the thing is, our uni doesnt guve HPC access until the 4th year, so i am settling for a rig of my own. budget isnt an issue, but im confused as to what i wanna buy. should i buy a PC with an NVIDIA GPU (im targetting smth with 8-12 GB VRAM) and a good processor with a hgih core count (i have found one with 16 cores, 32 threads, and it has FP64 at 2.5 TFLOPS) or should i buy a mac? the reason why im so keen on the devuce is bcz i want to learn DFT and ML buy running small-medium scale programs locally before eventually gettung access to HPC via projects where i show competence in programming and thr subject itself. please tell me based on my above reasons, and also tell me the specs of the device i need to buy.
4
u/ScientistFromSouth 16d ago
Honestly, you can rent remote hardware pretty cheap on vast.ai or RunPod for enterprise grade GPU ranging from anywhere between $0.25-$5/hr depending on how many vCPU and how much RAM you need. If you just want to dabble in high performance computing, then it might be worth just spinning up jobs to run for like $2-40 to run overnight if you're willing to spend multiple thousands to buy an enterprise grade machine that you aren't going to run 24/7.
Also, it's quite possible that faculty have research projects that undergrads can assist on that might get you access to the HPC cluster earlier.
Regardless, learning to write efficient, well principled code while also understanding the core theory is more important than machine access.
You can really run the bill up on HPC compute time running failed code that doesn't actually simulate what you want, so you should focus on theory and reproducing manageable test cases on your existing hardware.
1
u/asarcosghost 16d ago
I'd get a Linux PC over a Mac to start off so you can get comfortable with multi-core parallelism first. GPU stuff will come later but at least you'll have the option, unlike with a Mac. It'll be pretty hard to learn the concepts of DFT as a first year. How'd you get interested in DFT specifically so early anyways? Is there a lab you want to join that does DFT simulations? I'm not sure how you are going to learn outside of a lab, other than running example systems and getting familiar with the inputs/outputs. I can recommend a good book for computational chemistry concepts in the morning
1
1
u/hdmitard 16d ago
By the time you actually need access to HPC facilities, you’ll already have plenty to keep yourself busy with.
Just remember that computing power has increased by roughly six to eight orders of magnitude since the 1950s, depending on what exactly you’re comparing. And somehow, that didn’t stop physicists from developing and running numerical models for decades - DLCA, Ising Monte Carlo simulations, the kac ring model, the rouse model, and even n-body simulations, to name just a few.
A little humility goes a long way. You’re just getting started, and I get it, you’re enthusiastic. That’s great. But you can already accomplish an enormous amount with far less computing power than you seem to think you need.
Of course, HPC becomes practically unavoidable when you’re working on research problems involving things like large-scale DFT calculations or molecular dynamics simulations with a substantial number of atoms. But, as far as I can tell, you’re not quite there yet.
So, in short, grab a textbook like Giordano’s, start implementing and running some numerical models on your own computer, and get your hands dirty. There’s really no need to jump straight to a computing cluster before you’ve even explored what you can do on a regular PC.
1
u/Bergergi 16d ago
I'm not sure jumping straight into CUDA, is a good use of your time. There's a lot of stuff you can learn that's beneficial for HPC, that doesn't need special hardware.
6
u/i_am_buzz_lightyear 16d ago
As the other poster said, you don't need HPC yet. You should focus on the core ideas and programming for your application. If done well, you can scale to HPC relatively easily down the road.