{"id":26766055,"url":"https://github.com/ucl/research-computing-with-cpp","last_synced_at":"2025-04-15T12:35:54.181Z","repository":{"id":21029465,"uuid":"24325316","full_name":"UCL/research-computing-with-cpp","owner":"UCL","description":"UCL-ARC *C++ for Research* course","archived":false,"fork":false,"pushed_at":"2025-03-19T11:26:20.000Z","size":20355,"stargazers_count":28,"open_issues_count":15,"forks_count":20,"subscribers_count":33,"default_branch":"main","last_synced_at":"2025-03-28T20:18:53.222Z","etag":null,"topics":["c-plus-plus","course","gpu","mpi","openmp","ucl"],"latest_commit_sha":null,"homepage":"https://github-pages.ucl.ac.uk/research-computing-with-cpp/","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/UCL.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-09-22T11:07:01.000Z","updated_at":"2025-03-19T11:16:47.000Z","dependencies_parsed_at":"2024-01-08T16:33:50.956Z","dependency_job_id":"14f8f32a-eb5f-40c9-87f2-c94a58c3cd4e","html_url":"https://github.com/UCL/research-computing-with-cpp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UCL%2Fresearch-computing-with-cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UCL%2Fresearch-computing-with-cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UCL%2Fresearch-computing-with-cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UCL%2Fresearch-computing-with-cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UCL","download_url":"https://codeload.github.com/UCL/research-computing-with-cpp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249072821,"owners_count":21208253,"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","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":["c-plus-plus","course","gpu","mpi","openmp","ucl"],"created_at":"2025-03-28T20:18:58.275Z","updated_at":"2025-04-15T12:35:54.159Z","avatar_url":"https://github.com/UCL.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"research-computing-with-cpp\n===========================\n\nDeployed at:\n\nhttp://github-pages.ucl.ac.uk/research-computing-with-cpp\n\n\nHow to build the lessons locally\n-----------------------------------\n\nClone and build the various output files (that step will need some dependencies)\n``` bash\ngit clone https://github.com/UCL-RITS/research-computing-with-cpp\ncd research-computing-with-cpp\n./build.sh\n```\n\nThen you can proceed to build the website locally. The easiest is via docker.\n\n```bash\nmkdir ../bundle # To don't download every single time the ruby dependencies\ndocker run --rm --volume=\"$PWD:/srv/jekyll\" --volume=\"$PWD/../bundle:/usr/local/bundle\" -it jekyll/jekyll:4 jekyll build\npython -m http.server -d _site\n```\n\nDependencies\n-------------\n\nAll the dependencies are set in the `.github/{texlive,python}/requirements.txt` for an ubuntu machine.\n\nOn a Mac, we use g++ installed via [homebrew](https://brew.sh/). So, for g++ version 7, we would run the build command as:\n\n``` bash\nCC=gcc-7 CXX=g++-7 ./build.sh\n```\n\nThe explicit compiler selection is needed on Mac OS for OpenMP (and possibly MPI)\nexamples to build. Update the version number as necessary.\n\nYou will need to have a bunch of stuff installed in order for the build to succeed.\nFor Mac:\n* Libraries:\n   * `brew install boost`\n* For building MPI and OpenMP examples:\n   * `brew install open-mpi`\n   * `brew install gcc`\n* Ruby stuff:\n   * `brew install ruby`\n   * `gem install jekyll --version '~\u003e 4'`\n   * `gem install kramdown --version '~\u003e 2.3.1'\n   * `gem install jekyll-remote-theme`\n`\n* Other utilities:\n   * `brew install wget`\n* Python libraries:\n   * `matplotlib` (plus several other scientific python libraries)\n\nA full LaTeX distribution needs to be available to generate a PDF version of the course notes by the build script.\n\nAlternatively, you can build the docker container available and build the site through it:\n\n```\n$ docker build -t rcpp\n$ docker run -it --rm --volume=$PWD:/root rcpp:latest bash\n# cd\n# ITK_DIR=/usr/lib/InsightToolkit ./build.sh\n# make _site\n```\n\nThen in folder _site, you'll have the `html`'s.\nOr, for a shortcut: `make preview`\n\n\n\nSee https://github.com/UCL-RITS/research-computing-with-cpp/blob/master/01cpp/index.md for an example of how to reference a C file, CMake file, and run an executable\n\nAnd https://github.com/UCL-RITS/research-computing-with-cpp/tree/master/01cpp/cpp/hello\nfor the corresponding code\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fucl%2Fresearch-computing-with-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fucl%2Fresearch-computing-with-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fucl%2Fresearch-computing-with-cpp/lists"}