Skip to content

Commit

Permalink
notes and ac
Browse files Browse the repository at this point in the history
  • Loading branch information
brownsarahm committed Oct 30, 2024
1 parent d6735c0 commit 3215448
Show file tree
Hide file tree
Showing 7 changed files with 1,096 additions and 0 deletions.
4 changes: 4 additions & 0 deletions _practice/2024-10-29.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
1. On Seawulf, modfiy {index}`main.c` from class to accept the integer as a command line argument instead of via input while running the program. [See this tutorial for an example](http://crasseux.com/books/ctutorial/argc-and-argv.html).
2. Write a bash script {index}`demo_test.sh` that runs your compiled program for each integer from 10 to 30 (syntax for a range is `{start..end}` so this would be `{10..30}`)
3. Write an sbatch script, {index}`batchrun.sh` to run your script on a compute node and save the output to a file. The sbatch script should compile and link the program and then call the script. [see the options](https://web.uri.edu/hpc-research-computing/using-seawulf/#sbatch)
4. use [scp](https://www2.stat.duke.edu/comp/security/scp_man.html) to download your modified main, script files, and output to your local computer and include them in your kwl repo.
2 changes: 2 additions & 0 deletions _prepare/2024-10-31.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
1. Review your [`idethoughts.md`](https://compsys-progtools.github.io/spring2024/activities/prepare.html?highlight=idethoughts.md#:~:text=kwl%20repo%20in-,idethoughts.md,-on%20an%20ide_prep) from a few weeks ago and add some summary notes.
1. Think about what features or extensions in your favorite IDE you like the most and that you think others may not know about be prepared to share a small demo of using a feature or explain how it works(as in, open a file that has content in your IDE so that you could show thatt feature).
3 changes: 3 additions & 0 deletions _review/2024-10-29.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
3. Create some variations of the `hello.c` we made in class. Make {index}`hello2.c` print twice with 2 print commands. Make {index}`hello5.c` print 5 times with a for loop and {index}`hello7.c` print 7 times with a for loop. Build them all on the command line and make sure they run correctly.
4. Write a bash script, {index}`assembly.sh` to compile each program to assembly and print the number of lines in each file.
5. Put the output of your script in {index}`hello_assembly_compare.md`. Add to the file some notes on how they are similar or different based on your own reading of them.
7 changes: 7 additions & 0 deletions activities/practice.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,11 @@ Activities:

Activities:
```{include} ../_practice/2024-10-24.md
```
## 2024-10-29

[related notes](../notes/2024-10-29)

Activities:
```{include} ../_practice/2024-10-29.md
```
7 changes: 7 additions & 0 deletions activities/prepare.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,11 @@ Activities:

Activities:
```{include} ../_prepare/2024-10-29.md
```
## 2024-10-31

[related notes](../notes/2024-10-31)

Activities:
```{include} ../_prepare/2024-10-31.md
```
7 changes: 7 additions & 0 deletions activities/review.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,11 @@ Activities:

Activities:
```{include} ../_review/2024-10-24.md
```
## 2024-10-29

[related notes](../notes/2024-10-29)

Activities:
```{include} ../_review/2024-10-29.md
```
Loading

0 comments on commit 3215448

Please sign in to comment.