table of contents
- testing 5.7.1-6
- unstable 5.7.1-6
- experimental 6.1.2+dfsg-1~exp2
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¶
- HIPCC_VERBOSE
- 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
- HIPCC_COMPILE_FLAGS_APPEND
- The contents of $ HIPCC_COMPILE_FLAGS_APPEND are added to the end of the argument list that is passed to clang when compiling.
- The contents of
- $ HIPCC_LINK_FLAGS_APPEND are added to the end of the argument list that is passed to clang when linking.
- DEVICE_LIB_PATH
- The $DEVICE_LIB_PATH variable is used to override the path to the rocm-device-libs.
- HIP_LIB_PATH
- The $HIP_LIB_PATH variable is used to override the path to the HIP Runtime library directory.
- HIP_CLANG_HCC_COMPAT_MODE
- 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.
- HIP_CLANG_LAUNCHER
- 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¶
May 2025 | hipcc 5.7.31921 |