.gitignore for HIP
35 ignore rules for HIP, ready to copy into your repository.
C++ runtime API for AMD GPUs
The complete .gitignore for HIP
# Generated by LFGitignore - https://lfgitignore.com
# Created: 2026-09-17 17:00:39 UTC
# Technologies: HIP
### HIP ###
# common build directory
/build/
/CMakeFiles/
/CMakeCache.txt
/Makefile
/cmake_install.cmake
/install_manifest.txt
*.ninja-dep
*.ninja_log
meson-logs/
# Object file
*.o
# Object file
*.obj
# Shared object
*.so
# Static library
*.a
*.d
*.gch
*.ii
*.ii.cpp
# Compiler output
*.out
# Windows executable
*.exe
*.hsaco
*.s
*.kernels.cpp
*.hip.cpp.*
bin/hipInfo
bin/hipBusBandwidth
bin/hipDispatchLatency
bin/hipify-clang
samples/**/*.out
samples/**/*.code
samples/**/*.hsaco
samples/**/*.co
# Vim tags file
tags
# Log file
*.log
/tests_output/
/samples_output/
What these HIP rules actually ignore
Every pattern below, and why it belongs in your .gitignore.
General
| Pattern | What it ignores |
|---|---|
/build/ |
common build directory |
CMake internal files
| Pattern | What it ignores |
|---|---|
/CMakeFiles/ |
CMake internal files |
CMake cache file
| Pattern | What it ignores |
|---|---|
/CMakeCache.txt |
CMake cache file |
/Makefile |
autogenerated Makefile |
/cmake_install.cmake |
install script |
/install_manifest.txt |
install manifest list |
Ninja dependency files
| Pattern | What it ignores |
|---|---|
*.ninja-dep |
Ninja dependency files |
Ninja log files
| Pattern | What it ignores |
|---|---|
*.ninja_log |
Ninja log files |
Meson log directory
| Pattern | What it ignores |
|---|---|
meson-logs/ |
Meson log directory |
*.o |
Object file |
Windows object files
| Pattern | What it ignores |
|---|---|
*.obj |
Object file |
*.so |
Shared object |
*.a |
Static library |
*.d |
dependency files |
*.gch |
precompiled headers |
*.ii |
preprocessed output |
C++ preprocessed output
| Pattern | What it ignores |
|---|---|
*.ii.cpp |
C++ preprocessed output |
*.out |
Compiler output |
Windows executables
| Pattern | What it ignores |
|---|---|
*.exe |
Windows executable |
ROCm compiled binary
| Pattern | What it ignores |
|---|---|
*.hsaco |
ROCm compiled binary |
*.s |
assembly output |
*.kernels.cpp |
autogenerated kernel sources |
*.hip.cpp.* |
hipcc intermediate outputs |
bin/hipInfo |
4. Official sample binaries and tutorial outputs sample binary |
bin/hipBusBandwidth |
sample binary |
bin/hipDispatchLatency |
sample binary |
bin/hipify-clang |
sample tool |
samples/**/*.out |
tutorial outputs |
ISA/code dumps
| Pattern | What it ignores |
|---|---|
samples/**/*.code |
ISA/code dumps |
samples/**/*.hsaco |
compiled binaries |
samples/**/*.co |
kernel code outputs |
tags |
Vim tags file |
*.log |
Log file |
/tests_output/ |
custom test output directory |
/samples_output/ |
custom sample output directory |
How to use this .gitignore for HIP
- Copy the HIP rules above, or download the file directly.
- Create a file named .gitignore at the root of your Git repository and paste the rules into it.
- If some of those files are already tracked, run git rm -r --cached . then commit again — Git only applies ignore rules to untracked files.
- Commit the .gitignore so everyone on the team shares the same rules.