HPC training
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Help
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Collaborative notes and questions for HPC/NIRD course Spring 2021 Please ask questions always at the bottom of this document (edit pen top left of this page to edit). ## Links related to the workshop - Link to this page: https://hackmd.io/@hpc/course-spring-2021 - Course page: https://wiki.uib.no/hpcdoc/index.php/HPC_and_NIRD_toolkit_user_course_March_2021 - Code of conduct: https://docs.carpentries.org/topic_folders/policies/code-of-conduct.html (contacts: radovan.bast@uit.no and thomas.roblitz@uib.no) - GitHub repository for exercise https://github.com/trz42/HPC-NTK-user-course-2021.git - Docker Training GitHub: https://github.com/abdulrahmanazab/docker-training-neic - User Feedback form https://skjemaker.app.uib.no/view.php?id=10083968 ### Presentation material Day 1: - Folder with presentation material: https://drive.google.com/drive/u/1/folders/10VuU7REr4xlijXzg7R7wxfzTsamXHqJw - EasyBuild slides: https://cicero.xyz/v2/remark/github/stigrj/easybuild-demo/main/easybuild-demo.mkd - Pip and conda commands and info can be found in our documentation: https://documentation.sigma2.no/software/userinstallsw/python.html#installing-python-packages Day 2: - [How to improve job scripts for better resource usage](https://cicero.xyz/v3/remark/0.14.0/github.com/bast/talk-better-resource-usage/main/talk.md/) - [NIRD Archive](https://drive.google.com/file/d/1KIXaWqOlZR8khb3YJjmJ1UnujC51n5vX/view?usp=sharing) - [Archive Screencast](https://drive.google.com/file/d/1Te9kXeUyqLLO8-Eyx_BonF2X1Lxk47kT/view?usp=sharing) Day 3: - Folder with presentation material: https://drive.google.com/drive/u/1/folders/10VuU7REr4xlijXzg7R7wxfzTsamXHqJw - NIRD Toolkit : https://apps.sigma2.no - [Asking for help with supercomputers](https://cicero.xyz/v3/remark/0.14.0/github.com/bast/help-with-supercomputers/main/talk.md/) - [Using SSH with public-key authentication](https://git.app.uib.no/mvhulten/hpc-user-course-ssh-key-authentication/-/blob/master/crypto-users.sent) ## Notes from previous days Copied to here: https://hackmd.io/0KojPjA1RGCY7WlKwFbZsw ## Day 4 ### Experience with containers - Jon Lærdahl: Very little, mainly from seminars/brief courses - no practical experience - Lorenz Michel: No experience with containers (excited to learn more) - Alex Paul: little experience, had some short introduction to Docker and Singularity - Sunniva Indrehus: Currently learning and playing with Docker. It is AWSESOME! I do not have experience with Singularity. - Erik Hjerde: Some experience - Hermann Luyt: None. - Emily: My experience with containers is only from individual programs I have installed using Docker. - Lars Snipen: I have used singularity on our local cluster, never on sigma2 - Emiliano Gelati: I have used Docker (basic user). - Tomasz Kopec - SysAdmin background but not much experience with containers, worked mainly with virtual machines. - Raphael Tabase-none - Zhihong: none **Docker Training GitHub**: https://github.com/abdulrahmanazab/docker-training-neic - Abdulrahman's email: ``` Dear All, Welcome to the container tutorial! Practical info: 1- Here is the github repo: https://github.com/abdulrahmanazab/docker-training-neic 2 - The key file for accessing your VM is attached​ (CentOS 7) 3 - If your laptop is Linux/Mac then relax, you are good :) If you have a Windows, then you need to use PUTTY for ssh (https://help.dreamhost.com/hc/en-us/articles/115001764232-Connect-to-your-instance-with-SSH-keys-in-Windows) See you in at 09:00 ! :) BR, Abdulrahman Azab ``` ### Questions - In the Matlab + R example: If there are shared dependencies, can they be shared and thus would you get a smaller size than 300 MiB? - Could you comment on the difference between an image, a Dockerfile and a layer? - source : https://phoenixnap.com/kb/docker-image-vs-container - A Docker image is an immutable (unchangeable) file that contains the source code, libraries, dependencies, tools, and other files needed for an application to run. This you should treat read only and not supposed to modify - Container is a virtualized run-time environment based on the image - The Dockerfile is the recipe for creating the image, basically a text file with commands - I have found this useful: https://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1008316 - I have heard someone say "containers" about .yml files with Python instructions/versions. Is this not technically correct? - you mean like `environment.yml` files in Conda environments? or is this something else? - Yes! - OK I would not call this a container but I would call it a recipe to create an environment. It provides some isolation but not the same isolation as a container. A container is an isolated operating system whereas `environment.yml` creates an envionment in the same operating system. This can also mean that precisely the same `environment.yml` can produce slightly different results on different machines if it links to system libraries "outside" of that environment. - Also the "clean way" looks like an imperative way to build an image. Is it possible to do it declaritively? - Using a Dockerfile, you'd get the newest software, right? Since you don't specify versions, this approach seems to give unpredictable results, so the exact docker image won't be reproducible. Is that correct? - On the other hand, the "dirty way" would give something static, and thus reproducible but not really transparent (not known how it was created). - If possible, could you show a simple implementation how to build or use the Docker to benefit for data analyzing? - In order to register at training.play-with-docker i need to respond to a verfication email. I get no such email. I have looked into all spam folders. I am stuck here... OK got the email now, but this took a loooong time.... - I was able to logon without confirming from an e-mail. - Why does sigma2 use quay.io instead of docker hub as a default for publishing the images? - I find quay has faster builds (in automatic builds when coupled with a recipe file stored on GitHub) - Can we run out of memory on our computer if we run a lot of containers? - I think so but I also think that it is not typical to run several containers at the same time but rather to run one at a time but to have lots of containers/images on the disk. So a more typical issue is to fill up the disk but there are cleanup commands to get rid of old/unused layers/images. - How do we 'cleanup' properly after a session? - For me this worked: `docker image rm -f ourfiglet`, but maybe there are more subtle ways. - Can you please show an example on SAGA or FRAM. Do you have singularity on LUMI ? - Why do we need these virtual machines for the exercices I mean. - Mee too, what is the point of this demo ? - Do we have to install Singularity ourselves on SAGA before we use it, I do not see it as a module ? - Info here https://documentation.sigma2.no/software/containers.html?highlight=singularity - Thank you. This would have been more usefull, VM is just a waste of time - Saga it is not working what you are showing, can you please show atleast the pull step on saga - How do I access project directory from container - Why would we like to compile something on saga in a contrainer? The point with having all the modules precompiled on Saga is that the developer does not have to compile herself? Is the motivation reprodusability? --- Please ask questions always at the bottom of this document, right above this line.

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully