From 5f3c11fd2f73df8da58913eb66f5fd3c7ea2044f Mon Sep 17 00:00:00 2001 From: Ben Sander Date: Sat, 27 Feb 2016 20:34:20 -0600 Subject: [PATCH] Describe using HIP with native-gcn compiler [ROCm/hip commit: 28b28ba9b93efcfee4b91211bf76a1758a4da23e] --- projects/hip/README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/projects/hip/README.md b/projects/hip/README.md index 9e52b7cd20..a0d6b14b84 100644 --- a/projects/hip/README.md +++ b/projects/hip/README.md @@ -45,6 +45,20 @@ Verify your can find hipconfig (one of the hip tools in bin dir): ``` > hipconfig -pn /home/me/HIP + + +### Using HIP with the AMD Native-GCN compiler. +AMD recently released a direct-to-GCN-ISA target. This compiler generates GCN ISA directly from LLVM, without going through an intermediate compiler +IR such as HSAIL or PTX. +The native GCN target is included with upstream LLVM, and has also been integrated with HCC compiler and can be used to compiler HIP programs for AMD. +Here's how to use it with HIP: + +- Follow the instructions here to compile the HCC and native LLVM compiler: +> https://github.com/RadeonOpenCompute/HCC-Native-GCN-ISA/wiki +> (In the make step for HCC, we recommend setting -DCMAKE_INSTALL_PREFIX=/opt/hcc-native) + +Set HCC_HOME environment variable before compiling HIP program to point to the native compiler: +> export HCC_HOME=/opt/hcc-native ``` ## Examples and Getting Started: