HIPCC environment variables

HIPCC environment variables#

This topic provides descriptions of the HIPCC environment variables. For more information about other ROCm environment variables, see ROCm environment variables page.

Environment variable

Value

HIP_​PLATFORM
The platform targeted by HIP. If HIP_​PLATFORM isn’t set, then HIPCC attempts to auto-detect the platform based on whether the nvcc tool is found.

amd, nvidia

HIP_​PATH
The path of the HIP SDK on Microsoft Windows for AMD platforms.

Default: C:/hip

ROCM_​PATH
The path of the installed ROCm software stack on Linux for AMD platforms.

Default: /opt/rocm

CUDA_​PATH
Path to the CUDA SDK, which is only used for NVIDIA platforms.

Default: /usr/local/cuda

HIP_​CLANG_​PATH
Path to the clang, which is only used for AMD platforms.

Default: ROCM_​PATH/llvm/bin or HIP_​PATH/../llvm/bin"

HIP_​LIB_​PATH
The HIP device library installation path.

Default: HIP_​PATH/lib

HIP_​DEVICE_​LIB_​PATH
The HIP device library installation path.
HIPCC_​COMPILE_​FLAGS_​APPEND
Append extra flags as compilation options to hipcc.
HIPCC_​LINK_​FLAGS_​APPEND
Append extra flags as compilation options to hipcc.
HIPCC_​VERBOSE
Outputs detailed information on subcommands executed during compilation.
1: Displays the command to clang++ or nvcc with all options (hipcc-cmd).
2: Displays all relevant environment variables and their values.
4: Displays only the arguments passed to the hipcc command (hipcc_​args).
5: Displays both the command to clang++ or nvcc and hipcc arguments (hipcc-cmd and hipcc-args).
6: Displays all relevant environment variables and their values, along with the arguments to the hipcc command.
7: Displays all of the above: hipcc-cmd, hipcc-args, and environment variables.