.gitignore pour HIP
35 règles d’exclusion pour HIP, prêtes à copier dans votre dépôt.
API runtime C++ pour GPU AMD
Le .gitignore complet pour HIP
# Generated by LFGitignore - https://lfgitignore.com
# Created: 2026-08-05 01:29:57 UTC
# Technologies: HIP
### HIP ###
# common build directory
/build/
*.ii
# CMake internal files
/CMakeFiles/
# Static library
*.a
# CMake cache file
/CMakeCache.txt
# Windows executable
*.exe
# autogenerated Makefile
/Makefile
# install script
/cmake_install.cmake
# install manifest list
/install_manifest.txt
# Ninja dependency files
*.ninja-dep
# Ninja log files
*.ninja_log
# Log file
*.log
# Meson log directory
meson-logs/
# Windows object files
*.obj
# shared libraries
*.so
# dependency files
*.d
# precompiled headers
*.gch
# C++ preprocessed output
*.ii.cpp
# Object file
*.o
# generic executable outputs
*.out
# ROCm compiled binary
*.hsaco
# assembly output
*.s
# autogenerated kernel sources
*.kernels.cpp
# hipcc intermediate outputs
*.hip.cpp.*
# sample binary
bin/hipInfo
# sample binary
bin/hipBusBandwidth
# sample binary
bin/hipDispatchLatency
# sample tool
bin/hipify-clang
# tutorial outputs
samples/**/*.out
# ISA/code dumps
samples/**/*.code
# compiled binaries
samples/**/*.hsaco
# kernel code outputs
samples/**/*.co
# ctags index
tags
# custom test output directory
/tests_output/
# custom sample output directory
/samples_output/
Ce que ces règles HIP ignorent vraiment
Chaque motif ci-dessous, et pourquoi il a sa place dans votre .gitignore.
General
| Motif | Ce qu’il ignore |
|---|---|
/build/ |
common build directory |
*.ii |
General |
/CMakeFiles/ |
CMake internal files |
*.a |
Static library |
/CMakeCache.txt |
CMake cache file |
*.exe |
Windows executable |
/Makefile |
autogenerated Makefile |
/cmake_install.cmake |
install script |
/install_manifest.txt |
install manifest list |
*.ninja-dep |
Ninja dependency files |
*.ninja_log |
Ninja log files |
*.log |
Log file |
meson-logs/ |
Meson log directory |
*.obj |
Windows object files |
*.so |
shared libraries |
*.d |
dependency files |
*.gch |
precompiled headers |
*.ii.cpp |
C++ preprocessed output |
*.o |
Object file |
*.out |
generic executable outputs |
*.hsaco |
ROCm compiled binary |
*.s |
assembly output |
*.kernels.cpp |
autogenerated kernel sources |
*.hip.cpp.* |
hipcc intermediate outputs |
bin/hipInfo |
sample binary |
bin/hipBusBandwidth |
sample binary |
bin/hipDispatchLatency |
sample binary |
bin/hipify-clang |
sample tool |
samples/**/*.out |
tutorial outputs |
samples/**/*.code |
ISA/code dumps |
samples/**/*.hsaco |
compiled binaries |
samples/**/*.co |
kernel code outputs |
tags |
ctags index |
/tests_output/ |
custom test output directory |
/samples_output/ |
custom sample output directory |
Comment utiliser ce .gitignore pour HIP
- Copiez les règles HIP ci-dessus, ou téléchargez directement le fichier.
- Créez un fichier nommé .gitignore à la racine de votre dépôt Git et collez-y les règles.
- Si certains de ces fichiers sont déjà suivis, lancez git rm -r --cached . puis recommitez — Git n’applique les règles d’exclusion qu’aux fichiers non suivis.
- Commitez le .gitignore pour que toute l’équipe partage les mêmes règles.