Unit 0.3.4 Cloning the LAFF-On-PfHP repository¶
We have placed all materials on GitHub. GitHub is a development environment for software projects. In our case, we use it to disseminate the various activities associated with this course.
On the computer on which you have chosen to work, "clone" the GitHub repository for this course:
Click onand copy https://github.com/ULAFF/LAFF-On-PfHP.git.
On the computer where you intend to work, in a terminal session on the command line in the directory where you would like to place the materials, execute
git clone https://github.com/ULAFF/LAFF-On-PfHP.gitThis will create a local copy (clone) of the materials.
Sometimes we will update some of the files from the repository. When this happens you will want to execute, in the cloned directory,
git stash savewhich saves any local changes you have made, followed by
git pullwhich updates your local copy of the repository, followed by
git stash popwhich restores local changes you made. This last step may require you to "merge" files that were changed in the repository that conflict with local changes.
Upon completion of the cloning, you will have a directory structure similar to that given in Figure 0.3.1.
We start by checking whether your environment is set up correctly for the programming exercises. In a terminal window, change to the directory
Assignments/Week0/C/. In it, at the prompt, type
make HelloWorldThis will compile, link, and execute the driver in file
main.c. The below video discusses what you should see.
libblis.ais not found, then you likely did not install that library correction in Unit 0.3.3. In particular, you likely skipped
If you get the error message
clang: error: unsupported option '-fopenmp'Then you need to set the path to the
gcccompiler. See Unit 0.3.3.