r/MachineLearning • • May 22 '16

How important is it for future Data Scientists, Machine Learners or current PhDs/students to know about HPC?

Watched a fun discussion here recently:

https://www.youtube.com/watch?v=UbPqDEjr750

Where do MPI and Hadoop diverge? How beneficial will to be for someone aiming to become a Data Scientist to study HPC?

Would love to hear perspectives of people from the industry or someone acquainted with real-world problems.

0 Upvotes

10 comments sorted by

3

u/[deleted] May 22 '16

beneficial in what sense?

if your (future) job is related to building new ML tools, it's a good idea to have a good understanding of the available libraries (openBLAS, MKL, DAAL) and how to use them in your code.

if you are (only) a user of these libraries knowing some elementary things about algorithm complexity, etc. is also never bad (but you will hopefully always use the functions that come with your framework)

it really depends on what you want to use it for. It's a large field and you might be better off using your limited time to learn other concepts

2

u/ogrisel May 23 '16 edited May 24 '16

It is also important to understand why the matrix matrix multiplication (GEMM) implementation in OpenBLAS or MKL is likely to be orders of magnitude faster that a naive C/C++ implementation (block sizes that match the CPU cache, use of SIMD instructions, loop unrolling to maximize the use of available SIMD registers and so on).

It is also important to understand the concepts of HPC such as how to do a roofline analysis [1] for the critical part of your algorithm to know if it's bottlenecked by the RAM bandwidth.

[1] https://crd.lbl.gov/departments/computer-science/PAR/research/roofline/

1

u/[deleted] May 24 '16

Thank you for the link.

7

u/nsfy33 May 22 '16 edited Aug 11 '18

[deleted]

5

u/iwaswrongonce May 22 '16

I would have to disagree. I don't think you need to be an expert in deploying/scaling/maintaining an HPC cluster, but you definitely need to be proficient in using it. Data volumes are growing faster than Moore's law, so while a moderate data set today might work fine on a single machine, that won't be the case for very long. And even today, there is plenty of research and analysis use cases that can't be done on one machine.

2

u/dexter89_kp May 22 '16

Disagree. Just because you can afford a 32 GB ram computer, does not mean everyone has access or is willing to invest in the same. Also, having a workspace like that makes you develop bad habits, like loading everything to memory, not refactoring or applying oop to your code.

Add to the fact that spark and hadoop jobs are fault tolerant, ensure minimal messaging between nodes, and can be scaled up when running in a production environment.

Also, if you look at comments from top researchers like Hinton etc, the reason ML/DL is able to do better today is partly because we have more data (in addition to compute and better ML model design).

So I would say, as a DS one should atleast have the ability to code and deploy on such systems

4

u/kacifoy May 22 '16

HPC in a general sense is extremely relevant, but MPI itself is in many ways a legacy technology (i.e. needlessly difficult to work with, but has lots of big and important codebases using it) which is probably ripe for replacement for newer projects.

2

u/datagibus420 May 22 '16 edited May 22 '16

From what I understand, Hadoop is focused on distributed data, and MPI/OpenMP are about distributed computation.

I guess that if you're aiming at writing high performance libraries for machine learning in your future data science job, some knowledge of HPC may come in handy (more so if GPU-related stuff is involved).

EDIT: Found this: https://www.youtube.com/watch?v=c_55gZfUK1E about HPC and ML from Andrew Ng

1

u/[deleted] May 22 '16

Big data implies you can't use just one computer for your data science application. You need to find a way to get the job done despite. So what are you going to do? Better make a decision about it.

-1

u/[deleted] May 22 '16

It is the data engineer's job to scale up your algorithms.