{"id":19867683,"url":"https://github.com/cwsmith/wdmapp_coupling","last_synced_at":"2026-03-05T11:31:10.692Z","repository":{"id":93889125,"uuid":"256525003","full_name":"cwsmith/wdmapp_coupling","owner":"cwsmith","description":null,"archived":false,"fork":false,"pushed_at":"2020-07-02T21:10:35.000Z","size":107577,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T00:39:12.236Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":false,"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/cwsmith.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":"2020-04-17T14:26:23.000Z","updated_at":"2020-07-01T19:01:48.000Z","dependencies_parsed_at":"2023-04-26T15:02:19.122Z","dependency_job_id":null,"html_url":"https://github.com/cwsmith/wdmapp_coupling","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/cwsmith/wdmapp_coupling","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwsmith%2Fwdmapp_coupling","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwsmith%2Fwdmapp_coupling/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwsmith%2Fwdmapp_coupling/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwsmith%2Fwdmapp_coupling/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cwsmith","download_url":"https://codeload.github.com/cwsmith/wdmapp_coupling/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwsmith%2Fwdmapp_coupling/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30122084,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T11:11:57.947Z","status":"ssl_error","status_checked_at":"2026-03-05T11:11:29.001Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-12T15:29:59.295Z","updated_at":"2026-03-05T11:31:10.603Z","avatar_url":"https://github.com/cwsmith.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# wdmapp_coupling\n\nAdios2-based coupler for XGC and GENE\n\n## Build on SCOREC RHEL7\n\n### Setup\n\nClone the repo and create a build directory:\n\n```\ngit clone git@github.com:SCOREC/wdmapp_coupling.git\nmkdir build-wdmCoupler-rhel7\n```\n\nRun the following commands to select the compiler and set environment variables\nfor dependencies.  *This needs to be done every time you create a new shell and\nbuild within it.*\n\n```\nmodule purge\nmodule unuse /opt/scorec/spack/lmod/linux-rhel7-x86_64/Core\nmodule use /opt/scorec/spack/dev/lmod/linux-rhel7-x86_64/Core\nmodule load gcc mpich adios2\n```\n\n### Build\n\n```\ncd build-wdmCoupler-rhel7\ncmake ../wdmapp_coupling/cpl -DCMAKE_CXX_COMPILER=mpicxx\nmake\n```\n\nIf all goes well you will have a `cpl` binary in the `src` directory.\n\n## Build on NERSC Cori\n\n### Setup\n\nClone the repo and create a build directory:\n\n```\ngit clone git@github.com:SCOREC/wdmapp_coupling.git\nmkdir build-wdmCoupler-intel-cori\n```\n\nRun the following commands to select the compiler and set environment variables\nfor dependencies.  *This needs to be done every time you create a new shell and\nbuild within it.*\n\n```\na2=/project/projectdirs/m499/Software/adios2/DEFAULT/cori_haswell/DEFAULT\nmodule load cmake\nexport CMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH:$a2\nexport LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$a2/lib64\n```\n\n### Build\n\n```\ncd build-wdmCoupler-intel-cori\ncmake ../wdmapp_coupling/cpl -DCMAKE_CXX_COMPILER=CC\nmake\n```\n\nIf all goes well you will have a `cpl` binary in the `src` directory.\n\n### Run\n\nTo run the `cpl` binary the `module load` and `export` commands need to be added\nto your script that calls `srun`.  For example,\n\n`runCoriCpl.sh`\n\n```\n#!/bin/bash\n#SBATCH --qos=debug\n#SBATCH --time=5\n#SBATCH --nodes=1\n#SBATCH --tasks-per-node=1\n#SBATCH --constraint=haswell\n\na2=/project/projectdirs/m499/Software/adios2/DEFAULT/cori_haswell/DEFAULT\nexport LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$a2/lib64\n\nsrun /path/to/build-wdmCoupler-intel-cori/src/cpl\n```\n\nWhere this script is submitted with `sbatch runCoriCpl.sh`.\n\n## Build on AiMOS\n\n### Build Kokkos\n\n#### Setup\n\nCreate an environment script `~/barn/kokkos/envKkAimosGnu.sh` with the following\ncontents:\n\n```\nmodule use\n/gpfs/u/software/dcs-spack-install/v0133gcc/lmod/linux-rhel7-ppc64le/gcc/7.4.0-1/\nmodule load gcc/7.4.0/1\nmodule load cmake/3.15.4-mnqjvz6\n\nexport CUDA_DIR=/usr/local/cuda-10.2/\nexport PATH=$PATH:${CUDA_DIR}/bin\n```\n\n#### Build\n\n```\ncd ~/barn/\nmkdir build-kokkos3-aimos-gnu74\ncd !$\ncmake ../kokkos/ \\\n-DCMAKE_CXX_COMPILER=~/barn/kokkos/bin/nvcc_wrapper \\\n-DKokkos_ARCH_VOLTA70=ON \\\n-DKokkos_ENABLE_SERIAL=ON \\\n-DKokkos_ENABLE_CUDA=on \\\n-DKokkos_CUDA_DIR=$CUDA_DIR \\\n-DKokkos_ENABLE_CUDA_LAMBDA=on \\\n-DKokkos_ENABLE_DEBUG=on \\\n-DKokkos_ENABLE_PROFILING=on \\\n-DCMAKE_INSTALL_PREFIX=~/barn/build-kokkos3-aimos-gnu74/install\n\nmake -j8 install\n```\n\n\n### Build Coupler\n\n#### Setup\n\nCreate an environment script `~/barn/wdmapp_coupling/envCplAimosGnu.sh` with the\nfollowing contents:\n\n```\nmodule use\n/gpfs/u/software/dcs-spack-install/v0133gcc/lmod/linux-rhel7-ppc64le/gcc/7.4.0-1/\nmodule load gcc/7.4.0/1\nmodule load openmpi/3.1.4-mm5hjuq\nmodule load \\\n  cmake/3.15.4-mnqjvz6 \\\n  adios2/2.5.0-rqsvxj4\n\nexport\nCMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH:~/barn/build-dcs-gcc74-kokkos3/install\nexport kk=~/barn/kokkos\nexport OMPI_CXX=$kk/bin/nvcc_wrapper\n\nexport CUDA_DIR=/usr/local/cuda-10.2/\nexport PATH=$PATH:${CUDA_DIR}/bin\n```\n\n#### Build\n\n```\ncd ~/barn\nsource wdmapp_coupling/envCplAimosGnu.sh\nmkdir build-wdmCoupler-aimosGnu\ncd !$\ncmake ../wdmapp_coupling/cpl -DCMAKE_CXX_COMPILER=mpicxx\nmake\n```\n\nIf all goes well, the `src/cpl` executable will be created.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcwsmith%2Fwdmapp_coupling","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcwsmith%2Fwdmapp_coupling","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcwsmith%2Fwdmapp_coupling/lists"}