Ludovic Räss
    • Create new note
    • Create a note from template
      • 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
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me 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
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control 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
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me 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
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # Geocomputing coffee ###### tags: `SwissGeocomputingCentre` `computing-coffee` :::info :bulb: **What is this geocomputing coffee about?** - informal get-together over lunchtime with people interested in -- or curious about -- the geocomputing thematic - exchange and learn about computational-related topics - share your latest advances or discuss technical issues ::: ### :question: What would you like to discuss? - create a small package and make it available on GitHub - in Python - in Julia - Julia in the geosciences - differentiable programming - Python HPC workflow - Python best practice ## Upcoming Meeting :::warning ### :writing_hand: Register here **If you are planning to attend** please add your name & email to the following list _(first you need to select the edit mode in the upper left corner of the window)_: ``` Ludovic Räss, ludovic.raess@unil.ch Ayoub Fatihi, ayoub.fatihi@unil.ch Jingyan Yu, jingyan.yu@unil.ch William Halter, william.halter@unil.ch ``` ::: :::danger ### Optimal meeting day/time - Next meeting - Thursday 9.11 at 10h30 - 11h30 | xxxxxx - Thursday 9.11 at 12h15 - 13h15 | xxxxxx - Thursday 16.11 at 10h30 - 11h30 | xxx - Thursday 16.11 at 12h00 - 13h00 | xxxx - Preferred meeting time - Thursdays at 10h30 - 11h30 | xxxxxx - Thursdays at 12h15 - 13h15 | xxxxxxx - Other suggestion - else? ::: > **TOPIC**: Git, GitHub, Remote-SSH via VS Code ### :computer: Hands-on :::info :bulb: Ideally, bring your laptop to follow along the GitHub demo in order to apply it live, or later, to your personal needs. If interested, having already a GitHub account could be a good starting point. ::: - Cover the material of the following tutorial https://github.com/Unil-SGC/geocomputing-coffee/tree/main/1-git-demo in slow motion - demo about the basics of using git, GitHub, and Julia - syncing local and remote repos using git - running interactively on Curnagl GPU node --- _do not modify anything below this here_ ## Meeting 26.10.23 :::warning ### :writing_hand: Register here **If you are planning to attend** please add your name & email to the following list _(first you need to select the edit mode in the upper left corner of the window)_: ``` Ludovic Räss, ludovic.raess@unil.ch Marj Tonini, marj.tonini@unil.ch Tom Beucler, tom.beucler@unil.ch Beatriz Quintal, beatriz.quintal@unil.ch François Bavaud, francois.bavaud@unil.ch Haokun Liu, haokun.liu@unil.ch William Halter, william.halter@unil.ch Stefan Schmalholz, stefan.schmalholz@unil.ch Jingyan Yu, jingyan.yu@unil.ch Edith Sotelo, edith.sotelogamboa@unil.ch Ben Klein, benjaminzachary.klein@unil.ch James Irving, james.irving@unil.ch Marc-Henri Derron, marc-henri.derron@unil.ch Milton Gomez, milton.gomez@unil.ch Mattia Mazzucchelli, mattia.mazzucchelli@unil.ch Anindita Samsu, anindita.samsu@unil.ch Ayoub Fatihi, ayoub.fatihi@unil.ch Ian Delaney, ianarburua.delaney@unil.ch Luca Bütikofer, luca.butikofer@unil.ch Flavio Calvo, flavio.calvo@unil.ch Alessio Poloni, alessio.poloni@unil.ch Emmanuel Jeanvoine, emmanuel.jeanvoine@unil.ch Pau Wiersma, pau.wiersma@unil.ch Fuxiao Jiang, fuxiao.jiang@unil.ch Liudmila Khakimova, liudmila.khakimova@unil.ch Zenan Huo, zenan.huo@unil.ch György Hetényi, gyorgy.hetenyi@unil.ch Alannah Brett, alannah.brett@unibe.ch Antonin Chalé, antonin.chale@unil.ch Christian Kaiser, christian.kaiser@unil.ch ``` ::: > **TOPIC**: Introducing the **geocomputing coffee** in FGSE :::info - Meeting time **12h10 - 13h15** - Room **GEO 2138** ::: ### Schedule | Time | Column 2 | Column 3 | | -------- | -------- | -------- | | 12h10 - 12h30 | [Welcome](#Welcome) - SGC (+ DCSR) intro | Marj, Ludovic, Flavio | | 12h30 - 12h45 | Grabbing Lunch | | | 12h45 - 13h20 | [Hands-on](#-Hands-on) - git/GitHub/Julia | Ludovic | | 13h20 - 13h25 | Wrapping-up, what's up next? | Marj, Ludovic | ### Welcome As a first get-together, the goal of this meeting is to: - (Re)-introduce briefly the Swiss Geocomputing Centre (SGC) - Website https://unil-sgc.github.io - GitHub organisation https://github.com/Unil-SGC - Discord chat server - Introduce the activities we plan to offer within the SGC **geocomputing coffee** - Provide a hands-on about version control and reproducible science using good-practices and tools for software carpentry. ### :computer: Hands-on :::info :bulb: Ideally, bring your laptop to follow along the GitHub demo in order to apply it live, or later, to your personal needs. If interested, having already a GitHub account could be a good starting point. ::: - demo about the basics of using git, GitHub, and Julia - syncing local and remote repos using git - running interactively on Curnagl GPU node #### Pre-requisite 1. Install VS Code (free editor): https://code.visualstudio.com 2. Install [Julia](https://julialang.org) (open source): [download](https://julialang.org/downloads/) | [juliaup](https://github.com/JuliaLang/juliaup) 3. Install VS Code extensions: [Julia extension](https://code.visualstudio.com/docs/languages/julia#_getting-started) | [Remote-SSH extension](https://code.visualstudio.com/blogs/2019/07/25/remote-ssh#_connect-using-remote-ssh) 4. Create a GitHub account: https://github.com 5. Have access to Curnagl 6. Set-up password-less ssh; see [Connexion with a key](https://wiki.unil.ch/ci/books/high-performance-computing-hpc/page/ssh-connection-to-dcsr-cluster) 8. Add an entry to the hostfile as ```sh= Host curnagl HostName curnagl.dcsr.unil.ch User <username> IdentityFile ~/.ssh/id_ed25519 ``` #### Do it yourself 1. On github.com - Create a repository on GitHub 2. On your local computer - Clone it locally - Launch Julia from VS Code - Add a memcopy script `A = B + s * C`: - using broadcasting - using loops - :point_right: you can find the script [:pencil: here](https://gist.github.com/luraess/7e7410ac4113b9fe9bb951510d0baf76) - Report performance - Commit and push the script (from your local computer) 3. On a remote server (here `curnagl`) - Log into Curnagl and request an interactive node ``` Sinteractive ``` - Load the Julia and CUDA modules ``` module load gcc/10.4.0 module load julia module load cuda ``` - navigate to your scratch space `cd /scratch/<username>` - git clone the git repository you created and populated previously ``` git clone ... ``` - Create a new branch (here named `gpu-test`) ``` git checkout -b gpu-test ``` - Add CUDA package and a GPU kernel to perform memory copy: ```julia function memcopy_gp!(A, B, C, s) ix = (blockIdx().x-1) * blockDim().x + threadIdx().x iy = (blockIdx().y-1) * blockDim().y + threadIdx().y A[ix, iy] = B[ix, iy] + s * C[ix, iy] return end CUDA.@sync @cuda blocks=$blocks threads=$threads memcopy_gp!($A, $B, $C, $s) ``` - Add remaining details to make it work - Test it :rocket: - Commit and push on using VS Code git capabilities 4. Verify that the changes synced on github.com and pull them locally

    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