From bdc842f7f2eacc16083badaac67ed668517bd9c8 Mon Sep 17 00:00:00 2001 From: Ben Sander Date: Fri, 25 Mar 2016 17:11:49 -0500 Subject: [PATCH] describe HIP_PLATFORM [ROCm/clr commit: f8f839d9dd837d0301f86fd46a4018cb5f9f5b5e] --- projects/clr/hipamd/docs/markdown/hip_faq.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/projects/clr/hipamd/docs/markdown/hip_faq.md b/projects/clr/hipamd/docs/markdown/hip_faq.md index 2d00e7f60c..1a62784100 100644 --- a/projects/clr/hipamd/docs/markdown/hip_faq.md +++ b/projects/clr/hipamd/docs/markdown/hip_faq.md @@ -107,8 +107,9 @@ HIP is a portable C++ language that supports a strong subset of the CUDA run-tim A C++ dialect, hc is supported by the AMD HCC compiler. It provides C++ run time, C++ kernel-launch APIs (parallel_for_each), C++ kernel language, and several memory-management options, including pointers, arrays and array_view (with implicit data synchronization). It's intended to be a leading indicator of the ISO C++ standard. -### What if I have a CUDA SDK installed but want to use HCC? -If HIP sees the CUDA SDK installed at /usr/local/cuda, it assumes the platform is nvcc. Sometimes this isn't what you want - you can force HIP to recognize the platform by setting HIP_PLATFORM to hcc (or nvcc) +### HIP detected my platform (hcc vs nvcc) incorrectly - what should I do? +HIP will set the platform to HCC if it sees that the AMD graphics driver is installed and has detected an AMD GPU. +Sometimes this isn't what you want - you can force HIP to recognize the platform by setting HIP_PLATFORM to hcc (or nvcc) ``` export HIP_PLATFORM=hcc ```