Skip to content

agunashe/HIPCC

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 

Repository files navigation

HIP compiler driver (hipcc)

Table of Contents

hipcc

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.

Environment Variables

The environment variable HIP_PLATFORM may be used to specify amd/nvidia:

  • HIP_PLATFORM='amd' or HIP_PLATFORM='nvidia'.
  • If HIP_PLATFORM is not set, then hipcc will attempt to auto-detect based on if nvcc is found.

Other environment variable controls:

  • HIP_PATH : Path to HIP directory, default is one dir level above location of hipcc.
  • CUDA_PATH : Path to CUDA SDK (default /usr/local/cuda). Used on NVIDIA platforms only.
  • HSA_PATH : Path to HSA dir (defaults to ../../hsa relative to abs_path of hipcc). Used on AMD platforms only.
  • HIP_ROCCLR_HOME : Path to HIP/ROCclr directory. Used on AMD platforms only.
  • HIP_CLANG_PATH : Path to HIP-Clang (default to ../../llvm/bin relative to hipcc's abs_path). Used on AMD platforms only.

hipcc: usage

  • WIP

hipcc: building

  • WIP

hipcc: testing

  • WIP

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published