HIPCC environment variables#
This topic provides descriptions of the HIPCC environment variables. For more information about other ROCm environment variables, see HIP environment variables.
Environment variable |
Value |
|---|---|
HIP_PLATFORMThe 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. |
|
HIP_PATHThe path of the HIP SDK on Microsoft Windows for AMD platforms.
|
Default: |
ROCM_PATHThe path of the installed ROCm software stack on Linux for AMD platforms.
|
Default: |
CUDA_PATHPath to the CUDA SDK, which is only used for NVIDIA platforms.
|
Default: |
HIP_CLANG_PATHPath to the clang, which is only used for AMD platforms.
|
Default: |
HIP_LIB_PATHThe HIP device library installation path.
|
Default: |
HIP_DEVICE_LIB_PATHThe HIP device library installation path.
|
|
HIPCC_COMPILE_FLAGS_APPENDAppend extra flags as compilation options to
hipcc. |
|
HIPCC_LINK_FLAGS_APPENDAppend extra flags as compilation options to
hipcc. |
|
HIPCC_VERBOSEOutputs 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. |