Skip to content
language35 active rulesVerified 2026-09-30

HIP .gitignore Template

Standard HIP gitignore template from upstream github/gitignore collection. Generated and merged deterministically with upstream GitHub repository patterns to keep your repository clean of package directories, temporary build artifacts, and local environment files.

Interactive Stack Generator

Preconfigured with HIP
Search for templates
Quick add:
Selected1
HIP
Selected Templates (1)
.gitignore
35 rules
### HIP ###
# HIP.gitignore
# GitHub gitignore template for AMD HIP (ROCm) projects
#
# Reference:
# Official AMD ROCm HIP .gitignore: https://github.com/ROCm/hip/blob/amd-staging/.gitignore
# 1. Build directories and files
# common build directory
/build/
# CMake internal files
/CMakeFiles/
# CMake cache file
/CMakeCache.txt
# autogenerated Makefile
/Makefile
# install script
/cmake_install.cmake
# install manifest list
/install_manifest.txt
# Ninja dependency files
*.ninja-dep
# Ninja log files
*.ninja_log
# Meson log directory
meson-logs/
# 2. Compilation outputs and intermediates
# object files
*.o
# Windows object files
*.obj
# shared libraries
*.so
# static librarie
*.a
# dependency files
*.d
# precompiled headers
*.gch
# preprocessed output
*.ii
# C++ preprocessed output
*.ii.cpp
# generic executable outputs
*.out
# Windows executables
*.exe
# 3. HIP/ROCm specific binaries and intermediates
# ROCm compiled binary
*.hsaco
# assembly output
*.s
# autogenerated kernel sources
*.kernels.cpp
# hipcc intermediate outputs
*.hip.cpp.*
# 4. Official sample binaries and tutorial outputs
# 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
# 5. Tags, logs and test outputs
# ctags index
tags
# log files
*.log
# custom test output directory
/tests_output/
# custom sample output directory
/samples_output/
87 lines•UTF-8
Deterministic

Raw HIP .gitignore

Crawlable upstream source template
hip.gitignore•86 lines•UTF-8
# HIP.gitignore
# GitHub gitignore template for AMD HIP (ROCm) projects
#
# Reference:
# Official AMD ROCm HIP .gitignore: https://github.com/ROCm/hip/blob/amd-staging/.gitignore
# 1. Build directories and files
# common build directory
/build/
# CMake internal files
/CMakeFiles/
# CMake cache file
/CMakeCache.txt
# autogenerated Makefile
/Makefile
# install script
/cmake_install.cmake
# install manifest list
/install_manifest.txt
# Ninja dependency files
*.ninja-dep
# Ninja log files
*.ninja_log
# Meson log directory
meson-logs/
# 2. Compilation outputs and intermediates
# object files
*.o
# Windows object files
*.obj
# shared libraries
*.so
# static librarie
*.a
# dependency files
*.d
# precompiled headers
*.gch
# preprocessed output
*.ii
# C++ preprocessed output
*.ii.cpp
# generic executable outputs
*.out
# Windows executables
*.exe
# 3. HIP/ROCm specific binaries and intermediates
# ROCm compiled binary
*.hsaco
# assembly output
*.s
# autogenerated kernel sources
*.kernels.cpp
# hipcc intermediate outputs
*.hip.cpp.*
# 4. Official sample binaries and tutorial outputs
# 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
# 5. Tags, logs and test outputs
# ctags index
tags
# log files
*.log
# custom test output directory
/tests_output/
# custom sample output directory
/samples_output/

Key Pattern Breakdown

Build Outputs & Compiled Artifacts

Generated binary files, compilation targets, and distribution bundles that can be reliably reproduced from source.

/build/*.o*.obj*.so*.a*.out+2 more

Execution Caches & Runtime Logs

Diagnostic logs, runtime metadata, test coverage reports, and incremental compiler caches that cause noisy repository diffs.

/CMakeCache.txt*.log

Source & Verification

License: CC0-1.0

Place this file in the root directory of your project as .gitignore. Changes take effect on newly added or untracked files.