HIPCC environment variables#
This topic provides descriptions of the HIPCC environment variables. For more information about other ROCm environment variables, see HIP environment variables.
HIP_PLATFORM=amdorHIP_PLATFORM=nvidia
Note
If HIP_PLATFORM is not set, then hipcc will attempt to auto-detect based on if the nvcc tool is found.
Additional environment variable controls:
CUDA_PATH: Path to the CUDA SDK. The default is/usr/local/cuda. This is only used for NVIDIA platforms.HIPCC_COMPILE_FLAGS_APPEND: Append extra flags as compilation options tohipcc.HIPCC_LINK_FLAGS_APPEND: Append extra flags as linking options tohipcc.HIPCC_VERBOSE: Outputs detailed information on subcommands executed during compilation.HIPCC_VERBOSE = 1: Displays the command toclang++ornvccwith all options (hipcc-cmd).HIPCC_VERBOSE = 2: Displays all relevant environment variables and their values.HIPCC_VERBOSE = 4: Displays only the arguments passed to thehipcccommand (hipcc_args).HIPCC_VERBOSE = 5: Displays both the command toclang++ornvccandhipccarguments (hipcc-cmd and hipcc-args).HIPCC_VERBOSE = 6: Displays all relevant environment variables and their values, along with the arguments to thehipcccommand.HIPCC_VERBOSE = 7: Displays all of the above: hipcc-cmd, hipcc-args, and environment variables.