Skip to main content

PAR Class 6, Mon 2022-01-31

1 Broadcasting the class?

Would you like to point my phone at me lecturing and attempt broadcast and record it on webex?

2 Parallel.ecse, ctd

We'll continue the lab to help you get started.

3 OpenMP, ctd

  1. To compile foo.cc into foo, you can say make foo .

  2. Envars, e.g.

    OMP_NUM_THREADS=2

    See https://hpc-tutorials.llnl.gov/openmp/env_vars/

  3. My file common has useful stuff.

  4. ulimit -s 100000000 can be useful.

    In paged virtual memory, stacks are more flexible than apparent.

    Dunno if OMP_STACKSIZE does anything.

  5. OpenMP on GPU:

    https://www.nersc.gov/users/training/events/openmp-device-offload-sept-2021/

  6. I've just given you an intro.

4 OpenACC

  1. Newer than OpenMP.

  2. More abstract; compiler tries to determine what to parallelize.

  3. Your algorithm needs to be parallelizable. That's the hardest part.

  4. https://www.openacc.org/

  5. I'll go quickly through the tutorials from https://www.openacc.org/events/openacc-online-course-2018 .

    You can read more on your own.

5 My teaching strategy

Leave you wishing that I'd taught you more.