Scroll to navigation

HIPCONFIG(1) User Commands HIPCONFIG(1)

NAME

hipcc - HIP compiler driver

SYNOPSIS

usage: hipcc [OPTIONS]

DESCRIPTION

The hipcc script wraps clang or nvcc, depending on the value of the $HIP_PLATFORM reported by hipconfig. When building for the AMD platform, the options given to hipcc are passed through to clang. The hipcc script adds number of additional options to those explicitly given, including "-x hip" to force the compilation language to HIP, "-O3" when no optimization level is otherwise specified, and the autodetected target GPU architecture when no target has been otherwise specified.

ENVIRONMENT

The $HIPCC_VERBOSE variable can enable additional output. 0x1 - the clang command being invoked 0x2 - the paths to HIP components 0x3 - the arguments hipcc was called with
The contents of $ HIPCC_COMPILE_FLAGS_APPEND are added to the end of the argument list that is passed to clang when compiling.
$ HIPCC_LINK_FLAGS_APPEND are added to the end of the argument list that is passed to clang when linking.
The $DEVICE_LIB_PATH variable is used to override the path to the rocm-device-libs.
The $HIP_LIB_PATH variable is used to override the path to the HIP Runtime library directory.
The $HIP_CLANG_HCC_COMPAT_MODE variable is used to specify if clang should allow half floats in arguments and return and if __HIP_HCC_COMPAT_MODE__ should be defined.
The $HIP_CLANG_LAUNCHER variable specifies a path to an executable to use for launching HIP clang. This can be useful for making use of a compiler caching tool.

SEE ALSO

hipconfig(1)

May 2025 hipcc 5.7.31921