---
name: "hipconfig"
section: "1"
platform: "linux"
package: "hipcc"
version: "5.7.1-6+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/hipconfig"
---

# hipconfig(1)

HIP configuration information utility

## NAME

hipconfig - HIP configuration information utility

## SYNOPSIS

usage: hipconfig \[OPTIONS\]

## DESCRIPTION

The hipconfig utility is used to query information about the HIP installation, such as the version, installation path, compiler, or target platform.

## OPTIONS

- **--path**, **-p**

  : print HIP\_PATH (use env var if set, else determine from hipconfig path)

- **--rocmpath**, **-R**

  : print ROCM\_PATH (use env var if set, else determine from hip path or */opt/rocm*)

- **--cpp\_config**, **-C**

  : print C++ compiler options

- **--compiler**, **-c**

  : print compiler (clang or nvcc)

- **--platform**, **-P**

  : print platform (amd or nvidia)

- **--runtime**, **-r**

  : print runtime (rocclr or cuda)

**--hipclangpath**, **-l** : print HIP\_CLANG\_PATH

- **--full**, **-f**

  : print full config

- **--version**, **-v**

  : print hip version

- **--check**

  : check configuration

- **--newline**, **-n**

  : print newline

- **--help**, **-h**

  : print help message

## ENVIRONMENT

- **HIP\_PLATFORM**

  The  $**HIP\_PLATFORM** variable is used to explicitly specify the target platform for hipcc. Valid options are "amd" and "nvidia".

- **HIP\_COMPILER**

  The  $**HIP\_COMPILER** variable is used to specify the target compiler for hipcc. Valid options are "clang" and "nvcc". This variable is usually set automatically based on the value of the $**HIP\_PLATFORM** variable

- **HIP\_RUNTIME**

  The  $**HIP\_RUNTIME** variable is used to specify the target runtime for hipcc. Valid options are "rocclr" and "cuda". This variable is usually set automatically based on the value of the $**HIP\_PLATFORM** variable

- **ROCM\_PATH**

  The  $**ROCM\_PATH** variable is used to specify the path to the AMD ROCm tools and libraries. This variable defaults to "/usr".

- **CUDA\_PATH**

  The  $**CUDA\_PATH** variable is used to specify the path to the CUDA tools and libraries. This variable defaults to "/usr/local/cuda".

- **HIP\_PATH**

  The  $**HIP\_PATH** variable is used to specify the path to the base directory of the HIP runtime library. This variable is not typically used when building on Debian.

- **HIP\_ROCCLR\_HOME**

  The  $**HIP\_ROCCLR\_HOME** variable is used to specify the path to the base directory of the HIP runtime library. This variable is not typically used when building on Debian.

- **HIP\_CLANG\_PATH**

  The  $**HIP\_CLANG\_PATH** variable is used to specify the path to the base directory of the HIP clang compiler. This variable is not typically used when building on Debian.
