HIP: Heterogenous-computing Interface for Portability
|
hipcc
is a compiler driver utility that will call clang or nvcc, depending on target, and pass the appropriate include and library options for the target compiler and HIP infrastructure. Historically, hipcc
was provided as a script in the HIP repo ( https://github.com/ROCm-Developer-Tools/HIP/blob/main/bin/hipcc ). The hipcc
provided in this project provides the same functionality, but is a binary rather than a script. At some point in the future, the hipcc script will be deprecated and ultimately removed from the HIP repo.
hipcc
will pass-through options to the target compiler. The tools calling hipcc must ensure the compiler options are appropriate for the target compiler.
Run the steps below to build documentation locally.
The environment variable HIP_PLATFORM may be used to specify amd/nvidia:
Other environment variable controls:
The built executables can be used the same way as the hipcc/hipconfig perl scripts. To use the newly built executables from the build folder use ./ in front of the executable name - Example:
when the excutables are copied to /opt/rocm/hip/bin or <anyfolder>hip/bin. The ./ is not required as the HIP path is added to the envirnoment variables list.
The hipcc and hipconfig executables are created in the current build folder. These executables need to be copied to /opt/rocm/hip/bin folder location. Packaging and installing will be handled in future releases.
Currently hipcc/hipconfig executables are tested by building and executing HIP tests. Separate tests for hipcc/hipconfig is currently not planned.