{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "[Link to this document's Jupyter Notebook](./0126--ENV_pre-class-assignment.ipynb)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "In order to successfully complete this assignment you must do the required reading, watch the provided videos and complete all instructions. The embedded survey form must be entirely filled out and submitted on or before **11:59pm on Tuesday January 26**. Students must come to class the next day prepared to discuss the material covered in this assignment. " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "---\n", "\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Pre-Class Assignment: Navigating Shared Clusters (HPC)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Goals for today's pre-class assignment \n", "\n", "1. [Create XSEDE Account](#Create-XSEDE-Account)\n", "2. [Finding software on the HPCC](#Finding-software-on-the-HPCC)\n", "3. [Assignment wrap up](#Assignment-wrap-up)\n", "\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "\n", "\n", "---\n", "\n", "# 1. Create XSEDE Account\n", "\n", "\n", "\n", "\"Picture\n", "\n", "The National Science Foundation invests quite a bit of money into providing computing resources to researchers. The Extreme Science and Engineering Discovery Environment (XSEDE) is a single virtual system that scientists can use to interactively share computing resources and expertise. Here is a short video that describes XSEDE." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from IPython.display import YouTubeVideo\n", "YouTubeVideo(\"PBUIBJHZzD4\",width=640,height=360)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "As part of this course we have obtained access to compute resources on these National Systems. In order to use these resources you will need an XSEDE portal account. Please sign up for an account here:\n", "\n", "https://portal.xsede.org/#/guest\n", "\n", "Provide your portal ID to the instructor using the Google form below. " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "✅ **QUESTION:** What is your XSEDE Portal Account UserID?" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Put your Portal ID Here." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "\n", "\n", "---\n", "\n", "# 2. Finding software on the HPCC\n", "\n", "\n", "The following video describes the ```PATH``` environment variable and shows you how it can be changed to add software installed in a new location. \n" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from IPython.display import YouTubeVideo\n", "YouTubeVideo(\"2OXvoXejZcw\",width=640,height=360)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Commands used in the above video\n", "\n", "```\n", " ls\n", " clear\n", " which python\n", " cd\n", " env\n", " echo $PATH\n", " echo $PATH | sec -r \"s/:/\\\\n/g\"\n", " export PATH=~/anaconda3/bin:$PATH\n", " ssh dev-intel16\n", " nano ~/.bashrc\n", "```" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "✅ **QUESTION:** What is the ```which``` command used for?" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Put your answer to the above question here." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "✅ **QUESTION:** The PATH environment variable is a set of system folders separated by a colon (:). What command would you use to add the ```/mnt/research/mygroup/bin``` folder to the end of your path?" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Put your answer to the above question here." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The following video shows some basics on how to use the ```module``` command that is available on the HPCC. " ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from IPython.display import YouTubeVideo\n", "YouTubeVideo(\"lXYpQeU3j-0\",width=640,height=360)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Commands used in the above video\n", "\n", "```\n", " ssh dev-intel16\n", " clear\n", " who | wc -l\n", " module list\n", " module spider MATLAB\n", " module unload MATLAB\n", " module load MATLAB/2018b\n", " which matlab\n", " module swap MATLAB/2018b MATLAB/2018a\n", " module avail\n", " module unload gnu\n", " module load intel\n", " module show intel\n", " module purge\n", "```" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "✅ **QUESTION:** Use the ```module spider``` command to search modules. What versions of the libpng are available on the HPCC? (**Note**: if the modules have changed since the last time you used the ```module spider``` command it may need to rebuild it's database which can take a few seconds). " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Put the answer to the above question here. " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "\n", "\n", "---\n", "\n", "# 3. Assignment wrap up\n", "\n", "\n", "Please fill out the form that appears when you run the code below. **You must completely fill this out in order to receive credits for the assignment!**\n", "\n", "[Direct Link to Google Form](https://cmse.msu.edu/cmse401-pc-survey)\n", "\n", "\n", "If you have trouble with the embedded form, please make sure you log on with your MSU google account at [googleapps.msu.edu](https://googleapps.msu.edu) and then click on the direct link above." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "✅ **Assignment-Specific QUESTION:** What is your XSEDE Portal Account UserID?" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Put your answer to the above question here" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "✅ **QUESTION:** Summarize what you did in this assignment." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Put your answer to the above question here" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "✅ **QUESTION:** What questions do you have, if any, about any of the topics discussed in this assignment after working through the jupyter notebook?" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Put your answer to the above question here" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "✅ **QUESTION:** How well do you feel this assignment helped you to achieve a better understanding of the above mentioned topic(s)?" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Put your answer to the above question here" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "✅ **QUESTION:** What was the **most** challenging part of this assignment for you? " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Put your answer to the above question here" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "✅ **QUESTION:** What was the **least** challenging part of this assignment for you? " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Put your answer to the above question here" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "✅ **QUESTION:** What kind of additional questions or support, if any, do you feel you need to have a better understanding of the content in this assignment?" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Put your answer to the above question here" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "✅ **QUESTION:** Do you have any further questions or comments about this material, or anything else that's going on in class?" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Put your answer to the above question here" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "✅ **QUESTION:** Approximately how long did this pre-class assignment take?" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Put your answer to the above question here" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from IPython.display import HTML\n", "HTML(\n", "\"\"\"\n", "\n", "\"\"\"\n", ")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "\n", "\n", "---------\n", "### Congratulations, we're done!\n", "\n", "To get credit for this assignment you must fill out and submit the above survey from on or before the assignment due date." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Course Resources:\n", "\n", "\n", " - [Website](https://msu-cmse-courses.github.io/cmse802-f20-student/)\n", " - [ZOOM](https://msu.zoom.us/j/98207034052)\n", " - [JargonJar](https://docs.google.com/document/d/1ahg48CCFhRzUL-QIHzlt_KEf1XqsCasFBU4iePHhcug/edit#)\n", " - [GIT](https://gitlab.msu.edu/colbrydi/cmse401-s21.git)\n", "\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Written by Dr. Dirk Colbry, Michigan State University\n", "\"Creative
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "----" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "----" ] } ], "metadata": { "anaconda-cloud": {}, "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.3" } }, "nbformat": 4, "nbformat_minor": 2 }