{"id":23015229,"url":"https://github.com/ptsolvers/adalovelace22-gpu","last_synced_at":"2025-08-14T07:31:57.741Z","repository":{"id":58218731,"uuid":"528726546","full_name":"PTsolvers/AdaLovelace22-GPU","owner":"PTsolvers","description":"GPU-computing in geodynamics workshop material","archived":false,"fork":false,"pushed_at":"2022-09-01T14:17:58.000Z","size":12671,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-02T14:51:31.281Z","etag":null,"topics":["geodynamics","gpu","julialang"],"latest_commit_sha":null,"homepage":"","language":"Julia","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PTsolvers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-08-25T06:39:06.000Z","updated_at":"2024-11-18T04:19:45.000Z","dependencies_parsed_at":"2022-08-31T00:20:11.105Z","dependency_job_id":null,"html_url":"https://github.com/PTsolvers/AdaLovelace22-GPU","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PTsolvers/AdaLovelace22-GPU","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PTsolvers%2FAdaLovelace22-GPU","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PTsolvers%2FAdaLovelace22-GPU/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PTsolvers%2FAdaLovelace22-GPU/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PTsolvers%2FAdaLovelace22-GPU/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PTsolvers","download_url":"https://codeload.github.com/PTsolvers/AdaLovelace22-GPU/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PTsolvers%2FAdaLovelace22-GPU/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270384150,"owners_count":24574526,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-14T02:00:10.309Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["geodynamics","gpu","julialang"],"created_at":"2024-12-15T11:11:50.986Z","updated_at":"2025-08-14T07:31:57.172Z","avatar_url":"https://github.com/PTsolvers.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ada Lovelace 2022 GPU\nGPU-computing in geodynamics workshop material\n\nProgram: https://meetings.copernicus.org/2022AdaLovelaceWorkshop/programme/programme.html\n\n\n## Automatic notebook generation\n\nThe presentation slides and the demo notebook are self-contained in a Jupyter notebook [alw22-gd-gpu.ipynb](alw22-gd-gpu.ipynb) that can be auto-generated using literate programming by deploying the [alw22-gd-gpu.jl](alw22-gd-gpu.jl) script.\n\nTo reproduce:\n1. Clone this git repo\n2. Open Julia and resolve/instantiate the project\n```julia-repl\nusing Pkg\nPkg.activate(@__DIR__)\nPkg.resolve()\nPkg.instantiate()\nPkg.add(url=\"https://github.com/EnzymeAD/Enzyme.jl.git\", rev=\"main\")\n```\n_:warning: Note that the `main` branch of Enzyme.jl should be used._\n\n3. Run the deploy script\n```julia-repl\njulia\u003e using Literate\n\njulia\u003e include(\"deploy_notebooks.jl\")\n```\n4. Then using IJulia, you can launch the notebook and get it displayed in your web browser:\n```julia-repl\njulia\u003e using IJulia\n\njulia\u003e notebook(dir=\"./\")\n```\n_To view the notebook as slide, you need to install the [RISE](https://rise.readthedocs.io/en/stable/installation.html) plugin_\n\n\n## Self-contained adjoint-based GD inversion scripts\nThe scripts used to produce the adjoint-based gradient descent point-wise inversion for the power-law prefactor in a free-surface channel flow are accessible in the [scripts](scripts) folder:\n- GPU version: [free_surface_flow_enzyme_2D_cuda.jl](scripts/free_surface_flow_enzyme_2D_cuda.jl)\n- CPU version: [free_surface_flow_enzyme_2D.jl](scripts/free_surface_flow_enzyme_2D.jl)\n\n\n## Resources\n\n#### The pseudo-transient method\nGMD paper: https://doi.org/10.5194/gmd-15-5757-2022\n- Stokes flow examples: https://github.com/PTsolvers/PseudoTransientStokes.jl\n- Diffusion solver examples: https://github.com/PTsolvers/PseudoTransientDiffusion.jl\n\n#### Julia packages\n- [ParallelStencil.jl](https://github.com/omlins/ParallelStencil.jl)\n- [ImplicitGlobalGrid.jl](https://github.com/eth-cscs/ImplicitGlobalGrid.jl)\n- [CUDA.jl](https://github.com/JuliaGPU/CUDA.jl)\n- [Enzyme.jl](https://github.com/EnzymeAD/Enzyme.jl)\n\n#### Courses and resources\n- ETHZ course on solving PDEs with GPUs: https://pde-on-gpu.vaw.ethz.ch\n- More [here](https://pde-on-gpu.vaw.ethz.ch/extras/#extra_material)\n\n#### Misc\n- Frontier GPU multi-physics solvers: https://ptsolvers.github.io/GPU4GEO/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fptsolvers%2Fadalovelace22-gpu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fptsolvers%2Fadalovelace22-gpu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fptsolvers%2Fadalovelace22-gpu/lists"}