{"id":19867680,"url":"https://github.com/cwsmith/kokkosrelocatabledevicecode","last_synced_at":"2025-08-22T07:40:47.616Z","repository":{"id":227144091,"uuid":"770586394","full_name":"cwsmith/kokkosRelocatableDeviceCode","owner":"cwsmith","description":"example of kokkos using CUDA rdc","archived":false,"fork":false,"pushed_at":"2024-03-11T20:12:30.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-01T00:39:14.593Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","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":"LICENSE","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}},"created_at":"2024-03-11T20:01:47.000Z","updated_at":"2024-03-11T20:11:42.000Z","dependencies_parsed_at":"2024-03-11T21:29:09.111Z","dependency_job_id":null,"html_url":"https://github.com/cwsmith/kokkosRelocatableDeviceCode","commit_stats":null,"previous_names":["cwsmith/kokkosrelocatabledevicecode"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cwsmith/kokkosRelocatableDeviceCode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwsmith%2FkokkosRelocatableDeviceCode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwsmith%2FkokkosRelocatableDeviceCode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwsmith%2FkokkosRelocatableDeviceCode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwsmith%2FkokkosRelocatableDeviceCode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cwsmith","download_url":"https://codeload.github.com/cwsmith/kokkosRelocatableDeviceCode/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwsmith%2FkokkosRelocatableDeviceCode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271605964,"owners_count":24788968,"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-22T02:00:08.480Z","response_time":65,"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":[],"created_at":"2024-11-12T15:29:59.120Z","updated_at":"2025-08-22T07:40:47.587Z","avatar_url":"https://github.com/cwsmith.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kokkosRelocatableDeviceCode\nexample of kokkos using CUDA rdc\n\nmore info:\nhttps://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html#nvcc-options-for-separate-compilation\n\n## install kokkos\n\nset `cudaArch` for your GPU\nsee https://kokkos.org/kokkos-core-wiki/keywords.html#architectures\n\n```\ncudaArch=\"Kokkos_ARCH_AMPERE86\" \nd=buildKokkosCUDA\ncmake -S kokkos -B $d \\\n  -DCMAKE_CXX_COMPILER=g++ \\\n  -DKokkos_ARCH_AMPERE86=ON \\\n  -D${cudaArch}=ON \\\n  -DKokkos_ENABLE_CUDA=on \\\n  -DKokkos_ENABLE_CUDA_LAMBDA=on \\\n  -DBUILD_SHARED_LIBS=OFF \\\n  -DKokkos_ENABLE_CUDA_RELOCATABLE_DEVICE_CODE=ON \\\n  -DKokkos_ENABLE_SERIAL=ON \\\n  -DKokkos_ENABLE_DEBUG=on \\\n  -DKokkos_ENABLE_TESTS=off \\\n  -DCMAKE_INSTALL_PREFIX=$d/install\ncmake --build $d -j 12 --target install\n```\n\n## install rdc example\n\n```\nkk=$PWD/buildKokkosCUDA/install/lib64/cmake/Kokkos\ncmake -S kkRdc -B buildRdc -DKokkos_DIR=$kk\ncmake --build buildRdc\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcwsmith%2Fkokkosrelocatabledevicecode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcwsmith%2Fkokkosrelocatabledevicecode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcwsmith%2Fkokkosrelocatabledevicecode/lists"}