{"id":15654943,"url":"https://github.com/huangcongqing/cuda-learning","last_synced_at":"2025-04-15T10:01:48.003Z","repository":{"id":50279941,"uuid":"454759356","full_name":"HuangCongQing/cuda-learning","owner":"HuangCongQing","description":"cuda编程学习入门","archived":false,"fork":false,"pushed_at":"2024-07-22T09:40:25.000Z","size":5940,"stargazers_count":34,"open_issues_count":1,"forks_count":6,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-28T19:07:41.448Z","etag":null,"topics":["cuda","cuda-kernels","cuda-programming"],"latest_commit_sha":null,"homepage":"","language":"Cuda","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/HuangCongQing.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":"2022-02-02T12:07:35.000Z","updated_at":"2025-02-26T13:16:08.000Z","dependencies_parsed_at":"2024-10-23T04:21:48.059Z","dependency_job_id":"782056fd-3954-4774-a115-5133012ae7c1","html_url":"https://github.com/HuangCongQing/cuda-learning","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/HuangCongQing%2Fcuda-learning","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuangCongQing%2Fcuda-learning/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuangCongQing%2Fcuda-learning/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuangCongQing%2Fcuda-learning/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HuangCongQing","download_url":"https://codeload.github.com/HuangCongQing/cuda-learning/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249048745,"owners_count":21204306,"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":["cuda","cuda-kernels","cuda-programming"],"created_at":"2024-10-03T12:55:09.072Z","updated_at":"2025-04-15T10:01:47.966Z","avatar_url":"https://github.com/HuangCongQing.png","language":"Cuda","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\n * @Description: \n * @Author: HCQ\n * @Company(School): UCAS\n * @Email: 1756260160@qq.com\n * @Date: 2022-02-02 20:08:32\n * @LastEditTime: 2024-05-07 19:55:12\n * @FilePath: /cuda-learning/README.md\n--\u003e\n# cuda-learning\ncuda学习入门\n\nNote: https://www.yuque.com/huangzhongqing/hpc/pz921g （暂未公开）\n\n## 编译运行\n```\nmkdir build\ncd build\ncmake ..\nmake\n```\n\n```\nnvcc hello-gpu.cu -o hello-gpu\n# 调试\nnvcc -g -G hello-gpu.cu -o hello-gpu\n```\n\n\n## PyTorch加入自定义Cuda算子demo\n* docs: https://www.yuque.com/huangzhongqing/cuda/wqexr9\n* code: [python_using_cpp_cuda](./python_using_cpp_cuda)\n* ref: https://github.com/JeffWang987/Python_Using_Cpp_CUDA\n\n```shell\n# 编译cuda生成.so文件\npython setup.py develop\n# 测试运行\npython ball_query_example.py\n\n```\n\n\n## CUDA相关库\n\n* [cub](cuda_lib/cub)\n* [thrust](cuda_lib/thrust)\n* [cublas](cuda_lib/cublas)\n* [cutlass](cuda_lib/cutlass)\n\n### [cub](cuda_lib/cub)\n* TODO\n\n### [thrust](cuda_lib/thrust)\n* TODO\n\n\n### [cublas](cuda_lib/cublas)\n\n下面是测试[demo](cuda_lib/cublas/test_gemm.cpp)\n```shell\n# 编译：\nnvcc test_gemm.cpp -o test_gemm -L/usr/local/cuda/lib64 -lcudart -lcuda -lcublas\n# 运行：\n./test_gemm\n```\n链接：https://zhuanlan.zhihu.com/p/403247313\n\n\n\n### [cutlass](cuda_lib/cutlass)\n* TODO","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuangcongqing%2Fcuda-learning","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuangcongqing%2Fcuda-learning","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuangcongqing%2Fcuda-learning/lists"}