Skip to content

Commit 8c2c547

Browse files
committed
Initial commit
0 parents  commit 8c2c547

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

amd/hipcc/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# HIP compiler driver (HIPCC)
2+
3+
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.
4+
5+
It will pass-through options to the target compiler. The tools calling HIPCC must ensure the compiler options are appropriate for the target compiler.
6+
7+
The environment variable HIP_PLATFORM may be used to specify amd/nvidia:
8+
- HIP_PLATFORM='amd' or HIP_PLATFORM='nvidia'.
9+
- If HIP_PLATFORM is not set, then hipcc will attempt to auto-detect based on if nvcc is found.
10+
11+
Other environment variable controls:
12+
HIP_PATH : Path to HIP directory, default is one dir level above location of HIPCC.
13+
CUDA_PATH : Path to CUDA SDK (default /usr/local/cuda). Used on NVIDIA platforms only.
14+
HSA_PATH : Path to HSA dir (defaults to ../../hsa relative to abs_path of HIPCC). Used on AMD platforms only.
15+
HIP_ROCCLR_HOME : Path to HIP/ROCclr directory. Used on AMD platforms only.
16+
HIP_CLANG_PATH : Path to HIP-Clang (default to ../../llvm/bin relative to HIPCC's abs_path). Used on AMD platforms only.

0 commit comments

Comments
 (0)