GithubHelp home page GithubHelp logo

thomaswolfers / hpc-intro-colossus Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sabryr/hpc-intro-colossus

0.0 0.0 0.0 13.16 MB

License: Other

Ruby 0.18% Makefile 2.68% HTML 0.67% Vim Snippet 61.95% Shell 2.60% R 2.54% Python 29.38%

hpc-intro-colossus's Introduction

Intro to HPC

This lesson is focused on teaching the basics of high-performance computing (HPC).

Build Status

Topic breakdown and todo list

The lesson outline and rough breakdown of topics by lesson writer is in lesson-outline.md. The topics there will be initially generated by the lesson writer, and then reviewed by the rest of the group once complete.

Using this material

  1. Follow the instructions found in the Software Carpentry example lesson source to create a repository for your lesson.

  2. Create the required host-specific code snippets as a subdirectory of _includes/snippets_library. These snippets provide inputs and outputs that are host-specific and that are included automatically when the lesson website is built.

    1. Code snippets are in files named snippet_name.snip and are included automatically when the lesson is built. For example, if the snippet_name was login_output, then the snippet file would be called login_output.snip.
    2. Code snippets are placed in subdirectories that are named according to the episode they appear in. For example, if the snippet is for episode 12, then it will be in a subdirectory called 12.
    3. In the episodes source, snippets are included using Liquid scripting include statements. For example, the first snippet in episode 12 is included using {% include /snippets/12/info.snip %}.
  3. Edit _config_options.yml in your snippets folder. These options set such things as the address of the host to login to, definitions of the command prompt, and scheduler names.

  4. Add your snippet directory name to the GitHub Actions configuration file, .github/workflows/test_and_build.yml.

  5. To test your build, please set the environment variable HPC_JEKYLL_CONFIG to the relative path of the configuration file in your snippets folder: export HPC_JEKYLL_CONFIG=_includes/snippets_library/Site_Cluster_scheduler/_config_options.yml.

Please contribute any configurations you create for your local systems back into the HPC Carpentry snippets library.

Lesson writing instructions

This is a fast overview of the Software Carpentry lesson template. This won't cover lesson style or formatting.

For a full guide to the lesson template, see the Software Carpentry example lesson.

Lesson structure

Software Carpentry lessons are generally episodic, with one clear concept for each episode (example).

An episode is just a markdown file that lives under the _episodes folder. Here is a link to a markdown cheatsheet with most markdown syntax. Additionally, the Software Carpentry lesson template uses several extra bits of formatting- see here for a full guide. The most significant change is the addition of a YAML header that adds metadata (key questions, lesson teaching times, etc.) and special syntax for code blocks, exercises, and the like.

Episode names should be prefixed with a number of their section plus the number of their episode within that section. This is important because the Software Carpentry lesson template will auto-post our lessons in the order that they would sort in. As long as your lesson sorts into the correct order, it will appear in the correct order on the website.

Publishing changes to Github + the Github pages website

The lesson website is viewable at https://hpc-carpentry.github.io/hpc-intro/

The lesson website itself is auto-generated from the gh-pages branch of this repository. Github pages will rebuild the website as soon as you push to the Github gh-pages branch. Because of this gh-pages is considered the "master" branch.

Previewing changes locally

Obviously having to push to Github every time you want to view your changes to the website isn't very convenient. To preview the lesson locally, run make serve. You can then view the website at localhost:4000 in your browser. Pages will be automatically regenerated every time you write to them.

Note that the autogenerated website lives under the _site directory (and doesn't get pushed to Github).

This process requires Ruby, Make, and Jekyll. You can find setup instructions here.

Example lessons

A couple links to example SWC workshop lessons for reference:

hpc-intro-colossus's People

Contributors

sabryr avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.