Skip to content

Commit

Permalink
Updated info about procs/cores in lb doc
Browse files Browse the repository at this point in the history
Closes #28
  • Loading branch information
Jonathon Anderson committed Oct 13, 2018
1 parent 2860a0c commit 083fcec
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions docs/software-and-tools/loadbalancer.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ resource, without the need to learn OpenMP or MPI. This tutorial
assumes user knowledge of Slurm job submission, shell scripting, and
some python.


### Why Use the Load Balancer?

Suppose you have a very simple serial program that crops a photo, and
Expand All @@ -18,6 +19,7 @@ language that has limited parallelization capabilities, this may not
be an option. The easiest solution for this problem is to utilize the
Load Balancer.


### Using the Load Balancer

The Load Balancer is a tool written by CU Boulder Research Computing
Expand All @@ -39,11 +41,15 @@ print “Hello World from process: ”, sys.argv[1]
```

Now we will create a list of calls to the python script that will be
distributed to multiple cores (note that a processor may have one or
more cores, and each core can perform a task). Instead of slowly
typing out commands one-at-a-time, we will use a bash shell script to
create our commands. In a text editor, create a bash shell script
called `create_hello.sh`, that has the following text:
distributed to multiple cores. (Each compute node has one or more
discrete compute processor; most modern processors are made up of
multiple compute "cores", each of which can operate independently and
simultaneously.)

Instead of slowly typing out commands one-at-a-time, we will use a
bash shell script to create our commands. In a text editor, create a
bash shell script called `create_hello.sh`, that has the following
text:

```bash
#!/bin/bash
Expand Down Expand Up @@ -107,6 +113,7 @@ Hello World from process: 4
Hello World from process: 3
```


### Additional Resources

* https://github.com/ResearchComputing/lb
Expand Down

0 comments on commit 083fcec

Please sign in to comment.