{"id":19867773,"url":"https://github.com/cwsmith/kokkospytorch","last_synced_at":"2025-06-10T22:03:39.633Z","repository":{"id":93889024,"uuid":"313742729","full_name":"cwsmith/kokkosPytorch","owner":"cwsmith","description":"kokkos + pytorch","archived":false,"fork":false,"pushed_at":"2020-12-18T20:53:39.000Z","size":83,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-01T00:39:15.968Z","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,"publiccode":null,"codemeta":null}},"created_at":"2020-11-17T21:04:09.000Z","updated_at":"2020-11-24T21:56:56.000Z","dependencies_parsed_at":"2023-04-26T15:01:55.606Z","dependency_job_id":null,"html_url":"https://github.com/cwsmith/kokkosPytorch","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/cwsmith%2FkokkosPytorch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwsmith%2FkokkosPytorch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwsmith%2FkokkosPytorch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwsmith%2FkokkosPytorch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cwsmith","download_url":"https://codeload.github.com/cwsmith/kokkosPytorch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwsmith%2FkokkosPytorch/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259159621,"owners_count":22814490,"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":[],"created_at":"2024-11-12T15:30:26.776Z","updated_at":"2025-06-10T22:03:39.611Z","avatar_url":"https://github.com/cwsmith.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kokkosPytorch\nkokkos + pytorch\n\n\n\n## create conda env\n\n```\nmodule use /opt/scorec/spack/v0154/lmod2/linux-rhel7-x86_64/Core\nmodule load anaconda3\nconda create --prefix ./env\nconda init bash\n# take the lines out of ~/.bashrc and put them into `setupConda.sh`\nsource setupConda.sh\nconda activate ./env\nconda install numpy ninja pyyaml mkl mkl-include setuptools cmake cffi\ntyping_extensions future six requests dataclasses\n```\n\n## build libtorch\n\n```\nmodule use /opt/scorec/spack/v0154/lmod2/linux-rhel7-x86_64/Core\nmodule load anaconda3\nsource /path/to/setupConda.sh\nmodule load gcc cmake # we want gcc 7.3\n```\n\nthen follow the instructions here: \n\nhttps://github.com/pytorch/pytorch/blob/master/docs/libtorch.rst#building-libtorch-using-cmake\n\nNote, this enables AVX512, MKL, and some other features our machines (or yours) don't have.  These can be disabled in the cmake command.\n\n## build kokkos pytorch example\n\n```\ngit clone git@github.com:cwsmith/kokkosPytorch.git\nmkdir buildKkPytorch\ncd $_\nexport CMAKE_PREFIX_PATH=/path/to/pytorch/install/dir\nmodule load gcc cmake\ncmake ../kokkosPytorch\nmake -j8\n./hello-world ../kokkosPytorch/model.pt\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcwsmith%2Fkokkospytorch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcwsmith%2Fkokkospytorch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcwsmith%2Fkokkospytorch/lists"}