.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-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/

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
*.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

How to use this .gitignore for HIP

  1. Copy the HIP rules above, or download the file directly.
  2. Create a file named .gitignore at the root of your Git repository and paste the rules into it.
  3. If some of those files are already tracked, run git rm -r --cached . then commit again — Git only applies ignore rules to untracked files.
  4. Commit the .gitignore so everyone on the team shares the same rules.

Other Language .gitignore templates

See every Language template