{"id":28274287,"url":"https://github.com/equiel-1703/cuhip","last_synced_at":"2026-05-14T23:31:55.766Z","repository":{"id":287093633,"uuid":"963532314","full_name":"Equiel-1703/cuhip","owner":"Equiel-1703","description":"Wrapper tool to convert CUDA source code to HIP code and compile it with HIPCC. Useful for learning CUDA programming using AMD devices..","archived":false,"fork":false,"pushed_at":"2025-04-10T02:05:25.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-16T05:44:41.276Z","etag":null,"topics":["cuda","hip"],"latest_commit_sha":null,"homepage":"","language":"C++","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/Equiel-1703.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":"2025-04-09T20:30:03.000Z","updated_at":"2025-04-10T02:06:48.000Z","dependencies_parsed_at":"2025-04-09T23:32:46.603Z","dependency_job_id":null,"html_url":"https://github.com/Equiel-1703/cuhip","commit_stats":null,"previous_names":["equiel-1703/cuhip"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Equiel-1703/cuhip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Equiel-1703%2Fcuhip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Equiel-1703%2Fcuhip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Equiel-1703%2Fcuhip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Equiel-1703%2Fcuhip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Equiel-1703","download_url":"https://codeload.github.com/Equiel-1703/cuhip/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Equiel-1703%2Fcuhip/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273272563,"owners_count":25075985,"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-09-02T02:00:09.530Z","response_time":77,"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":["cuda","hip"],"created_at":"2025-05-21T01:16:53.893Z","updated_at":"2026-05-14T23:31:55.709Z","avatar_url":"https://github.com/Equiel-1703.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cuhip\n\n**cuhip** is a easy-to-use wrapper tool designed to simplify the process of converting CUDA source code to HIP code and compiling it with HIPCC. This tool is particularly useful for learners who want to explore CUDA programming on AMD platforms, without having to manually convert and compile their code every time (this was exactly the reason for creating this tool).\n\n## Pre-requisites\n\n- **AMD ROCm Software Stack**: Ensure you have ROCm installed on your system (and available on your PATH). You can find information on how to download and install it on the [AMD ROCm documentation](https://rocm.docs.amd.com/en/latest/).\n\n- **CUDA Toolkit**: Ensure you have the CUDA Toolkit installed on your system (and on your PATH). You can download it from the [NVIDIA website](https://developer.nvidia.com/cuda-downloads). Don't worry, you don't need to have an NVIDIA GPU to install it, but you do need the toolkit for the `hipify-clang` tool to work.\n\n## Installation\n\n1. Clone the repository:\n\n    ```bash\n    git clone https://github.com/Equiel-1703/cuhip.git\n    cd cuhip\n    ```\n\n2. Compile the tool:\n\n    ```bash\n    make all\n    ```\n\n3. The `cuhip` executable will be created in the `bin` directory.\n\n    ```bash\n    cd bin\n    ```\n\n4. Make the `cuhip` executable available in your PATH. Optionally, you can add the above line to your `.bashrc` or `.bash_profile` to make it permanent.\n\n    ```bash\n    export PATH=$PATH:$(pwd) # Add this line to your .bashrc or .bash_profile to make it permanent\n    ```\n\n## Usage\n\n1. Navigate to the directory where your CUDA source file is located.\n\n    ```bash\n    cd /path/to/your/cuda/source\n    ```\n\n2. Run the `cuhip` tool to convert and compile it:\n\n    ```bash\n    cuhip \u003csource_file.cu\u003e\n    ```\n\n3. The binary will be generated in the same directory as the source code and will have the same name, but with a `.out` extension. Enjoy your HIP-ified code!\n\n## Contributing\n\nContributions are welcome! Feel free to open issues or submit pull requests to improve **cuhip**.\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n\n---\n\u003cdiv align=\"center\"\u003e\nWhat are you waiting for? Go ahead and do some CUDA programming on your AMD GPU with \u003cstrong\u003ecuhip\u003c/strong\u003e!\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fequiel-1703%2Fcuhip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fequiel-1703%2Fcuhip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fequiel-1703%2Fcuhip/lists"}